Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: Problem with alert not working at all


Message #1 by "Melinda Savoy" <msavoy@c...> on Thu, 24 Aug 2000 14:18:48
I got half of my problem fixed by making some changes to my code as 
indicated below and now my problem is fixed in IE5.5 but Netscape 4.74 
still does not show the alert.  Any suggestions or direction would be 
appreciated.  Thanks.

<script LANGUAGE="JavaScript">
<!--
function search_validator(KB_PSScustomer)
{
  if ((document.KB_PSScustomer.prod_descr.value == "") &&       
(document.KB_PSScustomer.platform_descr.value == "") &&       
(document.KB_PSScustomer.software_descr.value == "") &&       
(document.KB_PSScustomer.keyword.value == ""))
  {
	alert("At least one search option must be selected prior to 
        submitting your search.")
	return (false);
  }
}

function ResetFields(KB_PSScustomer)
  {
	(document.KB_PSScustomer.prod_descr.value = "" || null);
	(document.KB_PSScustomer.platform_descr.value = "" || null);
	(document.KB_PSScustomer.software_descr.value = "" || null);
	(document.KB_PSScustomer.keyword.value = "" || null);
  }
//-->
</script>

  Return to Index