Re: [flexcoders] Re: Please Help. Http Service WTH

2006-05-06 Thread Faisal Abid



*Okay look this is my code so far What am i doing wrong??

This is my hotjobs.as file*

    var hotjobs_service: String = "";
   function
    buildMyUrl(country:String,state:String,city:String,job:String) {
    hotjobs_service = "http://hotjobs.yahoo.com/rss/0/" +
    country + "/" + state + "/" + city + "/-/" + job + "";
 }


*then in my xml file this is the code relating to that*

    
   
    
   
    
   
   
    
   
    
    url="" useProxy="false">
   
    
       


*then on my button in one of the states*

    
   
    buildMyUrl(input_country.text,input_state.text,input_city.text,input_job.text);currentState='Jobs_Results';hotjobs_service_call.send()
    

_*After all this it gives me an error*_!!







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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











Re: [flexcoders] Re: Please Help. Http Service WTH

2006-05-06 Thread Faisal Abid




  click="buildMyUrl(textinput.text);myService.send()" />

when i do that i get an error at runtime saying
TypeError: Error #1009: null has no properties.
    at index/__search_click()


Doug Lowder wrote:
> It's up to you where you put the call to buildMyUrl(), depending on
> when and how you want your http service to be invoked.  You could
> add a button and put it in the click handler:
>
> 
>   click="buildMyUrl(textinput.text);myService.send()" />
>
> Or you could even call it in the enter handler for your text imput;
> just type some text and hit enter to call your service:
>
> 
>   enter="buildMyUrl(event.target.text);myService.send()" ... />
>
>
> --- In flexcoders@yahoogroups.com, Faisal Abid <[EMAIL PROTECTED]> wrote:
> >
> > Okay i see where your going at , so how would i call BuildMyUrl ,
> like
> > so i made teh function and then i made trhe service and then i
> made the
> > textinput , where do i put BuildMyURL(textinput.text) (and is it
> normail
> > brakets or curly) , im sorry if this is an easy question,  im sort
> of
> > really stressed out and stumped.
> >
> >
> > Doug Lowder wrote:
> > > Try binding the entire url property to a variable that you build
> in
> > > code:
> > >
> > >   var myUrl: String = "";
> > >   function buildMyUrl(s: String) {
> > >   myUrl = "http://something.com/api/someting/" +
> > >   s + "/somethingelse/something";
> > >   }
> > >
> > > 
> > >
> > >
> > > Then just call "buldMyUrl(textinput.text)" somewhere, such as the
> > > click handler for a button or just before you call your
> > > httpservice's send() method.
> > >
> > >
> > > --- In flexcoders@yahoogroups.com, Faisal Abid  wrote:
> > > >
> > > > Okay so for the past 4 hours + 3 hours at night ive been
> debugging
> > > my
> > > > application only to come to the conclusion that in a
> httpservice
> > > url i
> > > > cannot do this
> > > >
> > > > 
> > > > url="" href="http://something.com/api/someting/">http://something.com/api/someting/
> > > {textinput.text}/somethingelse/something"
> > > >
> > > > The httpservice is fine , i test it in a broswer by replacijng
> > > > texinput.txt to something and it returns what its ment to ,
> but in
> > > flex
> > > > it gives me an error saying i must defind a url, I mean it is
> > > defined ,
> > > > i know there is a workaround to & by puttin & But What the
> hec
> > > is
> > > > wrong with my url??
> > > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > --
> > > Flexcoders Mailing List
> > > FAQ:
> http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > > Search Archives: http://www.mail-archive.com/flexcoders%
> 40yahoogroups.com
> > >
> > >
> > >
> > > SPONSORED LINKS
> > > Web site design development
> > >  t=ms&k=Web+site+design+development&w1=Web+site+design+development&w2=
> Computer+software+development&w3=Software+design+and+development&w4=M
> acromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=L
> -4QTvxB_quFDtMyhrQaHQ>
> > >   Computer software development
> > >  t=ms&k=Computer+software+development&w1=Web+site+design+development&w
> 2=Computer+software+development&w3=Software+design+and+development&w4
> =Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig
> =lvQjSRfQDfWudJSe1lLjHw>
> > >   Software design and development
> > >  t=ms&k=Software+design+and+development&w1=Web+site+design+development
> &w2=Computer+software+development&w3=Software+design+and+development&
> w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.s
> ig=1pMBCdo3DsJbuU9AEmO1oQ>
> > >
> > > Macromedia flex
> > >  t=ms&k=Macromedia+flex&w1=Web+site+design+development&w2=Computer+sof
> tware+development&w3=Software+design+and+development&w4=Macromedia+fl
> ex&w5=Software+development+best+practice&c=5&s=166&.sig=OO6nPIrz7_EpZ
> I36cYzBjw>
> > >   Software development best practice
> > >  t=ms&k=Software+development+best+practice&w1=Web+site+design+developm
> ent&w2=Computer+software+development&w3=Software+design+and+developme
> nt&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166
> &.sig=f89quyyulIDsnABLD6IXIw>
> > >
> > >
> > >
> > > -
> ---
> > > YAHOO! GROUPS LINKS
> > >
> > > *  Visit your group "flexcoders
> > >   " on the web.
> > >   
> > > *  To unsubscribe from this group, send an email to:
> > >    [EMAIL PROTECTED]
> > >   
> subject=Unsubscribe>
> > >   
> > > *  Your use of Yahoo! Groups is subject to the Yahoo! Terms
> of
> > >   Service .
> > >
> > >
> > > -
> ---
> > >
> >
>
>
>
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/f

