File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Netscape Menu Javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Netscape Menu Javascript" Watch "Netscape Menu Javascript" New topic

Netscape Menu Javascript


Joined: Dec 13, 2001
Posts: 1
Have this menu that was taken from the Netscape free Java area...however I have a problem
The code for linking to a URL location will not see paths. EG
myMenu51.addMenuItem("Overview2", "location='using_super\SBSupervisor_01_Overview_web.htm'");
will only produce a url of
Losing the \ . So after reading a book I discovered that you may need to \\ to produce a backslash this still did not work the character is just missing
Any of you guy have any suggestions?
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
Well. I have not a clue what method that you are trying to use, but the syntax that you are showing works for me. The backslash requires an escape character (so it should be typed \\).

"JavaRanch, where the deer and the Certified play" - David O'Meara
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
Oh yes, and CoW,
Please change your name to be compliant with JavaRanch's naming policy.
Your ID should be 2 separate names with more than 1 letter each. We really want this to be a professional forum and would prefer that you use your REAL name.
I agree. Here's the link:
subject: Netscape Menu Javascript
It's not a secret anymore!