12-16-2010 11:50 AM
i am using webworks and widget SDK to do a simple application where i need to do the following
1) open a site called www.mytest.com
2) post the following parameters along with request to open the site
Is this possible using BlackBerry Widget SDK? I looked at the
Solved! Go to Solution.
12-16-2010 12:19 PM
Yes you can...
When making an Ajax request, on your call to the XMLHttpRequest objects open() method use the following:
'post' : your request method
url: the url to which you are making the http request
true: for it to be asynchronous (note: this is the default behavior)
post_string: is a urlencoded string containing all your post variables and their values like so
You should be okay from here so long as you know how to create an XMLHttpRequest object and can use GET, this should be familiar.
12-16-2010 01:22 PM
Thanks. This solved the issue. In any case i have decided to use the Java widget as i need some more features which currently are avaliable only on java side.
Thanks again for your help.