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: Wednesday July 18 2012 - 06:07:20

Calling Javascript fuctions from Menu system


Poster: aqk
Dated: Thursday October 17 2002 - 20:01:39 BST

Hi-
I'm trying to invoke a javascript function 'launch' in another frame from a menu item as follows-

"XXX","javascript:launch(200,200,'eeeek.htm') target=ZZ",,,2,

The arguments 200,200, get passed OK, but the literal in single-quotes somehow does not get passed properly to my 'LAUNCH' function in frame ZZ.
I've tried escaping the quotes with a backslash; even that doesn't work.

Can this be done at all in the Milonix menu, or would I have to set the literal in the called function in frame ZZ?
Might be simpler to do.
Guess I was just trying to bury as much as I possibly could in the Milonic .js... ;-)

And don't tell me not to use frames! ;-)


Poster: Andy
Dated: Thursday October 17 2002 - 20:47:19 BST

Don't use frames :D

No seriously - have you tried escaping double quotes. The menu in it's current state has issues with either single or escaped single quotes.

Double escaped quotes usually work fine.

Cheers
Andy


Poster: aqk
Dated: Friday October 18 2002 - 14:53:44 BST

Thanx!

the escaped dble-quotes that you suggested seemed to do the trick!

Some results currently visible at http://www.plonque.com

- Tony (A.Q.) King, the ol' plonquemaster