Controlled hyperlink hijaxing

Posted by Izmoto on Stack Overflow See other posts from Stack Overflow or by Izmoto
Published on 2010-06-01T05:26:11Z Indexed on 2010/06/01 5:33 UTC
Read the original article Hit count: 159

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.

© Stack Overflow or respective owner

Related posts about jquery-ui

Related posts about jquery-ajax