Javascript single VS double click

We’ve got a Domino web application where a status field is changed via a javascript clik link. This change of status is for workflow ‘up the chain’, so to speak. The document would move into another queue and the link would be unavailable to the first user. When the next person clicks on the link, the status is changed to show up in the final queue.

Would, on the first user, the link execute twice should the user doubleclick rather than singeclick the link?

Subject: It depends on your code

If your code jsut calls a different function, and that other function doesn’t check to see if it has already been called, then yes it would probably would be executed twice.

To stop this, set a flag with your code to indicate it has already been called, and not to do anything if that is the case.

Subject: RE: It depends on your code

Thanks, Carl. Afraid I’d have to do that.