MACROMEDIA COLDFUSION 4.5-DEVELOPING WEB Develop Manual page 273

Developing web applications with coldfusion
Table of Contents

Advertisement

Chapter 15: Interacting with Remote Servers
</SCRIPT>
<!--- Data collection form --->
<FORM ACTION="wddx_browser_2_server.cfm" METHOD="post"
NAME="personForm">
<!--- Input fields --->
Personal information<p>
First name: <INPUT TYPE=text NAME=firstName><BR>
Last name: <INPUT TYPE=text NAME=lastName><BR>
<P>
<!--- Navigation & submission bar --->
<INPUT TYPE="button" BALUE="Next" onclick="doNext()">
<INPUT TYPE="button" BALUE="Serialize"
onclick="serializeData(personInfo, document.personForm.wddxPacket)">
<INPUT TYPE="submit" BALUE="Submit">
<P>
<!--- This is where the WDDX packet will be stored --->
WDDX packet display:<p>
<TEXTAREA NAME="wddxPacket" ROWS="10" COLS="80" WRAP="Virtual"><
/TEXTAREA>
</FORM>
<!--- Server-side processing --->
<HR>
<P><B>Server-side processing</B><P>
<CFIF isdefined("form.wddxPacket")>
<CFIF form.wddxPacket neq "">
<CFELSE>
</CFIF>
<CFELSE>
No WDDX data to process at this time.
</CFIF>
<!--- Deserialize the WDDX data --->
<CFWDDX action="wddx2cfml" input=#form.wddxPacket#
output="personInfo">
<!--- Display the query --->
The submitted personal information is:<P>
<CFOUTPUT QUERY=personInfo>
Person #CurrentRow#: #firstName# #lastName#<BR>
</CFOUTPUT>
The client did not send a well-formed WDDX data packet!
247

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COLDFUSION 4.5-DEVELOPING WEB and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Coldfusion 4.5

Table of Contents