WDDX Extension Methods Library

The WDDX extension library was designed to provide the tools necessary to easily convert your form data into a valid WDDX XML packet.

In the properties and methods below, obj is an abbreviation for the object name you specified when you called the qForm constructor. Arguments in bracket ("[ ]") are optional.

Functions

__serializeStruct(object struct)
The __serializeStruct() takes a structure and converts the structure into a valid WDDX packet identical to those produced by the v1.0a build of the WDDX.js library file. This serialize method is optimized for qForms and only handles simple structures.

The struct argument is required and should be equal to a simple structure.

__wddxValue(string value)
The __wddxValue() function will convert a string value into a properly escaped XML value string. This uses the included _encoding table object to escape the string.

The value argument is required.



Methods

qFormAPI.serialize([string exclude])
The serialize method will serialize the all of the qForm objects into a WDDX packet. This function will check to make sure that the WDDX JavaScript library has been loaded, and if it's not present, an error will be outputted to the screen.

The serialize method takes an optional argument of "exclude", which is a comma-delimited list of form fields that you do not want included in the WDDX packet. By default, no fields are excluded.

obj.serialize([string exclude])
The serialize method will serialize the form's content into a WDDX packet. This function will check to make sure that the WDDX JavaScript library has been loaded, and if it's not present, an error will be outputted to the screen.

The serialize method takes an optional argument of "exclude", which is a comma-delimited list of form fields that you do not want included in the WDDX packet. By default, no fields are excluded.

[< Back] [Index] [Next >]