06-09-2012 09:18 AM
I want to call webservice (ws) json method='post'
My app install on playbook and call webservice on my server
I used jsonp to call ws method='get' is working well (because jsonp support call ws cross domain).
Unfortunaterly, jsonp does not support to call ws method='post'
I use Ripple Emulator on Chrome to test my webworks app, so I can not call ws method='post'.
I think this is the issue about cross domain.
Could you help me to call ws json method='post' on Chrome.
Expect your response soon!
06-09-2012 09:10 PM - edited 06-09-2012 09:12 PM
WebWorks has no restrictions about cross-domain calls so don't worry. The only problem is when you're debugging on Chrome (and other browsers too) which has a restriction to cross-domain requests in order to protect your computer, but in this case you can disable this to debug your web app.
If you're on a Mac just execute this command:
sudo "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" --disable-web-security --allow-file-access-from-files
On other OSes just execute Chrome with the --disable-web-security --allow-file-access-from-files arguments.
If I was helpful don't forget to click the Like button to support my work.
06-09-2012 10:20 PM
Thanks so much for your good opinion!
I will try to deploy my webworks app on playbook to test call ws method='post' which I have mentioned.
But I have a other issue, can you help me again ^^:
This is issue: How to deploy webworks app on playbook
I have successfully created a debug token.
After that, I installed it on playbook successfully.
I have just deploy my webworks app on my playbook follow this guide!
I try to implement step to step,
The cmd line of the "Step Ten":
C:\Program Files\Research In Motion\blackberry-tablet-sdk-1.1.1\bin>blackberry-
Info: Sending request: Install
Info: Action: Install
Info: File size: 2269
Info: Installing ...
Info: Processing 2269 bytes
But my webworks app is not apeared on my playbook!
Could you show me the reason?
I am expecting your respone soon!
06-09-2012 10:46 PM
06-11-2012 09:58 AM
When you compiled your WebWorks app, did you use the -d command line argument (enable Web Inspector)? This flag is necessary when using Debug Tokens as it injects the appropriate author info for your debug token files.
06-12-2012 11:23 AM