Jump to content
Larry Ullman's Book Forums
Sign in to follow this  

Ajax Request Of Server-Side Script

Recommended Posts



In script 15.10, login.js, page 487, there's the AJAX request of the server-side script login_ajax_php.


The actual request of the script (line 89-92, $.Ajax(options)) comes after all the tests on the response (line 68, if (respnse == 'CORRECT')...).


I can't understand how the AJAX request knows that it has to call the server-side script login_ajax_php.


To put it in other words:

1) login.php displays the form

2) when you click on the submit button, login.js starts

3) login.js calls login_ajax.php (BUT HOW? WHERE? WHEN?)

4) login_Ajax.php performs the echo

5) login.js reads the response written with the echo, hides the login form and write "You are now ".


Could you please help me?





Share this post

Link to post
Share on other sites

So sorry for the delayed reply! This got lost on my end. I hope you've figured this out by now, but if not...


login.js calls login_ajax.php on line 92 of login.js: $.ajax(options);


Let me know if anything is still not clear. Apologies again!

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...