[jQuery] Using AJAX for computation (JS too slow)

2008-09-05 Thread jbhat
So I am porting a variation of the board game Hex from java to javascript, as I am putting it on the web. One of the functions I need to write for the computer AI to get his next move is to fill in the rest of the board (a filled hex is red or blue, an unfilled is white) 300,000 times, randomly,

[jQuery] AJAX not working

2008-07-11 Thread jbhat
I am having trouble with AJAX: In document ready i have: $.post("test.php", function(data){alert('Success');}); and test'php is just ...the alert never comes up This is just a test... In addition to the callback not working, when the php file updates a mySQL database, those updates are never m

[jQuery] Re: AJAX not working

2008-07-11 Thread jbhat
"Jonathan Sharp" <[EMAIL PROTECTED]> wrote: > Hi jbhat, > > Can you post a URL? It's nearly impossible to debug or provide any feedback > from reading the code below. > > Cheers, > -Jonathan > > On Fri, Jul 11, 2008 at 2:51 PM, jbhat <[EMAIL PROTECTED]>

[jQuery] Re: AJAX not working

2008-07-11 Thread jbhat
Okay, i got my code up and running on http://bttt.bidding-games.com/game.php when you type something in the bid box, and hit enter, we get a post firing to setBothBids.php. However, the alert in this function's callback is not firing. Why? Thanks, Jay On Jul 11, 1:28 pm, jbhat &l

[jQuery] Re: AJAX not working

2008-07-11 Thread jbhat
Okay, i got my code up and running on http://bttt.bidding-games.com/game.php when you type something in the bid box, and hit enter, we get a post firing to setBothBids.php. However, the alert in this function's callback is not firing. Why? Thanks, Jay On Jul 11, 1:28 pm, jbhat &l

[jQuery] AJAX bugging out

2008-07-14 Thread jbhat
Hi, So i use $.post to call click.php. The variables are getting posted to this function correctly confirmed via firebug id 197 player1 false pos b4 turnbid in my php code, i get them immediately, but when i use $id in mySQL, it seems to disappear: die is returning SELECT boar