Go Back   CodingForums.com > :: Client side development > JavaScript programming > Ajax and Design

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-24-2010, 11:44 PM   PM User | #1
leegodden
New Coder

 
Join Date: Jul 2009
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
leegodden is an unknown quantity at this point
Ajax request

HI, I am a beginner in Ajax, so please excuse my ignorance.
Could anyone explain the snippet of code below. Its part of a js page that uses a form on another page to register a new user. But how does it insert username, email and password into a database? Is there a file entitled 'registerNewUser' somewhere that inserts values into a database table?

Any help would be much appreciated

Regards

Lee

[ICODE]

Utils.Request({
parameters: {
action: 'registerNewUser',
username: username,
email: email,
password: password
},
asynchronous: false,
onSuccess: function(response) {
$('signupButton').enable();

[ICODE]
leegodden is offline   Reply With Quote
Old 07-26-2010, 05:41 AM   PM User | #2
A1ien51
Senior Coder

 
A1ien51's Avatar
 
Join Date: Jun 2002
Location: Between DC and Baltimore In a Cave
Posts: 2,717
Thanks: 1
Thanked 94 Times in 88 Posts
A1ien51 will become famous soon enough
JavaScript can not access the database on the server. It makes a request to some page/service on the server that handles the http request.

Eric
__________________
Tech Author [Ajax In Action, JavaScript: Visual Blueprint]
A1ien51 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:46 AM.


Advertisement
Log in to turn off these ads.