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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Validation javascript keeps yacking up error windows on my browser!

Status
Not open for further replies.

Nodemiester

Technical User
Apr 9, 2002
1
CA
Greetz,

I'm trying to use an 'easy to use' validation jscript. I've spent a couple days with it and despite threat of imminent deletion, it refuses to work within my page.

If anyone has a minute to look them over, that would be way cool.


Script

Page

errors occur in line 318 and 590


L8r

Nodemiester

Nodemiester@Yahoo.com
 
function swapImage(item, sSRC) {
alert(arguments)//debug

if (document.images[stripKeys(item.name)].src) {
document.images[stripKeys(item.name)].src = sSRC;
}
}

Try this and let me know what it says in the alert. Gary Haran
 
Hey Gary,

Thanks for the response, may a hundred non-virgins visit your teepee in groups of 3 or more.

Tried it...

Alert error 1
object Object

Alert error 2
Line 585
error:`document.images[...].src' is null or not an object


Steve

Nodemiester@yahoo.com


 
well I am going back home to my teepee. Sorry I can't help you much more than that. I recommend you use a more simple approach. this library is big and bloated for what is needed.

Sorry. Gary Haran
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top