Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: Problem with actual JS file
webslinger00
Junior Member

Posts: 9
Registered: 1/2/2007
Member Is Offline
posted on 1/2/2007 at 03:11 PM Reply With Quote
Problem with actual JS file


Why does the IE debugger finding this as an issue?

The message is:
A Runtime Error has occurred.
Line 159
Error: 'null' is nul or not an object.

See the JS section below.


}
// check format
else if (this.a_fields[n_key]['v'] && this.a_fields[n_key]['f'] && (
(typeof(o_format_check) == 'function'
&& !o_format_check(this.a_fields[n_key]['v']))
|| (typeof(o_format_check) != 'function'
&& !o_format_check.test(this.a_fields[n_key]['v'])))
) { <--------------------------THIS LINE RIGHT HERE!
this.a_fields[n_key].n_error = 4;
n_errors_count++;
}
View User's Profile View All Posts By User U2U Member
tigra
Administrator

Posts: 2049
Registered: 6/17/2002
Location: US, CO
Member Is Offline
posted on 1/2/2007 at 03:28 PM Reply With Quote

Usually the error messages point to the place in the code that fails, not the place that causes the problem.
Issue has been resolved in another ticket: http://www.softcomplex.com/forum/viewthread_3973/
View User's Profile View All Posts By User U2U Member
webslinger00
Junior Member

Posts: 9
Registered: 1/2/2007
Member Is Offline
posted on 1/2/2007 at 03:40 PM Reply With Quote
Not fixed.


Sorry. It's still not fixed. I did delete the last comma but then got Runtime error message. Please help.

Thanks.
View User's Profile View All Posts By User U2U Member
webslinger00
Junior Member

Posts: 9
Registered: 1/2/2007
Member Is Offline
posted on 1/2/2007 at 04:03 PM Reply With Quote

I've been able to determine that somehow the e-mail validation is causing the Runtime Error. Any ideas or suggestions?

I've included my test code in the txt file attached.

Thanks again.

Attachment: testfile.txt (19.94kb)
This file has been downloaded 877 times
View User's Profile View All Posts By User U2U Member
tigra
Administrator

Posts: 2049
Registered: 6/17/2002
Location: US, CO
Member Is Offline
posted on 1/2/2007 at 06:09 PM Reply With Quote

embedded types are case sensitive.
it's 'f':'email', not 'f':'Email'
View User's Profile View All Posts By User U2U Member
webslinger00
Junior Member

Posts: 9
Registered: 1/2/2007
Member Is Offline
posted on 1/2/2007 at 07:44 PM Reply With Quote
Fixed!


Thanks, that did it.

-web
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page Product Page
Product Demonstrations Product Demos
Registration Form Validation
Login Form Validation
Free Download Free Download
Product Documentation Documentation
Documenation Page
Change Log
Validators Comparison Table
Support Forum Support Forum
 

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004