Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 27 Nov 2013, 10:58
Joe Blow Joe Blow is offline
 
Join Date: Aug 2004
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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

How do you set the userfield array for this request, since there is no documentation for it? The function that is being called is saveuserfield and is located in ajax.php

Any ideas?

Any help appreciated!
Reply With Quote
  #2  
Old 27 Nov 2013, 13:19
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
Here's some code from clientscript/vbulletin_profilefield_edit.js:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


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.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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


New To Site? Need Help?

All times are GMT. The time now is 08:43.

Layout Options | Width: Wide Color: