beedesk / jQTouch

jQT + actively maintained + exclusive features (iPad layout, iscroll, tons of css enhancements, page events, param passing between pages, radio button, grid, mail, improved page history management etc.)
http://bit.ly/beedesk-jqt
MIT License
72 stars 13 forks source link

AJAX not working anymore #18

Closed ghost closed 13 years ago

ghost commented 13 years ago

The latest commit seems to have a problem in the AJAX functionality.

I'm getting the following error in iOS simulator: TypeError: Result of expression 'animation.split' [undefined] is not a function

thomasyip commented 13 years ago

What was the version you used last time? Can you show the line number?

The error indicating that animation is null. It shouldn't be and is a bug I want to fix. But, for the mean time, you might get away by calling goTo with a second parameter:

    jqt.goTo("#yourpage", "slideup");

Let me know if it helps.

I didn't change AJAX functionality for a while. The change might have caused AJAX was updating to jquery 1.5.x. But, it should only affect the demos, unless you update your index.html too.

thomasyip commented 13 years ago

I don't have enough details to reprod it. Please reopen it, if you feel the bug is still here.

ghost commented 13 years ago

I am still experiencing this bug. Now I'm submitting a form to ajax.php with POST

<a href="#" id="fulltext_submit" class="submit whiteButton">Search</a>

The new page loads (but without animation) and prints the $_POST contents. After the new page has been inserted, every further tap on any interface element gives me a "Tap not ready" error: Tap not ready. type: "A" id: ""

ghost commented 13 years ago

If I comment out the line that returns "Tap not ready" in jqtouch.js, I get another error connected to animations not being set:

Uncaught TypeError: Object # has no method 'split'

So why aren't the animations set here?

ghost commented 13 years ago

Thank you, that worked :)

thomasyip commented 13 years ago

Fix pushed to git.