Too many problems with javascript - Passing Forms

Giganews Newsgroups
Subject: Too many problems with javascript - Passing Forms
Posted by:  mt…@mtekusa.com
Date: Sat, 22 Mar 2008

I may give this up.

I am passing a form object:

<a href="javascript:formvalidation(this);">SAVE DATA</a>

I receive the form:

function formvalidation(thisform) {
  with (thisform) {

if (emailvalidation(CustEmail,"Illegal E-mail")==false)
{CustEmail.focus(); return false;};

But, the above line does not work.  I thought that since I am passing
the form as an object reference and using the WITH keyword, I do not
have to refer to the form name or the .value property.......

Am I wrong?  I just want to pass the form and refer to the fields by
name.....

John (Virgin to Javascript)

Replies