Calling Javascript fuctions from Menu system

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
User avatar
aqk
Beginner
Beginner
Posts: 2
Joined: Thu Oct 17, 2002 7:40 pm
Location: Elgin, Quebec
Contact:

Calling Javascript fuctions from Menu system

Post by aqk »

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! ;-)
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

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
User avatar
aqk
Beginner
Beginner
Posts: 2
Joined: Thu Oct 17, 2002 7:40 pm
Location: Elgin, Quebec
Contact:

Post by aqk »

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
Post Reply