09-24-2012 07:38 AM
Well one of my Playbook apps uses AJAX without a full URL, which it must figure out from the "access uri=" in config.xml.
Also, where does the Dev Alpha AJAX response find my app source code?
In future I'll use a full URL.
09-24-2012 07:48 AM
Sorry, I missed your questions.
I'm running in debug-mode with or without USB on a Dev Alpha device, 10.0.6.671
It's a straight-forward browser app that works fine on a laptop.
09-24-2012 10:51 AM
I'm wondering if there is some header weirdness going on.
Can you:
1. Access the page via chrome. Use web inscpector>Network. If you click on the join.php page you should see the full request, status, headers, etc.
2. package Webworks app using -d and deploy to device. Connect to web inspector from Chrome and do the same thing. Do you see anything different?
3. Try the same thing as #2 on Playbook
Somewhere in there, something should stand out as being different. my guess is that your php server is serving up the source vs response for some reason, and that reason has to be part of the request being made to it.
If you can't find it, just post the "request" portion of the results here and i'll take a look as well.
Here is a sample that i grabbed from this page, to give you an idea of what you are looking for:
Request URL:http://supportforums.blackberry.com/t5/forums/repl
Request Method:GET
Status Code:200 OK Request Headersview source
Accept:text/html,application/xhtml+xml,application
Accept-Encoding:gzip,deflate,sdch
Accept-Language:en-US,en;q=0.8
Connection:keep-alive
Cookie:__qca=P0-1246504013-1339530061419; __utma=196668671.272471378.1339756336.1339756336.1
User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.89 Safari/537.1
09-24-2012 12:28 PM
On your laptop is join.php in the same folder as your app?