Visual Basic Code , VB.NET Code, VB Code
  Home   :  Code   :  Forums   :  Submit   :  Mailing List   :  About   :  Contact


javascript problem


javascript problem

Author
Message
abhi81
abhi81
Forum God
Forum God (5.7K reputation)Forum God (5.7K reputation)Forum God (5.7K reputation)Forum God (5.7K reputation)Forum God (5.7K reputation)Forum God (5.7K reputation)Forum God (5.7K reputation)Forum God (5.7K reputation)Forum God (5.7K reputation)

Group: Forum Members
Posts: 59, Visits: 59
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

GO


Similar Topics


Reading This Topic


Login
Existing Account
Email Address:


Password:


Social Logins

Select a Forum....

















A1VBCode Forums


Search