Debugging
The script is actually working successfully (tested at hurl.it). But in tiggsi even though the script does eveything it should, I don't get the response back that I do at hurl.it so the code to run on completion of the post doesn't run.
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
The script is actually working successfully (tested at hurl.it). But in tiggsi even though the script does eveything it should, I don't get the response back that I do at hurl.it so the code to run on completion of the post doesn't run.
However, the post shows up red on the firebug console and shows this - I wonder if there is some problem with receiving the returned data on your server?
POST http://webrecipemanager.com/savelist.php
200 OK
912ms
jquery-1.6.4.js (line 7950)
HeadersPostHTML
Response Headers
Connection Keep-Alive
Content-Type text/html
Date Tue, 16 Oct 2012 03:50:59 GMT
Keep-Alive timeout=5, max=100
Server Apache
Transfer-Encoding chunked
X-Powered-By PHP/5.3.6
Request Headers
Accept /
Accept-Encoding gzip, deflate
Accept-Language en-au,en;q=0.7,en-us;q=0.3
Connection keep-alive
Content-Length 484
Content-Type application/x-www-form-urlencoded; charset=UTF-8
Host webrecipemanager.com
Origin http://project.tiggzi.com
Referer http://project.tiggzi.com/view/6d0b6a...
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20100101 Firefox/15.0.1
Here's jquery-1.6.4.js (line 7950)
// Do send the request
// This may raise an exception which is actually
// handled in jQuery.ajax (so no try/catch here)
xhr.send( ( s.hasContent && s.data ) || null );
It doesn't go through Tiggzi servers... it goes directly from the browser to the service and back to the browser.
When you access via a rest service though, you are using the tiggzi proxy server where as I'm not - does that make any difference?
I think I can't use $.post cross domain.
Weird it works on my android phone too.
When running as native app?
How do I know if i'm running as a native app?