Jump to content

Question on Prototype Ajax.Request format


blanius

Recommended Posts

This isn't working as expected is this formatted right?

function sendcat(){
	var url="dbq.php";
	var data=$('cat').serialize();

	var	MyAjax=new Ajax.Request(url,{
			method: 'post', 
			parameters: data,
			onSuccess: function(){
				getcats();
				}
		});

My call to the PHP is fine it's the function for onSuccess that doesn't fire.

Link to comment
https://forums.phpfreaks.com/topic/97897-question-on-prototype-ajaxrequest-format/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.