aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Issue in invoking  Javascript function on JSP page. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Issue in invoking  Javascript function on JSP page. " Watch "Issue in invoking  Javascript function on JSP page. " New topic
Author

Issue in invoking Javascript function on JSP page.

Yuta Lolap
Ranch Hand

Joined: Jun 03, 2012
Posts: 83



Registration.jsp


I have tow files login.jsp and registration. I am applying basic validation to username and password text fields. but it doesn't seem to trigger. Please can anyone tell me why? I tried just showing an alert("hello world"); on the button click it worked. Then i deleted the alert and gave validation for username and password. Doesn't seem to work.

Please help.

I also tried putting the function call return validate on the onSubmit attribute of the form tag. Didn't work either. I am running this in the browser of the eclipse. When i run this in Firefox it days the port no 6000 is not used for web surfing (excuse the terminology).

Please help!
Thanks in advance!
Yuta Lolap.



Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
You have no form named Login and it is impossible for value to be null so that check is useless.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Issue in invoking Javascript function on JSP page.