JavaScript Programmer’s Reference Because you cannot enumerate the (Web host server)
JavaScript Programmer’s Reference Because you cannot enumerate the properties of this object you won’t be able to walk a Java package hierarchy with a script driven tree walker. The JavaPackage tree structure resembles the directory structure that the Java class files are stored in. Some class files are collected into ZIP archives but even then the hierarchy is still intact and there will be one package that represents the ZIP file and corresponds to that node in the tree. Any arbitrary collection of classes will be represented by a JavaPackage object, regardless of how they are stored in the file system. Example code: // Create a JavaScript object that encapsulates a Java Package var myJavaPackage = Packages.java.util; See also: JavaScript to Java values, LiveConnect, netscape.applet, Packages.java, Packages.netscape, Window.java, Window.Packages, Window.sun JavaScript Bookmark URLs (Advice) Bookmarks composed of JavaScript calls. You can build a bookmark by typing in a JavaScript URL. You do need to be careful as you type it in. To create a JavaScript bookmark, open the bookmark manager and create a new entry. Be careful to only refer to objects that are likely to exist regardless of the page on view. You can crash the logic of the browser if your bookmark script tries to manipulate objects that belong to a page other than that which you are browsing. It is necessary to work within these limitations because the user may request a bookmark at any time. These JavaScript-coded bookmarks are sometimes known as Bookmarklets. It is possible to create bookmarklets to aid in a number of information-gathering and debugging tasks. The example demonstrates how to display form elements in a pop up window. This only works if your bookmarks can hold a long enough URL value. It works fine in MSIE and Netscape 6.0, but not in version 4.0 of Netscape although you can paste it into the location bar and hit return for the same effect. Upon testing it was found that only the Opera 5 browser has a security check to ask whether the script is allowed to check the password. Example code: // Provided for our enjoyment by Jon Stephens // Note, the line breaks and space have been added to aid // readability. You should omit the line breaks when // inserting this into the bookmark. Any unnecessary spaces // can also be removed to prevent URL buffer overruns. // This also works fine when wrapped in a function // declaration and called from a button on the form page. 1208