views:

34

answers:

1

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.

A: 

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

Kevin Reid