[flexcoders] Re: Please Help. Http Service WTH

2006-05-04 Thread Doug Lowder



You would need to have -some- way to access the variables... You 
could pass in the variables as parameters to your url-building 
function (as I did in the example), or you could directly access 
them as properties of ui components.  I passed them as parameters in 
the example for the sake of modularity, but the choice is up to 
you.  If your url doesn't require any search parameters, the url 
value and service.send() are all you need.

--- In flexcoders@yahoogroups.com, Faisal Abid <[EMAIL PROTECTED]> wrote:
>
> I havent tried any of the methods yet , though the first one 
sounds 
> extremely simple to do , however how would i do this if i had 
multiple 
> textinputs and multiple varaibles in the url string , would i have 
to 
> define each on in the function eg
> 
> function Deploy(s: String, p:String, and so on and so on)
> or is there another way?
> 
> 
> Doug Lowder wrote:
> > And about parameters in the url, instead of this, for example:
> >
> >   myUrl = "http://server.com/page?firstname=John&lastname=Doe 
> > ";
> >   myService.send();
> >
> > Do this:
> >
> >   myUrl = "http://server.com/page";
> >   myService.send( {firstname: "John", lastname: "Doe"} );
> >
> > You might be able to get the first case to work in certain
> > situations, but it would likely cause problems with a service 
that
> > has its method property set to "POST".
> >
> >
> > --- In flexcoders@yahoogroups.com, Faisal Abid  wrote:
> > >
> > > Ahh rite rite rite , Thanks SO much i will add your name in the
> > credits
> > > for your help
> > >
> > >
> > > Doug Lowder wrote:
> > > > It's up to you where you put the call to buildMyUrl(), 
depending
> > on
> > > > when and how you want your http service to be invoked.  You 
could
> > > > add a button and put it in the click handler:
> > > >
> > > > 
> > > >   click="buildMyUrl(textinput.text);myService.send()" />
> > > >
> > > > Or you could even call it in the enter handler for your text
> > imput;
> > > > just type some text and hit enter to call your service:
> > > >
> > > > 
> > > >   enter="buildMyUrl(event.target.text);myService.send
()" ... />
> > > >
> > > >
> > > > --- In flexcoders@yahoogroups.com, Faisal Abid  
wrote:
> > > > >
> > > > > Okay i see where your going at , so how would i call
> > BuildMyUrl ,
> > > > like
> > > > > so i made teh function and then i made trhe service and 
then i
> > > > made the
> > > > > textinput , where do i put BuildMyURL(textinput.text) (and 
is
> > it
> > > > normail
> > > > > brakets or curly) , im sorry if this is an easy question,  
im
> > sort
> > > > of
> > > > > really stressed out and stumped.
> > > > >
> > > > >
> > > > > Doug Lowder wrote:
> > > > > > Try binding the entire url property to a variable that 
you
> > build
> > > > in
> > > > > > code:
> > > > > >
> > > > > >   var myUrl: String = "";
> > > > > >   function buildMyUrl(s: String) {
> > > > > >   myUrl = "http://something.com/api/someting/" +
> > > > > >   s + "/somethingelse/something";
> > > > > >   }
> > > > > >
> > > > > > 
> > > > > >
> > > > > >
> > > > > > Then just call "buldMyUrl(textinput.text)" somewhere, 
such
> > as the
> > > > > > click handler for a button or just before you call your
> > > > > > httpservice's send() method.
> > > > > >
> > > > > >
> > > > > > --- In flexcoders@yahoogroups.com, Faisal Abid 
> > wrote:
> > > > > > >
> > > > > > > Okay so for the past 4 hours + 3 hours at night ive 
been
> > > > debugging
> > > > > > my
> > > > > > > application only to come to the conclusion that in a
> > > > httpservice
> > > > > > url i
> > > > > > > cannot do this
> > > > > > >
> > > > > > > 
> > > > > > > url="" href="http://something.com/api/someting/">http://something.com/api/someting/
> > > > > > {textinput.text}/somethingelse/something"
> > > > > > >
> > > > > > > The httpservice is fine , i test it in a broswer by
> > replacijng
> > > > > > > texinput.txt to something and it returns what its ment 
to ,
> > > > but in
> > > > > > flex
> > > > > > > it gives me an error saying i must defind a url, I 
mean it
> > is
> > > > > > defined ,
> > > > > > > i know there is a workaround to & by puttin & But 
What
> > the
> > > > hec
> > > > > > is
> > > > > > > wrong with my url??
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > Flexcoders Mailing List
> > > > > > FAQ:
> > > > 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > > > > > Search Archives: http://www.mail-archive.com/flexcoders%
> > > > 40yahoogroups.com
> > > > > >
> > > > > >
> > > > > >
> > > > > > SPONSORED LINKS
> > > > > > Web site design development
> > > > > >  > > >
> > 
t=ms&k=Web+site+design+development&w1=Web+site+design+development&w2=
> > > >
> > 
Computer+software+development&w3=Software+design+and+development&w4=M
> > > >
> > 
acromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=L
> 

