Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Archived Topics for the old Version 3.0 JavaScript Menu
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:34

Opening New Windows


Poster: Maurice D Stanton
Dated: Tuesday February 18 2003 - 15:28:51 GMT

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?


Poster: kevin3442
Dated: Tuesday February 18 2003 - 18:27:05 GMT

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

Opening New Windows


Poster: Maurice D Stanton
Dated: Tuesday February 18 2003 - 19:45:07 GMT

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?


Poster: kevin3442
Dated: Wednesday February 19 2003 - 23:37:45 GMT

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


Poster: Maurice D Stanton
Dated: Thursday February 20 2003 - 5:52:46 GMT

Hellp Kevin

The latest - Version 3.5.10.

Maurice


Poster: kevin3442
Dated: Thursday February 20 2003 - 9:35:56 GMT

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/unlinked/kevin_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