I got a remoteFormHelper going on a page. The action.js.cfm reloads part of the page with a partial -- using pageReplaceHTML (selector="##foo", partial="blah") of course.
Partial "blah" has buttons that use remoteFormHelper, too. A cancel button, for instance, to Delete one entry... linkTo(text="delete", action="deleteentry", reload=true).
Problem is, when I try to use those buttons, they don't work. They try to launch the action as deleteentry.cfm rather than the proper deleteentry.js.cfm.
It seems that reloading a partial breaks remoteFormHelpers. Note that if I inspect the rendered HTML code, all the data-remote="true" attributes are there. They just don't seem to be doing what they are supposed to be doing, as before.
If I reload the page, everything is fine, of course, and the buttons work; as soon as I pageReplaceHTML again then it breaks again.
Any thoughts?
I got a remoteFormHelper going on a page. The action.js.cfm reloads part of the page with a partial -- using
pageReplaceHTML (selector="##foo", partial="blah")of course.Partial "blah" has buttons that use remoteFormHelper, too. A cancel button, for instance, to Delete one entry...
linkTo(text="delete", action="deleteentry", reload=true).Problem is, when I try to use those buttons, they don't work. They try to launch the action as
deleteentry.cfmrather than the properdeleteentry.js.cfm.It seems that reloading a partial breaks remoteFormHelpers. Note that if I inspect the rendered HTML code, all the
data-remote="true"attributes are there. They just don't seem to be doing what they are supposed to be doing, as before.If I reload the page, everything is fine, of course, and the buttons work; as soon as I pageReplaceHTML again then it breaks again.
Any thoughts?