This is a discussion on Dynamic changing Flash content within the ASP and ASP.NET Programming forums, part of the Web Development category; Can anyone tell me, How to change the flash content using the dropdown without postback?...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| Hi SaravananJ, Add a dropdown control which is used to control the flash content and the empty div tag for writing the flash content as follows <asp:dropdownlist id="flashDropdown" runat="server" onChange="javascript:ChangeFlashContent();"> <asp:ListItem Text="Movie 1" Value="[Flash file path]"/> <asp:ListItem Text="Movie 2" Value="[Flash file path]"/> </asp:dropdownlist> <div id="divEmbedFlash"></div> Javascript function to change the flash content based on the dropdrown selection function ChangeFlashContent() { var dropDown=document.getElementById("ContestantDropdo wn"); var flashPath=dropDown.options[dropDown.selectedIndex].value; var flashContent=document.getElementById("divEmbedFlas h"); flashContent.innerHTML="<embed src=\"”+flashPath+”\" quality=\"high\" wmode=\"transparent\" width=\"300\" height=\"400\" name=\"widget\" align=\"middle\" allowScriptAccess=\"never\" type=\"application/x-shockwave-flash\" />"; } Thanks, ![]() Logesh |
| |||
| hi s it is possible on dropDownChange event call the javascript and load the flash player dynamically inside a span/div tags |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| changing dynamically | vigneshgets | Software Testing | 1 | 11-12-2007 11:30 PM |
| Changing File Access Permissions | vijayanand | Operating Systems | 0 | 09-20-2007 07:43 AM |
| Query about requirements changing | simplesabita | Software Testing | 2 | 08-29-2007 09:58 AM |
| What can be done if requirements are changing continuously? | devarajan.v | Software Testing | 1 | 07-19-2007 07:27 AM |
| Changing media playback component backgroud in flash | oxygen | Flash Actionscript Programming | 0 | 07-17-2007 12:18 AM |