Actions  -  Scripting

One thing which can crop up in a site which uses DHTML Actions is that adding additional JavaScript or other scripting *can* cause problems with the DHTML Actions themselves. To get around this, we can incorporate the outside script *as* Actions... here’s how:

If you have any JavaScript definitions which need to be inserted, add them to your page’s “Layout HTML”

  • Right-Click (Control-Click if you’re on a Mac) on the Layout area and select “Layout HTML”
  • Click on the “Between Head Tags” field
  • Add the JavaScript to this field, making sure that it is properly formatted. NetObjects Fusion will not be checking this script for formatting.
  • Click “OK”

Now, determine when the JavaScript should actually do something.

If it should do something when a specific item is clicked, select that item and create an Actions for it along these lines:

When -> Mouse -> Clicked
Scripted Action

then add the name of the JavaScript Function or code which follows onClick in the JavaScript source code. For example, if the JavaScript source code reads

onclick = “feem()”

you would type in feem() without the quotation marks into the Scripted Action window.

The same basic process can be done for JavaScripts which should run onLoad (When -> Page Loaded), etc.

 

Note:  All Actions described in this section have been tested with Fusion 3.x, 4.x, 5.x and MX.
           Actions will not currently work properly when viewed with Netscape 6.0

Go Back to Previous Page

Have a question that you can´t find the answer to? Want to report a possible bug?

Send a help request to NetObjects Technical Support