PDA

View Full Version : AJAX call with vBulletin


ArbuZz
07-11-2008, 09:42 AM
I know that vBulletin is capable of Ajax. I need to retrieve some info from the server asynchronously, but I do not want to add my own library to get rid of code duplication. Does anyone know how I can make Ajax call with the use of vBulletin functions?

Dismounted
07-11-2008, 09:46 AM
vBulletin recently switched from its own system to the YUI framework.
YAHOO.util.Connect.asyncRequest('POST', scriptpath + '?do=ajax', {
success: this.handle_ajax_response,
failure: this.handle_ajax_error,
timeout: vB_Default_Timeout,
scope: this
}, SESSIONURL + 'securitytoken=' + SECURITYTOKEN + '&foo=' + foo);