Hi
In the jQuery('#id').navGrid I have a custom URL for each action, like this:
jQuery('#list').navGrid('#pager',
// options
{},
// edition
{url:'/contacts/update/idperson/id; ?>'},
// add
{url:'/contacts/add/' },
// delete
{ url:'/contacts/delete'},
// search;
{}
);
The URL works fine the first time I click to update or add a record.
After update, even if I click on the add button, the update URL is called. After an add action, the URL stay in update even if I click the add button.
I can't use the same URL with the 'oper' or 'add' parameter, because we need different URL for each action to better integration into Zend Framework. I think is easy to change this behavior in JS than to change all the structure or ZF and our application.
Is there any way to “reset” the form action or other solution?
Thank you,
Escrig
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top