jQuery + XAJAX = Bad?

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
nutkenz
Forum Contributor
Posts: 155
Joined: Tue Jul 19, 2005 12:25 pm

jQuery + XAJAX = Bad?

Post by nutkenz »

I hope someone here has experience with (X)AJAX and jQuery. My problem is that I cannot seem to update a form field anymore after I've triggered a XAJAX function (which also updates the form field using jQuery).
Firebug output
Firebug output
xajax.jpg (58.91 KiB) Viewed 1844 times
In the FireBug output you can't see it, but the first update to 'x' works fine and the one after an ajax call does not... Can anyone please help me?
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: jQuery + XAJAX = Bad?

Post by pickle »

We're going to need to see your jQuery code, including your AJAX call so we can see what the situation is.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
nutkenz
Forum Contributor
Posts: 155
Joined: Tue Jul 19, 2005 12:25 pm

Re: jQuery + XAJAX = Bad?

Post by nutkenz »

They're all in the picture. It's not a regular AJAX call btw, but it uses the XAJAX PHP Library. I don't think the function called is relevant, just the response. Correct me if I'm wrong.
nutkenz
Forum Contributor
Posts: 155
Joined: Tue Jul 19, 2005 12:25 pm

Re: jQuery + XAJAX = Bad?

Post by nutkenz »

They're all in the picture. It's not a regular AJAX call btw, but it uses the XAJAX PHP Library. I don't think the function called is relevant, just the response.
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: jQuery + XAJAX = Bad?

Post by pickle »

PHP can't run client-side. You HAVE to have a javascript AJAX call if you're getting content from the server without reloading the page.

The JS is very relevant - how else are we supposed to know what the situation is?
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
nutkenz
Forum Contributor
Posts: 155
Joined: Tue Jul 19, 2005 12:25 pm

Re: jQuery + XAJAX = Bad?

Post by nutkenz »

I'm aware of the fact that PHP can't be run client side... I'm using XAJAX however, which allows AJAX without the need for writing JavaScript.

For some strange reason, after I restarted FireFox and FireBug, the code did work as expected.
User avatar
Ollie Saunders
DevNet Master
Posts: 3179
Joined: Tue May 24, 2005 6:01 pm
Location: UK

Re: jQuery + XAJAX = Bad?

Post by Ollie Saunders »

Oh I thought XAJAX was another on of those silly variations on an abbreviation that meant essentially the same thing as the original but turns out it's a PHP library :-O
For some strange reason, after I restarted FireFox and FireBug, the code did work as expected.
Ahh yeah I've experience that. Pretty cool. Glad you got it fixed though.
Post Reply