Lisa23 Posted July 19, 2011 Share Posted July 19, 2011 Hi i have the following function that display a list depending on the drop down option the user selects but doesnt not work on explorer it works on other browsers but on exploere i get the following error SCRIPT600: Unknown runtime error manitest.html, line 76 character 3 on this line document.getElementById('rep').innerHTML=lit you can see the page live on http://eurico.co.uk/manning/manitest.html# <SCRIPT TYPE="TEXT/JAVASCRIPT"> function setup(ans) { lit = '' if (ans == 'Property') { lit = lit + '<tr><td class="fodas" cellspacing="0"><a href="#" onClick="jwplayer().load({\'file\': \'videosdemo/hofmann30735.mp4\', \'hd.file\': \'videosdemo/hofmann30735hd.mp4\'})"><img class="images_playlist" src="house_images/hofmann30735tmbleft_new.jpg" alt="house" /></a></td></td></tr>' lit = lit + '<tr><td class="fodas" cellspacing="0"><a href="#" onClick="jwplayer().load({\'file\': \'videosdemo/hofmann30735.mp4\', \'hd.file\': \'videosdemo/hofmann30735hd.mp4\'})"><img class="images_playlist" src="house_images/hofmann30735tmbleft_new.jpg" alt="house" /></a></td></td></tr>' } if (ans == 'Location') { lit = lit + '<tr><td class="fodas" cellspacing="0"><a href="#" onClick="jwplayer().load({\'file\': \'videosdemo/hofmorpeth.mp4\', \'hd.file\': \'videosdemo/hofmorpethhd.mp4\'})"><img class="images_playlist" src="house_images/hofmorpethtmbleft_new.jpg" alt="house" /></a></td></td></tr>' lit = lit + '<tr><td class="fodas" cellspacing="0"><a href="#" onClick="jwplayer().load({\'file\': \'videosdemo/hofmorpeth.mp4\', \'hd.file\': \'videosdemo/hofmorpethhd.mp4\'})"><img class="images_playlist" src="house_images/hofmorpethtmbleft_new.jpg" alt="house" /></a></td></td></tr>' } if (ans == 'News') { lit = lit + '<tr><td class="fodas" cellspacing="0"><a href="#" onClick="jwplayer().load({\'file\': \'videosdemo/videoblog.mp4\', \'hd.file\': \'videosdemo/videobloghd.mp4\'})"><img class="images_playlist" src="house_images/videoblogtmb_new.jpg" alt="house" /></a></td></td></tr>' lit = lit + '<tr><td class="fodas" cellspacing="0"><a href="#" onClick="jwplayer().load({\'file\': \'videosdemo/videoblog.mp4\', \'hd.file\': \'videosdemo/videobloghd.mp4\'})"><img class="images_playlist" src="house_images/videoblogtmb_new.jpg" alt="house" /></a></td></td></tr>' } document.getElementById('rep').innerHTML=lit } <div class="module sub_menu_obj " id="modulede2c191b487ea7c167b924a5d5d34e38" style=""> <FORM ACTION="#" NAME="quest" style="float:right" /> <SELECT NAME="q1" ONCHANGE="setup(document.quest.q1.value)"> <OPTION VALUE="">Select Video...</OPTION> <OPTION VALUE="Property">Property videos</OPTION> <OPTION VALUE="Location">Location videos</OPTION> <OPTION VALUE="News">News on video</OPTION> </SELECT> </FORM><!-- end menu --> <table id="rep" class="table_manning" cellspacing="0" cellpadding="0"> </table> </SCRIPT> Quote Link to comment https://forums.phpfreaks.com/topic/242388-function-doesnt-work-on-explorer-but-work-on-other-browsers-why/ Share on other sites More sharing options...
Adam Posted July 22, 2011 Share Posted July 22, 2011 Are you still getting the issue? I've tested in IE6 and all seems fine.. Quote Link to comment https://forums.phpfreaks.com/topic/242388-function-doesnt-work-on-explorer-but-work-on-other-browsers-why/#findComment-1246077 Share on other sites More sharing options...
ScotDiddle Posted July 22, 2011 Share Posted July 22, 2011 Lisa23, I tested on IE 8 and all seems fine here also. Scot L. Diddle, Richmond VA Quote Link to comment https://forums.phpfreaks.com/topic/242388-function-doesnt-work-on-explorer-but-work-on-other-browsers-why/#findComment-1246111 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.