1 Reply Latest reply on Mar 27, 2012 11:52 PM by 56231

    Use HTTPService to send data to php. Am I missing something.

    56231

      I have directions on how to use HTTPService with form components. A form component will use this to access the HTTPService for example:

      <mx:Datagrid id="userid" creationComplete="getInfo.send()" />
      How do I access HTTPService without a form component? I tried getInfo.send(); in actionScript, but I am not sure that it is working. Thanks.

       

      <fx:Declarations> 
         <s:HTTPService id="getInfo" url="http://www.site.com/file.php"
            method="GET" resultFormat="text" result="Result(event)" fault="serviceFault(event)">
             <s:request xmlns="">
                <id>{Id}</id>
             </s:request>
         </s:HTTPService>
      </fx:Declarations> 
      <fx:Script>
         <![CDATA[
            getInfo.send();
         ]]>
      </fx:Script>