ThorstenA
02-19-2011, 01:26 PM
How can I give a securitytoken to a script? This does not work:
$(document).ready(function(){
$("form#submit").submit(function() {
var SECURITYTOKEN = "{vb:raw bbuserinfo.securitytoken}";
$.ajax({
type: "POST",
url: "misc.php",
data: "do=updatethis&securitytoken =" + SECURITYTOKEN,
success: function(){
$('form#submit').hide(function(){$('div.success'). fadeIn();});
}
});
return false;
});
});
$(document).ready(function(){
$("form#submit").submit(function() {
var SECURITYTOKEN = "{vb:raw bbuserinfo.securitytoken}";
$.ajax({
type: "POST",
url: "misc.php",
data: "do=updatethis&securitytoken =" + SECURITYTOKEN,
success: function(){
$('form#submit').hide(function(){$('div.success'). fadeIn();});
}
});
return false;
});
});