Jump to content
gunter

inputfield ajax problem :This request was aborted because it appears to be forged

Recommended Posts

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},
....

 

 

 

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...