Closing umbraco modal window in datatype rebinding data
Hi,
I have created a custom datatype that includes a gridview with a button on each row that opens a modal window to ask for confirmation of the action. The javascript to open the confirmation window is as follows:
The testpage.aspx page contains two buttons, Yes and No.
What I need to know is how if the user clicks "No" I make it so that the modal window closes. And if they click "Yes" then the modal window closes and it rebinds the grid within my custom datatype to show the changes?
I did try the following code from another post but this seemed to refresh the page behind but it displayed a warning saying that data would be re-submitted and it did not close the modal window, can anyone help or suggest a better way for doing this?
Closing umbraco modal window in datatype rebinding data
Hi,
I have created a custom datatype that includes a gridview with a button on each row that opens a modal window to ask for confirmation of the action. The javascript to open the confirmation window is as follows:
The testpage.aspx page contains two buttons, Yes and No.
What I need to know is how if the user clicks "No" I make it so that the modal window closes. And if they click "Yes" then the modal window closes and it rebinds the grid within my custom datatype to show the changes?
I did try the following code from another post but this seemed to refresh the page behind but it displayed a warning saying that data would be re-submitted and it did not close the modal window, can anyone help or suggest a better way for doing this?
In DAMP I use this to close:
If you click yes I guess you can call some different javascript to do that.
Jeroen
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.