I am dealing with receiving params in an action, from an ajax call.
Once in a view, i m getting some values (geolocation)
then i make an ajax call ($.get()) like
controller/action/lat/xxx/long/xxx
to query a db.
In the action i called, i try to get the params via
$lat = $this->_request->getParam("lat");
$long = $this->_request->getParam("long");
BUT,
I m gettinig the params of the url i am in (browser url, not of the ajax url)
any light?
THANKS!
Use $.post() instead of
$.get()If you do not want parameters to be send through url .