Not sure if it is the cause of the error, but I would recommend agains doing
this. All browsers have a limitation on the length of the URL that they will
pass, which range from about 2000 up to 100,000. A WDDX string could easily
pass this length limit. I'd look at storing it in a cookie (though Cookies
also have length limits) or a session variable.

On 9/5/07, Becky McDermott <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> I have a coldfusion application which I have structured using Fusebox.  I
> have a template that does several queries and builds up a complex structure
> (many fields and an array of substructures).  I'm trying to serialize this
> structure (using wddx) and pass it to another template which needs access to
> the structure.
>
> Here is a snippet of my code (dsp_ShowContacts.cfm)
> ---------------------------------------------------
> <!--- granteeStruct is the complex structure which contains an array of
> other structures --->
> <cfoutput>
>      <cfwddx action="CFML2WDDX" input="#granteeStruct#"
> output="aWDDXpacket">
>      <cfset urlSafeWddxPacket=URLEncodedFormat(#aWDDXpacket#)>
>       <a
> href="./index.cfm?fuseaction=AddContact&inputStruct='#urlSafePacket#'">Click
> Here</a>
> </cfoutput>
>
> Then in index.cfm, I have:
> --------------------------
> <cfcase value="AddContact">
>     <cfoutput>
>         <cfset inputGranteeStruct=#URLDecode(ATTRIBUTES.inputStruct)#>
>         <cfwddx action="wddx2cfml" input="#inputGranteeStruct#"
> output="outputGranteeStruct">
>         <br>Testing This Code<br>
>     </cfoutput>
>   </cfcase>
>
> When I load the page and try clicking on the URL that says "Click Here", I
> get the following error message:
>
> WDDX packet parse error at line 1, column 1. Content is not allowed in
> prolog..
>
> Inside dsp_ShowContacts.cfm, if I try adding code to deserialize the
> object right after it is serialized and then dump it, the structure is
> fine.  So all appears well inside dsp_ShowContacts.cfm.  It's when it gets
> passed over the URL that things go bad.  Could my structure be too
> complex?  Am I missing some small syntax that will make it work?
>
> Thank You,
>
> Becky
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:287843
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to