javascript - Internet Explorer does not recognize iframe source -


i have web application if opened in google chrome or in firefox works fine in ie not work. problem when try change src of iframe. here source of iframe:

<iframe id="myframe" name="i1" src="" style="border: thick inset #0000ff; width: 719px; height: 700px"></iframe> 

the src, change when loads page (with tag body onload)

this code have in script change src:

<script type="text/javascript">   function cargarimg() {             var src1 = '<%= request.querystring["cobo"] %>';             var src2 = '<%= request.querystring["carp"] %>';enter code here             document.getelementbyid('myframe').src = '////192.168.1.230/pictures/tempfiles/' + src2 + '/cubo.swf';         }     </script> 

can tell me problem is? said, works in chrome or in firefox not in internet explorer. thank you

i believe issue setting src using '////192.168.1.230/pictures/tempfiles/' path going directory current page instead of root. try replacing string http://192.168.1.230/pictures/tempfiles/.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -