File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Netscape Menu Javascript" Watch "Netscape Menu Javascript" New topic
Author

Netscape Menu Javascript

CoW
Greenhorn

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
using_superSBSupervisor_01_Overview_web,htm
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"
Sheriff

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 \\).
Try


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

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.
Thanks,
Cindy
 
wood burning stoves
 
subject: Netscape Menu Javascript
 
Similar Threads
How to open an external application ???
Its about Javascript: Highlighting the activated link
Script tag not working in Netscape6
Its about Javascript: Highlighting the activated link
Opening an html file inside jar file in browser