Hi All, i have a project in ASP.NET 1.1 using the MagicAjax component. I wrote a javascript which is: function ConfirmCredCard() { if (typeof(Page_ClientValidate) == 'function') { if (Page_ClientValidate() == false) { return false; } else { var confirmed = window.confirm("By clicking 'OK', your credit card will be processed for the amount specified on your booking, this may take several seconds. In order to avoid the chance of duplicate charges, Please DO NOT click the Submit button again or the back button during the process. Please click 'OK' to continue with your transaction"); if (confirmed == true) { document.Form1.btnSubmit.value = 'Please wait...'; document.Form1.btnSubmit.disabled = true; __doPostBack('btnSubmit',''); } else { return false; } } } } This javascript and the page calling it works fine on my localmachine(using IIS 5.1 on XP) however when i deployed the project to the testing server(IIS 6.0 windows 2003) the script doesn't work as desired. I debugged the script and it reaches to the bolded and underlined statement and fails the if condition while it should enter the if block. Any advise/probable solution would be greatly appreciated. Thanks
Abhishek
|