The moose likes HTML, CSS and JavaScript and the fly likes form onSubmit= Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "form onSubmit="" question" Watch "form onSubmit="" question" New topic
Author

form onSubmit="" question

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
if check_then_submit() function is returning a boolean already, then are there any differences between these 2 pieces of code?
should I also additionally add an return true; code afterwards?


Chris Baron
Ranch Hand

Joined: Mar 21, 2003
Posts: 1028
Hallo Rüstem-e,
try out

for me, its only working with return in
onSubmit="return checkNsubmit()"
ot: u == D?
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15003
I would use the return in the onsubmit line. Some browsers will work with out it. Better practice by using it.
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
merci beaucoup.
oth Chris and Eric...
i mean, it is basic. but not written explicitly so common. thus takes time to try and debug. by the way which javascript debugger would you advice?
i am also using mozilla and opera 7 in addition to IE 6... so it makes some sort of a pain some time
 
 
subject: form onSubmit="" question
 
Threads others viewed
Enter Key & submit
Javascript problem
help pls
onClick event question.....
Popup login
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture