Home › Forums › WP ESTATE – Real Estate WordPress Theme FORUM › ajax question
This topic contains 3 replies, has 2 voices, and was last updated by Anna 3 years, 8 months ago.
hiya, im having problems with the ajax on the ?property_action_category=sales page.
I changed it from POST to GET, and it works now, but why would this be a problem? is there a setting somewhere?
ahh its not working
I tried to do this:
$_POST = array_merge($_GET, $_POST);
But the filters with arrays fail..
Simple ones will work eg:
this one wont:
^ when the JS puts it into the url for GET it makes a mess of the arrays, so ill have to convert to JSON etc right?
or how do i get the POST working?
ok i worked it out.
the control.js was punching through the title not the slug
action_array.push( $(this).val() );
this is the fix:
action_array.push( $(this).attr(‘id’).replace(‘_listing’,”) );
I’m happy you managed to do this. Your skills are really good.
You must be logged in to reply to this topic.