![]() |
Help with an AJAX function
I have someone helping me out with a minor modification on my vB 4.2.1 forum who is having trouble with an AJAX function.
A custom checkbox userfield needs to be updated. Here is the line for the AJAX request: Code:
var postData = {"do" : "saveuserfield", "fieldid" : "5", "securitytoken" : SECURITYTOKEN, "userfield" : {"value" : cValue}}; Any ideas? Any help appreciated! |
Here's some code from clientscript/vbulletin_profilefield_edit.js:
Code:
var A = new vB_Hidden_Form(null); this.element is the form object that has the fields for the profilefield being edited. You can also just call the vB_Hidden_Form function add_variable() for each variable to be added, if there's no form object. The code for vB_Hidden_Form is in clientscript/vbulletin-core.js. |
All times are GMT. The time now is 08:55 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|