Open Browser Window and problem with IE
03-07-2008, 08:04 AM
|
Open Browser Window and problem with IE
|
Posts: 65
|
I've got a large map that I want to open in a new browser window when someone clicks on the link. It works fine in every browser except IE.
The error message I get in IE when I click on it is "error on page"
Anyone know what it's about and how to fix it? I have set IE to allow pop-ups.
Thank you.
|
|
|
|
03-07-2008, 09:57 AM
|
Re: Open Browser Window and problem with IE
|
Posts: 882
|
can we see the code your using to open it in a new window? 
|
|
|
|
03-07-2008, 10:13 AM
|
Re: Open Browser Window and problem with IE
|
Posts: 65
|
Quote:
Originally Posted by Sir P
can we see the code your using to open it in a new window? 
|
Sure:
"MM_openBrWindow('test.gif','Route','status=yes,me nubar=yes,scrollbars=yes,resizable=yes,width=1500, height=564')">test
|
|
|
|
03-07-2008, 10:15 AM
|
Re: Open Browser Window and problem with IE
|
Posts: 882
|
hi missingtime,
that is just a call to a function defined earlier on your page... its a dreamweaver built function so it should be at the top within javscript tags.. thats the bit we need to see 
|
|
|
|
03-07-2008, 10:59 AM
|
Re: Open Browser Window and problem with IE
|
Posts: 65
|
Quote:
Originally Posted by Sir P
hi missingtime,
that is just a call to a function defined earlier on your page... its a dreamweaver built function so it should be at the top within javscript tags.. thats the bit we need to see 
|
This is called...learning by doing
Here it is:
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
|
|
|
|
03-07-2008, 11:09 AM
|
Re: Open Browser Window and problem with IE
|
Posts: 882
|
Hi missingtime...
IE does moan about white spaces in such functions, I have seen before - try removing the space before height..
...s,width=1500, height=564')"
should be ..
...s,width=1500,height=564')"
|
|
|
|
03-07-2008, 11:24 AM
|
Re: Open Browser Window and problem with IE
|
Posts: 65
|
Unfortunately, there aren't any white spaces there now...for me to fix.
|
|
|
|
03-07-2008, 12:11 PM
|
Re: Open Browser Window and problem with IE
|
Posts: 5,945
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
|
What's the page it's on?
And why do you have such a wide window? It's not going to fit on most people's screen.
|
|
|
|
03-07-2008, 12:49 PM
|
Re: Open Browser Window and problem with IE
|
Posts: 65
|
Quote:
Originally Posted by ADAM Web Design
What's the page it's on?
And why do you have such a wide window? It's not going to fit on most people's screen.
|
Yeah, I know it's big. It's a map and it needs to be big. Of course, I can just put it on a regular page but I wanted to try it this way.
|
|
|
|
03-07-2008, 01:04 PM
|
Re: Open Browser Window and problem with IE
|
Posts: 37
Name: Rob
Location: Tampa Florida
|
Quote:
Originally Posted by missingtime
Yeah, I know it's big. It's a map and it needs to be big.
|
Sorry, I just thought that comment was funny.
So it works with all other browsers EXCEPT IE? What version of IE are you using?
|
|
|
|
03-07-2008, 01:27 PM
|
Re: Open Browser Window and problem with IE
|
Posts: 65
|
Quote:
Originally Posted by LanceUppercut
Sorry, I just thought that comment was funny.
So it works with all other browsers EXCEPT IE? What version of IE are you using?
|
Well, maps usually need to be big, no?
Yeah, it works like a charm in everything except IE 7.
|
|
|
|
03-07-2008, 02:15 PM
|
Re: Open Browser Window and problem with IE
|
Posts: 37
Name: Rob
Location: Tampa Florida
|
Quote:
Originally Posted by missingtime
Well, maps usually need to be big, no?
Yeah, it works like a charm in everything except IE 7.
|
Big enough to read I guess.
Why don't you drop the .gif and have it call a .html document instead. Embed the image in a .html file and replace the code with:
Code:
"MM_openBrWindow('test.html,'Route','status=yes,me nubar=yes,scrollbars=yes,resizable=yes,width=1500, height=564')">
That should be compatible with all browsers and fix your problem.
|
|
|
|
03-07-2008, 02:26 PM
|
Re: Open Browser Window and problem with IE
|
Posts: 65
|
That's what I did and now it works.
|
|
|
|
03-07-2008, 02:30 PM
|
Re: Open Browser Window and problem with IE
|
Posts: 37
Name: Rob
Location: Tampa Florida
|
Quote:
Originally Posted by missingtime
That's what I did and now it works.
|
So it fixed the problem?
|
|
|
|
03-07-2008, 03:33 PM
|
Re: Open Browser Window and problem with IE
|
Posts: 65
|
Quote:
Originally Posted by LanceUppercut
So it fixed the problem?
|
Well, I just made a page with the map on it and then linked to it...opening it in a new browser window.
|
|
|
|
|
« Reply to Open Browser Window and problem with IE
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|