...

View Full Version : Ajax request



leegodden
07-24-2010, 11:44 PM
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]

A1ien51
07-26-2010, 05:41 AM
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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum