Jump to content

function doesnt work on explorer but work on other browsers why?


Recommended Posts

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>

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.