0 Replies Latest reply on Feb 14, 2010 9:52 PM by aktell2007

    Xml Request tags Visible ....

    aktell2007 Level 1

      Hi there,

       

      I'm using the 'text properties' of two Labels and a 'Http Service Call' with an 'resultHandler' getting some Xml from my Php script.

      This code As Is was working perfectly fine and while working on some other modules I had to clean the Application and at some stage I noticed that the title and fullName was showing up at times with the 'request Xml tags in front and behind of the title and fullName e.g.

       

      <fullName>Frabcis E T Drake</fullName>
      

       

      First is was showing some times and than all the time! I can't find any mistake at all in the code and now I'm trying to see if there has being a problem like this before anybody knows of?

       

      Thanks in advance for any help - aktell2007

       

      <mx:Module
      creationComplete="returnInfo.send()">
      
      <mx:Label
      id="title"/>
      
      <mx:Label 
      id="fullName"/>
      
      
      <mx:HTTPService url="http://localhost/../designation.php"
      id="returnInfo" 
      resultFormat="e4x"
      result="resultHandler(event)" 
      method="POST"
      fault="faultHandler(event)">
      
      <mx:request>
      <title>{title.text}</title>
      <fullName>{fullName.text}</fullName>
      </mx:request>
      
      </mx:HTTPService>
      
      <mx:Script>
      <![CDATA[
      
      private function resultHandler(event:ResultEvent):void {
      
      title.text = event.result.message.title;
      fullName.text = event.result.message.fullName;
      }
      ]]>
      </mx:Script>