That's what I'm doing ... passing client-scoped structs/arrays between templates with WDDX.
Works fine thoughout the site ... and worked fine on this section until I decided to use an image as the submit widget rather and a form submit button ... so I had to write some javascript to handle the submit, and I started having trouble passing the variables ... again I'm successfully passing the CFID/CFTOKEN as form vars. H. > -----Original Message----- > From: Joe Eugene [SMTP:[EMAIL PROTECTED] > Sent: Wednesday, March 12, 2003 7:52 PM > To: CF-Talk > Subject: RE: disappearing client scope > > > Submission is working fine, but on the other end is a WDDX tag that > > expecting to read a Client.object > > What do you have on the other end? > cfml2wddx/wddx2cfm convertion back and forth between client scope and > local vars? > > > client.cart > You cannot put complex(structure) variables in client scope UNLESS > you use wddx to serialize/deserialize, if thats the case you would > deserialize from client scope to variable/request scope. > > Joe Eugene > > > > -----Original Message----- > > From: Owens, Howard [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, March 12, 2003 9:52 PM > > To: CF-Talk > > Subject: disappearing client scope > > > > > > Ok, my form submission goes through this little scrpt (on an on-click > > event): > > > > > > function updateSubmit(itemID,qNum) { > > > > document.cartform.action = "index.cfm"; > > document.cartform.method = "post"; > > document.cartform.saction.value = "update_cart"; > > document.cartform.CFID.value = "#URL.CFID#"; > > document.cartform.CFTOKEN.value = "#URL.CFTOKEN#"; > > document.cartform.ITEM_ID.value = itemID; > > document.cartform.QUANTITY.value = qNum; > > document.cartform.submit(); > > > > } > > > > Submission is working fine, but on the other end is a WDDX tag that > > expecting to read a Client.object, but I'm getting an error that the the > > client.cart does not exist. > > > > Now, I've seen client vars get dropped before when I haven't maintained > > state (such as in a URLTOKEN), but as far as I can tell the CFID > > and CFTOKEN > > are getting passed. Here's what I'm seeing in my debug: > > > > Form Fields: > > CFID=1678 > > CFTOKEN=46234445 > > FIELDNAMES=SACTION,CFID,CFTOKEN,ITEM_ID,QUANTITY,ITEM_ID,QUANTITY > > ITEM_ID=6,6 > > QUANTITY=1,1 > > SACTION=update_cart > > > > So, where is my client var? > > > > Why am I seeing this: Error resolving parameter CLIENT.CARTITEMS > > > > > > H. > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > Howard Owens > > Internet Operations Coordinator > > InsideVC.com/Ventura County Star > > [EMAIL PROTECTED] > > AIM: GoCatGo1956 > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

