This content has been marked as final. Show 8 replies
If you want to keep using WDDX, you must encode the GET string using the URLEncodedFormat function. i.e.
I would investigate using JSON instead seeing as it is a lot less characters to send in a URL GET string. WDDX will make the string grow very fast.
If you want JSON and are on CFMX7, search for the CFJSON class. If you're on CFMX8, just use the SerializeJSON function.
I added the URLEncodedFormat and a corresponding URLDecode but I still get the error
WDDX packet parse error at line -1, column -1. Premature end of file..
I will also look into JSON.
I would honestly go with JSON instead.
To dig further into the WDDX, on the receiving end just prior to the WDDX2CFML - try outputting the WDDX string with CFOUTPUT and the HTMLCodeFormat function so that you can read it. Make sure the WDDX packet starts with something of the like:
and ends with something of the like:
Really silly mistake. In the file where I create the href link, I need to place this inside a <cfoutput> tag in order for the variable to be passed on the URL. It is working fine now that I hadded the <cfoutput>.
Good to hear it's working!
Here's a CFJSON class I've used: