textArea dataprovider... Please HELP!

I need to load my server information in a textArea... anyway have a httpService gets data from the server in a php script and echo the content as a string and then place the answer in the text box? I need some help here.

As suggested, there are several possibilities, so you should read the docs to better understand what those are, but to answer the question using your specific example:

Change your HTTPService tag as follows:

http://localhost/myproj/connect.php"
useProxy="false" resultFormat="text" result="mytext.text = event.result.toString()"/>

A more 'clean' way would be to create a result handler function in a script block in your mxml file.  The function would take 1 parameter which would be of type ResultEvent and could look like:


     

You can access the text sent to your php in the 'result' of the ResultEvent object property.  It is of type Object and the text property of your text box must be on a string, that's why we need on the part of toString().

Then you must set the result property of your HTTPService tag to call this function as such:

http://localhost/myproj/connect.php"
useProxy="false" resultFormat="text" result="userRequest_ResultHandler(event)"/>

Note that you must include the Party (event) because userRequest_ResultHandler expects a parameter that is the result of userRequest.send)

See you soon

Tags: Flex

Similar Questions

Maybe you are looking for

  • Save mail to the server, not computer

    In Mac Mail, is it possible to save my mail (Inbox, sent mail, etc.) on the server ONLY and don't have it download on my computer? I have a few different accounts from different providers (such as hotmail) and here the messages remain on the server o

  • Pavilion zv5000: cmos battery location

    I recently did a clean install of win7 XP and since then have had to reset the boot sequence.  After some research, I realized that the cmos was not keeping date/time, etc.  After you start through the process of recovery of the win7 os works find. 

  • Where to buy a replacement battery for my HP Pre 3?

    I am looking for a spare battery for my HP Pre 3, but unfortunately, it seems that there are no stores with FB376AA in stock. I guess my chances are slim...

  • How can I fix the failures of update?

    For a month now, I have made several attempts to install the updates, but they not continually. I tried to fix them using MicrosoftFixit.wu.Run & MicrosoftFixit50202, but nothing works - they keep coming to the top. Can someone tell me how to install

  • can't logon window

    I have a 2 month old Windows hp14ro32TU 8.1 a window will appear at startup (boot) said Application LononUIexe error the instruction at Oxbf1985ef referenced memory at Ox00000014 The memory could not be read Click OK to terminate the program I click