Re: y is it not workin
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: y is it not workin

From: Jonas Raoni <jonasraoni@gmail.com>
Date: Tue Feb 28 2006 - 09:26:30 CET

thejes john wrote:
>function btnSearch() {
> if(document.Loc_Emp.T1.value==" " && document.Loc_Emp.T2.value==" " && document.Loc_Emp.T3.value==" "){
> alert("Please enter any one value");
> }
> else {
> document.Loc_Emp.submit();
> }
>}

You didn't said what isn't working, the error, etc. So I guess your
problem is just in the above piece of code, where you should replace " "
by "" =b

Anyway, this approach is bad, you must have a good reason to call
"form.submit" inside JavaScript.

ps: Don't use short words on a global newsgroup, I'm not american for
example ;]

-- 
Jonas Raoni Soares Silva
http://www.jsfromhell.com
Received on Mon May 1 03:40:54 2006