Re: [flexcoders] Re: Please Help. Http Service WTH

2006-05-03 Thread Graham Weldon






Hi Faisal,

Personally, due to the security restrictions and sandboxing of the
Flash player, I prefer to use a proxy method for HTTPServices:

---
MXML File
---


    



    id="myService"
    url=""
    resultFormat="e4x"
    result="processServiceResult(event)"/>












===



---
PHP File - myProxy.php
---


    // Grab the specified URL
    $url = "">

    $start = true;

    for ($_REQUEST as $key => $value)
    {
       // If the parameter name starts with 'myParam'
       if (substr($key, 8) == 'myParam_')
       {
           if ($start)
           {
          $start = false;
              $url .= '?';
           }
           else
           {
          $url .= '&';
           }

           // Add the parameter to the URL String
           $url .= $key . '=' . $value;
       }
    }

    // Set the content type
    header('Content-type: text/xml');

    // Open a connection to the specified URL
    $handle = fopen($url, 'r');
    if (!$handle)
       die('Failed to open URL');

    // Collect the result
    while (!feof($handle))
       $result .= fread($handle, 8192);

    // display the result
    die($result);
?>

===


This method is a little longwinded. But the "myProxy.php" is generic
enough to work for any project, and should work for any HTTPService
that you need. This allows you to have a dynamic HTTPService accessing
any resource.

Drop me an email if you have any issues with this sample (The code is
from my head, not a working copy)


Regards,
Graham Weldon






Faisal Abid wrote:
Okay i
see where your going at , so how would i call BuildMyUrl , like 
so i made teh function and then i made trhe service and then i made the
  
textinput , where do i put BuildMyURL(textinput.text) (and is it
normail 
brakets or curly) , im sorry if this is an easy question,  im sort of 
really stressed out and stumped.
  
  
Doug Lowder wrote:
> Try binding the entire url property to a variable that you build in
> code:
>
>   var myUrl: String = "";
>   function buildMyUrl(s: String) {
>   myUrl = "http://something.com/api/someting/"
+
>   s + "/somethingelse/something";
>   }
>
> 
>
>
> Then just call "buldMyUrl(textinput.text)" somewhere, such as the
> click handler for a button or just before you call your
> httpservice's send() method.
>
>
> --- In flexcoders@yahoogroups.com, Faisal Abid <[EMAIL PROTECTED]>
wrote:
> >
> > Okay so for the past 4 hours + 3 hours at night ive been
debugging
> my
> > application only to come to the conclusion that in a
httpservice
> url i
> > cannot do this
> >
> > 
> > url=""http://something.com/api/someting/">http://something.com/api/someting/
> {textinput.text}/somethingelse/something"
> >
> > The httpservice is fine , i test it in a broswer by replacijng
> > texinput.txt to something and it returns what its ment to ,
but in
> flex
> > it gives me an error saying i must defind a url, I mean it is
> defined ,
> > i know there is a workaround to & by puttin & But
What the hec
> is
> > wrong with my url??
> >
>
>
>
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
>
>
>
> SPONSORED LINKS
> Web site design development 
> 
  
>   Computer software development 
> 
  
>   Software design and development 
> 
  
>
> Macromedia flex 
> 
  
>   Software development best practice 
> 

Re: [flexcoders] Re: Please Help. Http Service WTH

2006-05-03 Thread Faisal Abid



I havent tried any of the methods yet , though the first one sounds 
extremely simple to do , however how would i do this if i had multiple 
textinputs and multiple varaibles in the url string , would i have to 
define each on in the function eg

function Deploy(s: String, p:String, and so on and so on)
or is there another way?


Doug Lowder wrote:
> And about parameters in the url, instead of this, for example:
>
>   myUrl = "http://server.com/page?firstname=John&lastname=Doe 
> ";
>   myService.send();
>
> Do this:
>
>   myUrl = "http://server.com/page";
>   myService.send( {firstname: "John", lastname: "Doe"} );
>
> You might be able to get the first case to work in certain
> situations, but it would likely cause problems with a service that
> has its method property set to "POST".
>
>
> --- In flexcoders@yahoogroups.com, Faisal Abid <[EMAIL PROTECTED]> wrote:
> >
> > Ahh rite rite rite , Thanks SO much i will add your name in the
> credits
> > for your help
> >
> >
> > Doug Lowder wrote:
> > > It's up to you where you put the call to buildMyUrl(), depending
> on
> > > when and how you want your http service to be invoked.  You could
> > > add a button and put it in the click handler:
> > >
> > > 
> > >   click="buildMyUrl(textinput.text);myService.send()" />
> > >
> > > Or you could even call it in the enter handler for your text
> imput;
> > > just type some text and hit enter to call your service:
> > >
> > > 
> > >   enter="buildMyUrl(event.target.text);myService.send()" ... />
> > >
> > >
> > > --- In flexcoders@yahoogroups.com, Faisal Abid  wrote:
> > > >
> > > > Okay i see where your going at , so how would i call
> BuildMyUrl ,
> > > like
> > > > so i made teh function and then i made trhe service and then i
> > > made the
> > > > textinput , where do i put BuildMyURL(textinput.text) (and is
> it
> > > normail
> > > > brakets or curly) , im sorry if this is an easy question,  im
> sort
> > > of
> > > > really stressed out and stumped.
> > > >
> > > >
> > > > Doug Lowder wrote:
> > > > > Try binding the entire url property to a variable that you
> build
> > > in
> > > > > code:
> > > > >
> > > > >   var myUrl: String = "";
> > > > >   function buildMyUrl(s: String) {
> > > > >   myUrl = "http://something.com/api/someting/" +
> > > > >   s + "/somethingelse/something";
> > > > >   }
> > > > >
> > > > > 
> > > > >
> > > > >
> > > > > Then just call "buldMyUrl(textinput.text)" somewhere, such
> as the
> > > > > click handler for a button or just before you call your
> > > > > httpservice's send() method.
> > > > >
> > > > >
> > > > > --- In flexcoders@yahoogroups.com, Faisal Abid 
> wrote:
> > > > > >
> > > > > > Okay so for the past 4 hours + 3 hours at night ive been
> > > debugging
> > > > > my
> > > > > > application only to come to the conclusion that in a
> > > httpservice
> > > > > url i
> > > > > > cannot do this
> > > > > >
> > > > > > 
> > > > > > url="" href="http://something.com/api/someting/">http://something.com/api/someting/
> > > > > {textinput.text}/somethingelse/something"
> > > > > >
> > > > > > The httpservice is fine , i test it in a broswer by
> replacijng
> > > > > > texinput.txt to something and it returns what its ment to ,
> > > but in
> > > > > flex
> > > > > > it gives me an error saying i must defind a url, I mean it
> is
> > > > > defined ,
> > > > > > i know there is a workaround to & by puttin & But What
> the
> > > hec
> > > > > is
> > > > > > wrong with my url??
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Flexcoders Mailing List
> > > > > FAQ:
> > > http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > > > > Search Archives: http://www.mail-archive.com/flexcoders%
> > > 40yahoogroups.com
> > > > >
> > > > >
> > > > >
> > > > > SPONSORED LINKS
> > > > > Web site design development
> > > > >  > >
> t=ms&k=Web+site+design+development&w1=Web+site+design+development&w2=
> > >
> Computer+software+development&w3=Software+design+and+development&w4=M
> > >
> acromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=L
> > > -4QTvxB_quFDtMyhrQaHQ>
> > > > >   Computer software development
> > > > >  > >
> t=ms&k=Computer+software+development&w1=Web+site+design+development&w
> > >
> 2=Computer+software+development&w3=Software+design+and+development&w4
> > >
> =Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig
> > > =lvQjSRfQDfWudJSe1lLjHw>
> > > > >   Software design and development
> > > > >  > >
> t=ms&k=Software+design+and+development&w1=Web+site+design+development
> > >
> &w2=Computer+software+development&w3=Software+design+and+development&
> > >
> w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.s
> > > ig=1pMBCdo3DsJbuU9AEmO1oQ>
> > > > >
> > > > > Macromedia flex
> > > > > 

