Opening New Windows

Please note that official support for this menu version has now ceased. There are still plenty of users, though, and the forum is still running. Some of our long-time users may be able to help you out.
Post Reply
Maurice D Stanton
Beginner
Beginner
Posts: 4
Joined: Tue Feb 18, 2003 4:22 pm
Location: UK
Contact:

Opening New Windows

Post by Maurice D Stanton »

I have been watching your emails zip backwards and forwards for ages, particularly Kevin's great work.

I am just about to publish, but I am finding the following.

I have the following code inserted:-

function openNewWindow(winURL,winWidth,winHeight,winConfig){
mmConfig=""
mmConfig="width="+winWidth+","
mmConfig+="height="+winHeight+","
mmConfig+=winConfig
var mmWin=open(winURL,"",mmConfig);
mmWin.focus();
}

,"Help", "javascript:openNewWindow(\"Help/Content.cfm\",645,450,\"scrollbars=yes\")

This works perfectly from a Side Menu, but not from a Horizontal Menu. Any attempts to link, come up with the message

"Error in page"

Any ideas?
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

Hi Maurice,

Thanks for the kind remark. Question: Based on the error message you get, I assume you're using IE. If you double click the error message in the lower left corner (with the yellow exclamation point icon), you'll get a slightly more detailed error message. Is it an unterminated string constant?

Kevin
Maurice D Stanton
Beginner
Beginner
Posts: 4
Joined: Tue Feb 18, 2003 4:22 pm
Location: UK
Contact:

Opening New Windows

Post by Maurice D Stanton »

Kevin

The error message is "object doesn't support this property or method"

Code: 0.

Yes, I am running IE from Windows XP.

Why is it supported from the Side-Menu?
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

Hi Maurice,

What version of mmenu.js are you using? Would it be 3.3.19 by chance? (you can see the verion number in the comments at the top of the file).

Kevin
Maurice D Stanton
Beginner
Beginner
Posts: 4
Joined: Tue Feb 18, 2003 4:22 pm
Location: UK
Contact:

Post by Maurice D Stanton »

Hellp Kevin

The latest - Version 3.5.10.

Maurice
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

Hi Maurice,

The latest version is 3.5.12, available here. But I doubt that would solve the problem. My hunch is that the error may be somewhere other than you think (not uncommon with javascript). It'll be hard to help without seeing the code. Since you haven't puiblished yet, can you zip your menu_array.js file and email it to me? Send it to:

<img src="http://www.penlink.com/downloads/unlink ... _email.gif">

(The above address is an image... I'm paranoid about spambots. I hope it comes through)

I'll have a look and see what I can see.

Kevin
Post Reply