Page 2 of 4

Debugging

Posted: Tue Oct 16, 2012 3:47 am
by Barbara

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.


Debugging

Posted: Tue Oct 16, 2012 3:56 am
by Barbara

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


Debugging

Posted: Tue Oct 16, 2012 3:59 am
by Barbara

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 );


Debugging

Posted: Tue Oct 16, 2012 4:12 am
by maxkatz

It doesn't go through Tiggzi servers... it goes directly from the browser to the service and back to the browser.


Debugging

Posted: Tue Oct 16, 2012 4:15 am
by maxkatz

It works in Tiggzi (via Test) same way it works in hurl.it:

Image

Content-type is set to x-www-form-urlencoded.


Debugging

Posted: Tue Oct 16, 2012 5:02 am
by Barbara

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?


Debugging

Posted: Tue Oct 16, 2012 5:25 am
by Barbara

I think I can't use $.post cross domain.


Debugging

Posted: Tue Oct 16, 2012 6:41 am
by Barbara

Weird it works on my android phone too.


Debugging

Posted: Tue Oct 16, 2012 1:32 pm
by maxkatz

When running as native app?


Debugging

Posted: Tue Oct 16, 2012 4:29 pm
by Barbara

How do I know if i'm running as a native app?