[flexcoders] Re: Please Help. Http Service WTH

2006-05-03 Thread Doug Lowder



And about parameters in the url, instead of this, for example:

  myUrl = "http://server.com/page?firstname=John&lastname=Doe";
  myService.send();

Do this:

  myUrl = "http://server.com/page";
  myService.send( {firstname: "John", lastname: "Doe"} );

You might be able to get the first case to work in certain 
situations, but it would likely cause problems with a service that 
has its method property set to "POST".


--- In flexcoders@yahoogroups.com, Faisal Abid <[EMAIL PROTECTED]> wrote:
>
> Ahh rite rite rite , Thanks SO much i will add your name in the 
credits 
> for your help
> 
> 
> Doug Lowder wrote:
> > It's up to you where you put the call to buildMyUrl(), depending 
on
> > when and how you want your http service to be invoked.  You could
> > add a button and put it in the click handler:
> >
> > 
> >   click="buildMyUrl(textinput.text);myService.send()" />
> >
> > Or you could even call it in the enter handler for your text 
imput;
> > just type some text and hit enter to call your service:
> >
> > 
> >   enter="buildMyUrl(event.target.text);myService.send()" ... />
> >
> >
> > --- In flexcoders@yahoogroups.com, Faisal Abid  wrote:
> > >
> > > Okay i see where your going at , so how would i call 
BuildMyUrl ,
> > like
> > > so i made teh function and then i made trhe service and then i
> > made the
> > > textinput , where do i put BuildMyURL(textinput.text) (and is 
it
> > normail
> > > brakets or curly) , im sorry if this is an easy question,  im 
sort
> > of
> > > really stressed out and stumped.
> > >
> > >
> > > Doug Lowder wrote:
> > > > Try binding the entire url property to a variable that you 
build
> > in
> > > > code:
> > > >
> > > >   var myUrl: String = "";
> > > >   function buildMyUrl(s: String) {
> > > >   myUrl = "http://something.com/api/someting/" +
> > > >   s + "/somethingelse/something";
> > > >   }
> > > >
> > > > 
> > > >
> > > >
> > > > Then just call "buldMyUrl(textinput.text)" somewhere, such 
as the
> > > > click handler for a button or just before you call your
> > > > httpservice's send() method.
> > > >
> > > >
> > > > --- In flexcoders@yahoogroups.com, Faisal Abid  
wrote:
> > > > >
> > > > > Okay so for the past 4 hours + 3 hours at night ive been
> > debugging
> > > > my
> > > > > application only to come to the conclusion that in a
> > httpservice
> > > > url i
> > > > > cannot do this
> > > > >
> > > > > 
> > > > > url="" href="http://something.com/api/someting/">http://something.com/api/someting/
> > > > {textinput.text}/somethingelse/something"
> > > > >
> > > > > The httpservice is fine , i test it in a broswer by 
replacijng
> > > > > texinput.txt to something and it returns what its ment to ,
> > but in
> > > > flex
> > > > > it gives me an error saying i must defind a url, I mean it 
is
> > > > defined ,
> > > > > i know there is a workaround to & by puttin & But What 
the
> > hec
> > > > is
> > > > > wrong with my url??
> > > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Flexcoders Mailing List
> > > > FAQ:
> > http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > > > Search Archives: http://www.mail-archive.com/flexcoders%
> > 40yahoogroups.com
> > > >
> > > >
> > > >
> > > > SPONSORED LINKS
> > > > Web site design development
> > > >  > 
t=ms&k=Web+site+design+development&w1=Web+site+design+development&w2=
> > 
Computer+software+development&w3=Software+design+and+development&w4=M
> > 
acromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=L
> > -4QTvxB_quFDtMyhrQaHQ>
> > > >   Computer software development
> > > >  > 
t=ms&k=Computer+software+development&w1=Web+site+design+development&w
> > 
2=Computer+software+development&w3=Software+design+and+development&w4
> > 
=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig
> > =lvQjSRfQDfWudJSe1lLjHw>
> > > >   Software design and development
> > > >  > 
t=ms&k=Software+design+and+development&w1=Web+site+design+development
> > 
&w2=Computer+software+development&w3=Software+design+and+development&
> > 
w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.s
> > ig=1pMBCdo3DsJbuU9AEmO1oQ>
> > > >
> > > > Macromedia flex
> > > >  > 
t=ms&k=Macromedia+flex&w1=Web+site+design+development&w2=Computer+sof
> > 
tware+development&w3=Software+design+and+development&w4=Macromedia+fl
> > 
ex&w5=Software+development+best+practice&c=5&s=166&.sig=OO6nPIrz7_EpZ
> > I36cYzBjw>
> > > >   Software development best practice
> > > >  > 
t=ms&k=Software+development+best+practice&w1=Web+site+design+developm
> > 
ent&w2=Computer+software+development&w3=Software+design+and+developme
> > 
nt&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166
> > &.sig=f89quyyulIDsnABLD6IXIw>
> > > >
> > > >
> > > >
> > > > -

