hey all

don't need an answer on this as the issue has resolved itself (and i suspect
that the answer is that there is no answer)

thanks anyway

a




Hi guys

I'm having problems with a LoadVars object.

I need to POST some variables to an external script and pass the result to
an xml object so I'm using a LoadVars object with the LoadVars.sendAndLoad()
method to send out the information and to recieve the response.

The problem I'm having is that, when LoadVars constructs the POST variables,
it automatically escapes all of the punctuation and spaces. This is not
normally a problem (in fact, i'd say it was desired) but the 3rd party have
asked that I send them the variables unescaped.

            var _loadVars:LoadVars = new LoadVars();
            _loadVars.user = itfName.text;
            _loadVars.title = itfReviewTitle.text;
            _loadVars.reviewtext = itfReview.text;
            _loadVars.rating = _nRatingChosen;
            _loadVars.recommend = mcTickBox.isTicked;

            _xmlResult = new XML();
            _xmlResult.onLoad = Delegate.create(this, loadVarsOnLoad);
            _loadVars.sendAndLoad(_sSubmitUrl, _xmlResult, "POST");
...
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to