![]() |
ajax Post not working
Hi all,
I have a script that does the following: Code:
$.ajax({ Then in the Plugin, hook ?misc_start?, I have: Code:
if($_REQUEST['do'] == 'cloc') { It works fine if do this: Code:
$.ajax('./misc.php?do=cloc&action=updatevp&X=' + X + '&Y=' + Y) Why can I not ?POST? it? I am creating or at least trying to create my first pluging, so all this is a little new to me, am I missing something simple? Thanks |
Eventually found the problem, I had to pass the security token as well:
Code:
'securitytoken': SECURITYTOKEN Code:
$.ajax({ |
Good job finding the issue :)
|
... and thanks for posting the solution! :)
|
Good job and thumbs up for posting the answer. Really makes the thread useful to the the community.
|
All times are GMT. The time now is 11:22 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:
|