[flexcoders] Re: Please Help. Http Service WTH

2006-05-03 Thread Doug Lowder



It's up to you where you put the call to buildMyUrl(), depending on 
when and how you want your http service to be invoked.  You could 
add a button and put it in the click handler:


  click="buildMyUrl(textinput.text);myService.send()" />

Or you could even call it in the enter handler for your text imput; 
just type some text and hit enter to call your service:


  enter="buildMyUrl(event.target.text);myService.send()" ... />


--- In flexcoders@yahoogroups.com, Faisal Abid <[EMAIL PROTECTED]> wrote:
>
> Okay i see where your going at , so how would i call BuildMyUrl , 
like 
> so i made teh function and then i made trhe service and then i 
made the 
> textinput , where do i put BuildMyURL(textinput.text) (and is it 
normail 
> brakets or curly) , im sorry if this is an easy question,  im sort 
of 
> really stressed out and stumped.
> 
> 
> Doug Lowder wrote:
> > Try binding the entire url property to a variable that you build 
in
> > code:
> >
> >   var myUrl: String = "";
> >   function buildMyUrl(s: String) {
> >   myUrl = "http://something.com/api/someting/" +
> >   s + "/somethingelse/something";
> >   }
> >
> > 
> >
> >
> > Then just call "buldMyUrl(textinput.text)" somewhere, such as the
> > click handler for a button or just before you call your
> > httpservice's send() method.
> >
> >
> > --- In flexcoders@yahoogroups.com, Faisal Abid  wrote:
> > >
> > > Okay so for the past 4 hours + 3 hours at night ive been 
debugging
> > my
> > > application only to come to the conclusion that in a 
httpservice
> > url i
> > > cannot do this
> > >
> > > 
> > > url="" href="http://something.com/api/someting/">http://something.com/api/someting/
> > {textinput.text}/somethingelse/something"
> > >
> > > The httpservice is fine , i test it in a broswer by replacijng
> > > texinput.txt to something and it returns what its ment to , 
but in
> > flex
> > > it gives me an error saying i must defind a url, I mean it is
> > defined ,
> > > i know there is a workaround to & by puttin & But What the 
hec
> > is
> > > wrong with my url??
> > >
> >
> >
> >
> >
> >
> >
> > --
> > Flexcoders Mailing List
> > FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives: http://www.mail-archive.com/flexcoders%
40yahoogroups.com
> >
> >
> >
> > SPONSORED LINKS
> > Web site design development 
> >  
> >   Computer software development 
> >  
> >   Software design and development 
> >  
> >
> > Macromedia flex 
> >  
> >   Software development best practice 
> >  
> >
> >
> >
> > -
---
> > YAHOO! GROUPS LINKS
> >
> > *  Visit your group "flexcoders
> >   " on the web.
> >    
> > *  To unsubscribe from this group, send an email to:
> >    [EMAIL PROTECTED]
> >   
subject=Unsubscribe>
> >    
> > *  Your use of Yahoo! Groups is subject to the Yahoo! Terms 
of
> >   Service .
> >
> >
> > -
---
> >
>










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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
 

