You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to change the url of ajax dynamically?
I have got a task navigation and in order to reuse the autosave.js I need to change the ajax url according to the current opened task. (the task nav hides and shows the forms, so there is no page reload).
The text was updated successfully, but these errors were encountered:
@patrickf0 you can pass in dynamic data to the ajax save handler but using a function instead of an object -- but that won't work for the url property. You could, alternatively, write your own ajax handler and use it instead of the default one.
@patrickf0 What I ended up doing was updating the <form> tag's action attribute dynamically and in the save callback I'd re-read the form's action attribute:
Hi there,
great plugin! Works nice!
Is there a way to change the url of ajax dynamically?
I have got a task navigation and in order to reuse the autosave.js I need to change the ajax url according to the current opened task. (the task nav hides and shows the forms, so there is no page reload).
The text was updated successfully, but these errors were encountered: