开发者

Controlled hyperlink hijaxing

I am working on a web application.

I have a data grid with a 'commands' column that has hyperlinks for some common CRUD operations (Edit, Delete, etc).

When a user clicks on say the Edit hyperlink, I retrieve the unique identifier for the data grid row and load a modal form dialog (i am using jQuery UI) so the user is able to edit the row data and subsequently close the modal form dialog at which point I refresh the page.

Now, before the page is done refreshing, there's a chance that a user might click on the edit link again, and whenever that开发者_高级运维 happens, 'hijaxing' fails.

My question is how can i check that if a user clicks on a hyperlink and the page is refreshing, i delay until it is done refreshing, then i allow the 'hijax' to kick in.


How about not closing the dialog, but letting the page refresh discard it?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