This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes HTML, CSS and JavaScript and the fly likes code not working properly Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "code not working properly" Watch "code not working properly" New topic

code not working properly

gaurav chhabra
Ranch Hand

Joined: Jul 24, 2004
Posts: 109
i m new to javascript ,,,i have some problem in the code below...

<!-- JAI SHRI RAM -->
<head><title>JAI SHRI RAM</title></head>
function ValidateForm(form)
alert('jai shri ram')
return false;
return false;

<form name=form1 action = "http://localhost:8080/main_page1.jsp" onSubmit="return ValidateForm(this)">
<input type="text" name="name">
<input type="submit">


it is not working plz tell me the problem
Paul Sturrock

Joined: Apr 14, 2004
Posts: 10336

What do you expect it to do and in what way is it not working?

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15376
IsEmpty... WHERE is the function at?

H Wilson
Ranch Hand

Joined: Feb 23, 2005
Posts: 33
Originally posted by gaurav chhabra:

alert('jai shri ram')
return false;
return false;

I notice that you are returning false whether IsEmpty() returns true or false. Is that really what you want to do? Perhaps that is the source of the problem. Otherwise it must be something in the IsEmpty() function. You would need to post that code here to get feedback.
wood burning stoves
subject: code not working properly