JAVA AND JAVASCRIPT

Does NetObjects Fusion support Java?

NetObjects Fusion supports placing Java applets into your web pages. The Java tool allows you to specify all supporting files as well as all parameters for any particular applet. The documentation for the applet you are using should always be consulted prior to adding the applet to you NetObjects Fusion site so that you know what supporting files and parameters are required by your applet. You will need to Publish the site in order to see the applets in action, as Preview will not write the code appropriately. For more information on adding Java applets see our User Guide, Chapter 20, Adding Java and ActiveX. Also look up solution number S1015 in our on-line knowledgebase: http://www.netobjects.com/support/html/knowledgebase.html

How can I use Java applets where the code is created by another program or a wizard?

You can add Java applets created in another program by adding the HTML using our External HTML options. Usually a Java wizard creates a final output which consists of HTML code which references back to the class files and other supporting files the Java applet requires. Reference the HTML code generated by the Wizard using the External HTML tool on your NetObjects Fusion page. You should specify that you want to Manage External HTML assets. This makes sure that NetObjects Fusion tracks all the supporting files required for the applet to function. Remember that each applet is different and may have different requirements, so always consult the documentation provided with the applet program as to how the end result is to be included in a web page and where the files are required to exist on the server.

What do I do if the parameters don't show up in the properties?

Java Parameters will appear in the Parameters field if the Java Applet uses the "GetParamInfo" function in the code. If it does not, check the documentation for the Applet or the Sample HTML code which is supplied and add any items which are defined as <PARAM NAME ="XXX" VALUE="YYY"> as Parameters (with XXX in the Name field and "YYY" in the Value field). For more information on how to add parameters, see our User Guide, Chapter 20, Adding Java and ActiveX.

What do I do if the browser isn't running my applet?

If you are Previewing the site, your Java Applets will generally not function. In order to view the Applets in action, you should publish the site to your server or your local machine.  If the applet is not running in your published site, first check to make sure that you have included all of the appropriate files in the File List for the applet, and check your Parameters listing to make sure there are no exclusions or typos which might cause the applet not to function. One place to check for clues is if you are using Netscape Navigator 3.x, choose the Java Console from the View menu or in Netscape Navigator 4.x choose the Window menu >Java Console or Communicator menu > Tools > Java Console . If you are using IE 4.0 you can turn on the Java Console from the View Menu > Internet Options > Advanced > Java VM options.

You should also check your browser settings to make sure that your browser is set to allow Java Applets to operate. Both IE 4.0 and Netscape 4.0 have security features which may disable applets even when a site is published.

How can I add JavaScript to my page?

You can add JavaScript in a variety of ways to your NetObjects Fusion site.

First, you can let NetObjects Fusion add it for you by using rollover buttons in Navbars, the picture rollover component, or using Actions. All of these write JavaScript so you don't have to.

You can add any functions or definitions to the HEAD of your HTML file, by including your script in the Inside Head field for your Layout HTML. If you wish to apply JavaScript event to particular elements on the page, you can include these using the Object HTML for the element to which you wish to apply the script. Finally, you can add JavaScript to any link created with the External Link option in the Link dialog or using the Blank Link option under Smart Links. To learn more about inserting scripting using the HTML dialogs see our User Guide Chapters 18 Creating Links and Anchors (for adding scripts to links) and Chapter 26, Working with HTML Directly (for all other HTML additions.)

Are there some examples of JavaScript
I can look at?

NetObjects has a Usage Note which provides samples of scripting at its Web site at

http://www.netobjects.com/support/html/unnf2advanced.html#using

There is also an "unofficial" NetObjects Fusion JavaScript site at http://www.netobjects.com/workbench/javascript

 

[eFuse Home] [Start] [ Plan] [Design] [ Build] [Publish] [Find] [New] [SiteMap]

Contact NetObjects Support - Legal Info
©
www.efuse.com 2007 NetObjects

“Everywhere HTML”, “NetObjects”, and “NetObjects Fusion” are registered
trademarks of Website Pros, Inc.

Efuse FuseMan