Post Data to a URL actionscript - forms

I am having real trouble here. I am very new at Flash and have created a form that i then need to post the data to a URL. I have no clue how to do this and all i find online is information that include PHP.
Any help is appreciated and thank you in advance

which actionscript version are you using?
for actionscript2 you need to use LoadVars (sendAndLoad example here http://help.adobe.com/en_US/AS2LCR/Flash_10.0/help.html?content=00001161.html)
for actionscript3 you need to use URLRequest and URLLoader (example here http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/URLLoader.html#includeExamplesSummary)
the actionscript3 reference is very horribly written and unreadable though, so you might want to check this post out http://labs.grupow.com/blog/2008/11/06/sending-variables-in-as3-aka-sendandload-in-as2

Related

Fetch Wordpress Comments to iPhone

I am interested specifically in this functionality: I want to fetch all comments from a Worpress-based blog. I had a look at the Wordpress iOS application, but it looks too complex for me. Can some one please give me some hints in what would be the steps to achieve that. (I assume first I need to log-in somehow, and after that call a method using XML-RPC)
If possible, please don't suggest me the Wordpress iOS application, as it is a bit too complex for me.
Thank you.

Posting a URL iPhone

I need to submit an HTML form on a website. It uses the post method. How can I post the form with the values of two UITextFields and submit the form using merely code. Then I need to get the response of the post in html. I don't have any code so far and I couldn't find anything on google! Could anybody please help me solve this problem? I need to submit this form without using a UIWebView. Thanks.
Also have a look at ASIHttpRequest. This uses POST methods as well, and in my opinion much easier to use than NSURLRequest and NSURLConnection.
The best answer so far is here from another question, credit to Matt Gallagher from cocoa with love :D

Creating rss feed with appcelerator

I'd like to create an RSS feed in my window does but I do not know how. I link the xml file that contains the videos, etc. but I do not know how it works excat.
Can you give me an example please because of the kitchen sink I did not understand.
Thank you
I found this one to be perfect:
http://gigaom.com/apple/tutorial-build-a-simple-rss-reader-for-iphone/
Make sure you build the whole project and try to read what is happening. It's only helpful when you actually code it yourself.
EDIT: I just now saw it was for Appcelerator. Check out this tutorial: http://twoappguys.com/blog/appcelerator-view-rss-feed/

how to parse using xml parser in iphone?

Am able to parse
< name>Walmart< /name>
using xml parser
but how to parse
*< s:image link="http://i.walmartimages.com/i/p/00/02/72/42/77/0002724277837_500X500.jpg"/>*
using xml parse in iphone.
Thanks in advance
There are various ways of doing this. My personal favorite is using Xpath via TFHpple. Xpath is clearly documented and easy to understand at W3schools. Sorry, I can't link to it. Spam filter prevents it.
I've used this approach for all sorts of things, and it is also great to note that you can use this library with HTML data as well.
I got the solution......
No need to go to parser libraries...
We can parse such tags using NSXMLParser with the help of attribute concepts....
thanks for you all for helping me....
cheers

Possible to parse this html with xpath?

I am working on gather sports statistics for a personal hobby project. I found this site with all the info I need:file:///Users/JohnJNichols4/Desktop/view-source%20cluster.leaguestat.com%20download.php%20client_code=ahl&file_path=daily-report%20daily-report.html
Am I able to parse this site with xpath? I only have experience (little experience) with cocoa and xcode, so I am writing this is objective c with a wrapper called hpple. My problem arises when I need to pull info from the tables. I have no idea how to go about this. The xpath expressions that I enter are all wrong. Can anyone show me how one might parse the standings in the first table? The function I am using is:
NSArray *elements = [xpathParser search:#"xpath stuff goes here"];
Thanks a lot!
EDIT URL
Sorry guys, I put up the local URL by mistake. Here is the right one: http://cluster.leaguestat.com/download.php?client_code=ahl&file_path=daily-report/daily-report.html
If you want to treat it as XML, you can, but it'll have to be properly formed, which isn't always the case with HTML. I'd recommend using the TouchXML library, it has great xpath support and a fair amount of documentation and examples.
http://foobarpig.com/iphone/touchxml-installation-guide.html