Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Attribute

Type

Required

Default

Description

resultDivId

string

TRUE

 

The id of the HTML element to place the result (this can the the form's id or any id on the page

notifyTopics

string

FALSE

 

Topic names to post an event to after the form has been submitted

onLoadJS

string

FALSE

 

Javascript code that will be executed after the form has been submitted. The format is onLoadJS='yourMethodName(data,type)'. NOTE: the words data and type must be left like that if you want the event type and the returned data.

preInvokeJS

string

FALSE

 

A javascript snippet that will be invoked prior to the submission of the form. If provided must return true or false. True indicates to continue submiting the form... false says do not submit the form. Possible uses are confirm dialogs and running code to manipulate form contents.

The remote form has three basic modes of use, using the resultDivId, the notifyTopics, or the onLoadJS. You can mix and match any combination of them to get your desired result. All of these examples are contained in the Ajax example webapp. Lets go through some scenarios to see how you might use it:

...