Skip to main content
5 events
when toggle format what by license comment
Jul 2, 2017 at 21:40 comment added Cesar Henrique Damascena I updated my answer with a post showing an example.
Jul 2, 2017 at 21:39 history edited Cesar Henrique Damascena CC BY-SA 3.0
add external source
Jul 2, 2017 at 21:30 comment added Cesar Henrique Damascena You have to pass trough the data object any values that you will use in the action. In your code you're trying to get two parameters in the $_POST, the $_POST['date'] and $_POST['property_added'], you have to pass them trough the ajax call.
Jul 2, 2017 at 21:22 comment added scopeak I had tried to do data = { action: 'ek_search', name: name, lat: lat, lng: lng}; but spat out an error saying lat doesn't exist. Is that correct to reference the $_POST variables?
Jul 2, 2017 at 21:17 history answered Cesar Henrique Damascena CC BY-SA 3.0