I have tried unbinding the click event, but it fires sometimes twice sometimes 5 times!! Getting a bit fed up now!
Code from modal.asp
modal.asp
$
You are unbinding first afterwards the success. You need to unbind it in the click handler and then add it again onerror.