- see footer for list info -<
Cheers Simon
The htmlEditFormat did the trick ... I didn't know you needed to use this... I thought wddx sorted it for you... is it best to always use htmlEditFormat when passing a wddx object in a hidden field or only if the wddx object has special chars that need escaping? On 8/3/06, Adrian Lynch <[EMAIL PROTECTED]> wrote:
>- see footer for list info -< Output the WDDX string and see if it's seen as XML. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Simon Baynes Sent: 03 August 2006 16:18 To: Coldfusion Development Subject: Re: [CF-Dev] WDDX Hidden Field Problem >- see footer for list info -< Works fine for me! ---- main index.cfm <cfsavecontent variable="test"><a href="mailto:[email protected]">Simon Baynes</a></cfsavecontent> <cfscript> myStruct = structNew(); myStruct.stuff = "Hello"; myStruct.thing = test; </cfscript> <cfwddx action="cfml2wddx" input="#myStruct#" output="test2"/> <form action="index2.cfm" method="post"> <input type="submit"> <input type="hidden" value="<cfoutput>#htmlEditFormat(test2)#</cfoutput>" name="goForIt"> </form> --- action index2.cfm <cfwddx action="wddx2cfml" input="#form.goForIt#" output="test"> <cfoutput>#test.thing#</cfoutput> On 8/3/06, RichL <[EMAIL PROTECTED]> wrote: > >- see footer for list info -< > Hi Guys > > I am putting a structure in to WDDX form and then passing this through to > the action page from the form page as a hidden field. > > The structure has one value with an <a href> tag in it and when the action > page tries to unWDDX the hidden field I get the following message: > > XML document structures must start and end within the same entity.. This is > something to do with the html <a> tag in the structure. > > However, this only happens when i do this via a hidden form field. > > If I wddx the structure and then unWDDX on the same page, even with the <a> > tag it doesn't complain - only complains when done via hidden field form > submission. > > (also works ok if I take the <a> tag out of the structure) > > Please help - it's driving me bonkers and Google not helping me much either > it seems > > -- > Rich > _______________________________________________ > > For details on ALL mailing lists and for joining or leaving lists, go to http://list.cfdeveloper.co.uk/mailman/listinfo > > -- > CFDeveloper Sponsors:- > >- Hosting provided by www.cfmxhosting.co.uk -< > >- Forum provided by www.fusetalk.com -< > >- DHTML Menus provided by www.APYCOM.com -< > >- Lists hosted by www.Gradwell.com -< > >- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -< > -- Simon Baynes www.simonbaynes.com _______________________________________________ For details on ALL mailing lists and for joining or leaving lists, go to http://list.cfdeveloper.co.uk/mailman/listinfo -- CFDeveloper Sponsors:- >- Hosting provided by www.cfmxhosting.co.uk -< >- Forum provided by www.fusetalk.com -< >- DHTML Menus provided by www.APYCOM.com -< >- Lists hosted by www.Gradwell.com -< >- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -< _______________________________________________ For details on ALL mailing lists and for joining or leaving lists, go to http://list.cfdeveloper.co.uk/mailman/listinfo -- CFDeveloper Sponsors:- >- Hosting provided by www.cfmxhosting.co.uk -< >- Forum provided by www.fusetalk.com -< >- DHTML Menus provided by www.APYCOM.com -< >- Lists hosted by www.Gradwell.com -< >- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<
-- Rich _______________________________________________ For details on ALL mailing lists and for joining or leaving lists, go to http://list.cfdeveloper.co.uk/mailman/listinfo -- CFDeveloper Sponsors:-
- Hosting provided by www.cfmxhosting.co.uk -< - Forum provided by www.fusetalk.com -< - DHTML Menus provided by www.APYCOM.com -< - Lists hosted by www.Gradwell.com -< - CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<
