Includes functions that you call as needed when constructing a WDDX record set. For more information on using this object, see "Using WDDX" in the ColdFusion Developer's Guide.
Function syntax |
Description |
---|---|
|
Adds a column to all rows in a WddxRecordset instance. |
|
Adds rows to all columns in a WddxRecordset instance. |
|
Displays WddxRecordset object data. |
|
Returns the element in a row/column position. |
|
Indicates the number of rows in a WddxRecordset instance. |
|
Sets the element in a row/column position. |
|
Serializes a record set. |
HTML table of the WddxRecordset object data.
Convenient for debugging and testing record sets. The boolean parameter escapeStrings determines whether <>& characters in string values are escaped as <>& in HTML.
<!--- Create a simple query ---> <cfquery name = "q" datasource ="cfdocexamples"> SELECT Message_Id, Thread_id, Username, Posted FROM messages </cfquery> <!--- Load the wddx.js file, which includes the dump function ---> <script type="text/javascript" src="/CFIDE/scripts/wddx.js"></script> <script> // Use WDDX to move from CFML data to JS <cfwddx action="cfml2js" input="#q#" topLevelVariable="qj"> // Dump the record set document.write(qj.dump(true)); </script>