Thanks Mukul

It worked

Regards
Nitin

Mukul Gandhi wrote:

> Hi Nitin,
> u should call method Checkfn like Checkfn(this.form) & not like
> Checkfn(this). Otherwise reference to the button object will be passed and
> not of the form. Pl try this one and let me know if it works.
>
> -mukul
>
> At 11:18 AM 7/16/99 +0530, Nitin Kulkarni wrote:
> >Hi Mukul
> >
> >I tried the way you have suggested. However I am getting a JavaScript error
> >saying that
> >
> >form.submit() is not a method..
> >
> >The code I have written is as follows
> >
> ><INPUT TYPE="button" VALUE="Search" onclick="Checkfn(this)" > </FONT>  </td>
> >
> >function Checkfn(f)
> >{
> >
> >  if(document.Search.Empid.value=="" &&
> >     document.Search.EmpFname.value=="" &&
> >     document.Search.EmpLname.value=="" )
> >  {
> >    alert("Please enter alleast one Search criterion");
> >    document.Search.Empid.focus();
> >  }
> > else
> >   {
> >    f.METHOD="GET";
> >    f.ACTION="http://localhost:8080/servlet/SearchEmp";
> >    f.Submit();
> >   }
> >
> >Please let me know what the problem is
> >
> >Thanks
> > Nitin
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to