On the contrary - it is way to easy to ignore (once you get over learning it
;-)
For example:
In the browser js:
formData = new Object;
formData["ApplicantIDGiven"] = form.ApplicantIDGiven[0].checked;
formData["ApplicantID"] = form.ApplicantID.value;
formData["ApplicantCount"] = form.ApplicantCount.selectedIndex + 1;
...
wddxSerializer = new WddxSerializer;
//save into hidden field on other form
formWDDX.Assistant_WDDX.value = wddxSerializer.serialize(formData);
formWDDX.submit();
On the server receiving CFM template:
<CFWDDX action="WDDX2CFML" input="#Form.Assistant_WDDX#"
output="request.Assistant">
<CFPARAM name="request.Assistant.ApplicantIDGiven" default="No">
<CFPARAM name="request.Assistant.ApplicantID" default="">
<CFPARAM name="request.Assistant.ApplicantCount" default="1">
...
and then anywhere you refer to the values using the structure that WDDX
builds for you.
In my case I even have arrays in there: such as
request.Assistant.Priority[2].Number
It's just magic how WDDX allows you to keep the large chunks of data in neat
objects/structures and pass them around between CF and JavaScript easily.
Regards,
Noam
----------
From: Chris Tazewell [SMTP:[EMAIL PROTECTED]]
Sent: Thursday, 17 August 2000 12:01
To: [EMAIL PROTECTED]
Subject: Re: Bizarre client-side validation problems...
Wahey! Figured it....
Dont like the idea of using WDDX mind you, that sounds a bit too
much like
work... ;o)
BTW: Sorry about the MIME content, I completely forgot I had it
switched on.
Taz
----- Original Message -----
From: "BOROVOY Noam" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 17, 2000 8:50 AM
Subject: RE: Bizarre client-side validation problems...
> Chris,
> I'm doing something similar - passing data between forms as they
are
> submitted so that no data need be stored on the server until the
user
> finishes filling in all sections and submits the complete set.
> I use WDDX in JavaScript to package each form's data into a single
hidden
> field on a separate form and submit that one.
> The only time I have problems with validation are when the browser
caches
> previous versions of the .js files.
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com
----------------------------------------------------------------------------
--
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.