gunter Posted February 23, 2020 Share Posted February 23, 2020 I want show a fullcalendar in an inputfield... and send data via ajax back to the module (new event, move event, resize event...) catching the ajax call in the init method works... public function init() { parent::init(); if ($this->config->ajax){ echo "<pre>ajax intercepted!!!"; print_r($_GET); print_r($_POST); exit(0); } } when I POST data via ajax back to the server comes this error: "This request was aborted because it appears to be forged". Maybe I can fix this when I give the POST variables proper names, with the inputfield name as prefix, because now the POST variables have just normal names like title, start or end... $.ajax( { url:'".$ajaxurl2.", type:'POST', data:{title:title, start:start, end:end, id:id}, }); using GET variables works... maybe I should just use them... or do you have an easier solution? $.ajax( { url:'".$ajaxurl2."&update=true&title='+title+'&start='+start+'&end='+end, // type:'POST', // data:{title:title, start:start, end:end, id:id}, .... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now