Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Works in NS and Firefox, not IE

Status
Not open for further replies.

gruvn

Programmer
Oct 15, 2004
24
CA
Hi,

I've got this code embedded in my page, and it works in both Netscape and Firefox, but not in IE. It seems straightforward to me, but alas...

BTW, "dataFrame" is the target frame for my gridinfo.html popup.


<script language="javascript">
window.open('ext/gridinfo.html','dataFrame','scrollbars=yes,width=650,height=415,top=100,left=100')
</script>

What am I overlooking?

Thanks!
 
I don't know if it makes a difference, but try adding type="text/javascript" to the SCRIPT tag and put a semi-colon after the window.open(...) command.

Also, try putting gridinfo.html in the same directory as the page you're using and change the URL in the window.open(...) by taking out the ext/. If that makes it work, then perhaps it has to do with the formatting of the URL. Can you put the complete address there? (e.g., )

'hope something in this helps.

--Dave
 
What is not working? It launched fine for me with IE6

Paranoid? ME?? WHO WANTS TO KNOW????
 
Hey All,
Thanks for your help. Nothing's worked so far, but let me explain a little more. It's not a normal link where someone clicks on something and the content shows up in the frame. It's embedded in a jsp page, and if a certain series of events occur, the gridinfo.html page is shown in the frame.

LookingforInfo: Thanks for your tips - I've incorporated all of them, except for moving the ext/gridinfo.html file. I have tried addressing this by putting the full path to the page in the javascript instead...

<script type="text/javascript" language="javascript"> window.open(' 'dataFrame', 'scrollbars=yes,width=650,height=415,top=100,left=100'); </script>

theniteowl: I don't know what to tell you other than it still doesn't work here. I've heard that there can be issues with timimg, where sometimes if you pop up a window while other parts of the page are still loading, it may not work...

BillyRayPreachersSon:I'm trying to load content into a named frame. If you can think of way to use "target = dataFrame" without requiring a mouseclick, I'm very open to hearing it :)

Thanks again everyone!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top