Re: [flexcoders] Re: Please Help. Http Service WTH

2006-05-03 Thread Faisal Abid



Okay i see where your going at , so how would i call BuildMyUrl , like 
so i made teh function and then i made trhe service and then i made the 
textinput , where do i put BuildMyURL(textinput.text) (and is it normail 
brakets or curly) , im sorry if this is an easy question,  im sort of 
really stressed out and stumped.


Doug Lowder wrote:
> Try binding the entire url property to a variable that you build in
> code:
>
>   var myUrl: String = "";
>   function buildMyUrl(s: String) {
>   myUrl = "http://something.com/api/someting/" +
>   s + "/somethingelse/something";
>   }
>
> 
>
>
> Then just call "buldMyUrl(textinput.text)" somewhere, such as the
> click handler for a button or just before you call your
> httpservice's send() method.
>
>
> --- In flexcoders@yahoogroups.com, Faisal Abid <[EMAIL PROTECTED]> wrote:
> >
> > Okay so for the past 4 hours + 3 hours at night ive been debugging
> my
> > application only to come to the conclusion that in a httpservice
> url i
> > cannot do this
> >
> > 
> > url="" href="http://something.com/api/someting/">http://something.com/api/someting/
> {textinput.text}/somethingelse/something"
> >
> > The httpservice is fine , i test it in a broswer by replacijng
> > texinput.txt to something and it returns what its ment to , but in
> flex
> > it gives me an error saying i must defind a url, I mean it is
> defined ,
> > i know there is a workaround to & by puttin & But What the hec
> is
> > wrong with my url??
> >
>
>
>
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
>
>
>
> SPONSORED LINKS
> Web site design development 
>  
>   Computer software development 
>  
>   Software design and development 
>  
>
> Macromedia flex 
>  
>   Software development best practice 
>  
>
>
>
> 
> YAHOO! GROUPS LINKS
>
> *  Visit your group "flexcoders
>   " on the web.
>    
> *  To unsubscribe from this group, send an email to:
>    [EMAIL PROTECTED]
>   
>    
> *  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
>   Service .
>
>
> 
>







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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] Re: Please Help. Http Service WTH

2006-05-03 Thread Doug Lowder



Try binding the entire url property to a variable that you build in 
code:

  var myUrl: String = "";
  function buildMyUrl(s: String) {
  myUrl = "http://something.com/api/someting/" + 
  s + "/somethingelse/something";
  }




Then just call "buldMyUrl(textinput.text)" somewhere, such as the 
click handler for a button or just before you call your 
httpservice's send() method.


--- In flexcoders@yahoogroups.com, Faisal Abid <[EMAIL PROTECTED]> wrote:
>
> Okay so for the past 4 hours + 3 hours at night ive been debugging 
my 
> application only to come to the conclusion that in a httpservice 
url i 
> cannot do this
> 
> 
> url="" href="http://something.com/api/someting/">http://something.com/api/someting/
{textinput.text}/somethingelse/something"
> 
> The httpservice is fine , i test it in a broswer by replacijng 
> texinput.txt to something and it returns what its ment to , but in 
flex 
> it gives me an error saying i must defind a url, I mean it is 
defined , 
> i know there is a workaround to & by puttin & But What the hec 
is 
> wrong with my url??
>










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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.