Versions Compared

Key

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

...

To ajax enable the form, the ww:form component must be used, specifying a theme="ajax". Additionally, the ww:submit component must be used. The ajax-specific attributes of ww:submit are:

Attribute

Type

Required

Default name

Description

resultDivId (required)

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.

...