Hi,

I tried to call a javascript function on clicking a link.
The validation is being performed,but the cursor style is always busy,
when the validation returns false.

Why is it so??

The code fragment is shown below.


 <a  href="javascript:gotoAdd();"><img src="/images/addmore.gif"  alt="Add
one more item to this request"  border="0" align="absmiddle"></a>
function gotoInsert(){

if(validateForm() ){

document.entry_form.action="insertentry.jsp";
document.entry_form.submit();
}
}

function validateForm() {
f(document.entry_form.quantity.value==""){
      alert('Please enter the quantity.');
      document.entry_form.quantity.focus();
return false;
}
return true;
}



_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to