Reply
Open Browser Window and problem with IE
Old 03-07-2008, 08:04 AM Open Browser Window and problem with IE
Skilled Talker

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.
missingtime is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 03-07-2008, 09:57 AM Re: Open Browser Window and problem with IE
Super Spam Talker

Posts: 882
can we see the code your using to open it in a new window?
Sir P is offline
Reply With Quote
View Public Profile
 
Old 03-07-2008, 10:13 AM Re: Open Browser Window and problem with IE
Skilled Talker

Posts: 65
Quote:
Originally Posted by Sir P View Post
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
missingtime is offline
Reply With Quote
View Public Profile
 
Old 03-07-2008, 10:15 AM Re: Open Browser Window and problem with IE
Super Spam Talker

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
Sir P is offline
Reply With Quote
View Public Profile
 
Old 03-07-2008, 10:59 AM Re: Open Browser Window and problem with IE
Skilled Talker

Posts: 65
Quote:
Originally Posted by Sir P View Post
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);
missingtime is offline
Reply With Quote
View Public Profile
 
Old 03-07-2008, 11:09 AM Re: Open Browser Window and problem with IE
Super Spam Talker

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')"
Sir P is offline
Reply With Quote
View Public Profile
 
Old 03-07-2008, 11:24 AM Re: Open Browser Window and problem with IE
Skilled Talker

Posts: 65
Unfortunately, there aren't any white spaces there now...for me to fix.
missingtime is offline
Reply With Quote
View Public Profile
 
Old 03-07-2008, 12:11 PM Re: Open Browser Window and problem with IE
ADAM Web Design's Avatar
Canadastaninianite

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.
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 03-07-2008, 12:49 PM Re: Open Browser Window and problem with IE
Skilled Talker

Posts: 65
Quote:
Originally Posted by ADAM Web Design View Post
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.
missingtime is offline
Reply With Quote
View Public Profile
 
Old 03-07-2008, 01:04 PM Re: Open Browser Window and problem with IE
Experienced Talker

Posts: 37
Name: Rob
Location: Tampa Florida
Quote:
Originally Posted by missingtime View Post
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?
LanceUppercut is offline
Reply With Quote
View Public Profile
 
Old 03-07-2008, 01:27 PM Re: Open Browser Window and problem with IE
Skilled Talker

Posts: 65
Quote:
Originally Posted by LanceUppercut View Post
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.
missingtime is offline
Reply With Quote
View Public Profile
 
Old 03-07-2008, 02:15 PM Re: Open Browser Window and problem with IE
Experienced Talker

Posts: 37
Name: Rob
Location: Tampa Florida
Quote:
Originally Posted by missingtime View Post
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.
LanceUppercut is offline
Reply With Quote
View Public Profile
 
Old 03-07-2008, 02:26 PM Re: Open Browser Window and problem with IE
Skilled Talker

Posts: 65
That's what I did and now it works.
missingtime is offline
Reply With Quote
View Public Profile
 
Old 03-07-2008, 02:30 PM Re: Open Browser Window and problem with IE
Experienced Talker

Posts: 37
Name: Rob
Location: Tampa Florida
Quote:
Originally Posted by missingtime View Post
That's what I did and now it works.
So it fixed the problem?
LanceUppercut is offline
Reply With Quote
View Public Profile
 
Old 03-07-2008, 03:33 PM Re: Open Browser Window and problem with IE
Skilled Talker

Posts: 65
Quote:
Originally Posted by LanceUppercut View Post
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.
missingtime is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Open Browser Window and problem with IE
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.18150 seconds with 12 queries