Hi,
I'm trying to setup some JavaScript on a page using Jquery, to make a remote
request on my site and return results.
Using Jquery syntax, I have:
$.get('/remote/delete',{id:option.attr('name')},function(data,sender) {
//check if the request succeeded and update as necessary
});
This seems to work fine if I'm on a specific page e.g.
http://mysite.com/user/files/delete
And the remote requests are handled by a RemoteController.php file with
delete action.
However, this stops working as soon as the page URL has anything extra e.g.
http://mysite.com/user/files/delete/
OR
http://mysite.com/user/files/delete/variable1/value1/
Is there a better solution to perform remote requests than the method I am
using?
Thank you in advance for all the help.
Regards
--
View this message in context:
http://www.nabble.com/AJAX-Requests-in-Zend-tp21461877p21461877.html
Sent from the Zend Framework mailing list archive at Nabble.com.