Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

javascript doesn't execute at all 1

Status
Not open for further replies.

920506

Programmer
Jun 13, 2003
201
US
Hi all,
I have javascript in an asp file worked fine until today. I don't know what I did to the file and messed something.

Whenever I click calculate premium button without any data in the form. The checkInput javascript function is not called anymore(before it works perfect). And in Javascript console(firefox), it says that the checkinput is not defined and actually it is right over there. I tried to use alert at the very beginning to show that the page is executing javascript by putting alert("I am here"); at the very beginning and it just didn't do anything.
Can you help and also do you any javascript debugger, I just don't work with javascript very often.
Thank you.
page linke is Betty
 
I'm getting several error messages in Firefox (which has a wonderful debugger built in):

Warning: function CCFormatDateTime does not always return a value
Source File: Line: 116
Source Code: }

Warning: anonymous function does not always return a value
Source File: Line: 287
Source Code: };

Warning: function jsTextValidation does not always return a value
Source File: Line: 45, Column: 7
Source Code: return;

Error: syntax error
Source File: Line: 138, Column: 73
Source Code: if ( parseFloat(form.Participant1TripCost.value.replace(",", ""))) < 500)

Warning: function jsSelectValidation does not always return a value
Source File: Line: 56, Column: 7
Source Code: return;

Warning: function jsTextDoubleQuotCheck does not always return a value
Source File: Line: 219, Column: 7
Source Code: return;

The one marked Error is probably the cause of your troubles, though the others should be corrected as well.

Lee
 
Hi trollacious,
Thank you so much. I got it.
But how come I didn't get the same messages like you did.
Can you tell me how to enable javascript debugger in firebox. I just go to tool-->Javascript Console-->all,
it gives me something, but not the ones you got.

by the way, I know on firebox have built in javascript debugger. I am just using 1.5.0.1.

What version are you using?

Betty
 
I have version 1.0, which may be the difference. I got the information through Tools -> Javascript Console -> All like you described.

Lee
 
Hi Dan,

This bother me too. But when it says line 0, I don't know where it is since my file is asp file with both javascript and asp. (yes, I fixed something after Lee's posting.)
Any tricks to locate the line?
Thank you.
Betty
 
Other than warnings that some of your functions not always returning values, I'm not getting anything significant in 1.0 now.

Lee
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top