Does anyone know why when I run this code I get an error that says: "HTTPService Fault: An XML element was malformed."? It seems to only happen when I escape things like & and # into the URL.


<?xml version=" 1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml">

    <mx:HTTPService id="eventHTTP" url=""
    <mx:Script>
    <![CDATA[
   
        function HTTPServiceErrorTest():Void {
            var myEscapedStuff:String = escape("&");
            eventHTTP.url = "" href="http://127.0.0.1/intranet?sql=SEL_EVENT"> http://127.0.0.1/intranet?sql=SEL_EVENT "+myEscapedStuff;
            eventHTTP.send();
        }
       
        ]]>
    </mx:Script>
    <mx:Button label="Button" click="HTTPServiceErrorTest()"/>
</mx:Application>

TIA

-Andy


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




YAHOO! GROUPS LINKS




Reply via email to