The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Adding the sessionhash to javascript/ajax
I am having trouble adding the session hash to my javascript.
I suck at javascript so I really don't know where to start. Here is my javascript from YUI Code:
CODE REMOVED Code:
CODE REMOVED I would like to convert this to the vb format if anyone would like to be nice. This code works outside vbulletin so I can only guess it is because I am not sending the session hash. |
#2
|
|||
|
|||
following line in your code sends the request to the PHP script, if you want to send the sessionurl, security token etc along with the rest of the data, you can simply add following 'already-defined' variables
Code:
url = "ajax/saveCopyright.php?photoId=" + escape(phId)+ "&text=" + escape(cr_text)+"&rand="+new Date().getTime(); Code:
url = "ajax/saveCopyright.php?photoId=" + escape(phId)+ "&text=" + escape(cr_text)+"&rand="+new Date().getTime() + "&sessionUrl=" + SESSIONURL + "&securityToken=" +SECURITYTOKEN; PHP Code:
|
#3
|
||||
|
||||
Thanks man this didn't happen to be my problem.
I had a error in my sql syntax and sadly AJAX doesn't tell you unless you tell it too. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|