2 Replies Latest reply on Mar 24, 2008 6:45 PM by shermm

    Insert control text property inside httpservice url

    shermm
      I am trying to insert a DateField.text property inside of the url field for HTTPService in the script portion. I have successfully tested with setting the url field with a location and calling the .send() for results with a button. How do I base the url off of a variable? Here is my code I am using to call the HTTPService and this works if I set the full line.

      public function changeDate():void {
      srv.url = " http://mydomain.com/temp/2008-03-21.xml";
      srv.send();
      }

      I am trying to pull the text property from a DateField with an id of dF. This fails though.What do I need to correct?
      public function changeDate():void {
      srv.url = "' http://mydomain.com/temp/' + {dF.text} + '.xml'";
      srv.send();
      }