Checking for null? http://www.jsworkshop.com/forum/showthread.php3?threadid=925 Detecting Null Ron Borowicz I know that the following statement is Null and should be: (parent.opener.document.all.idAgFax.childNodes[0].nodeValue). How do I check for null or the absence of null and code around it without getting a Run Time error telling me that it is null or not an object? It's catch-22! I have tried the following and it doesn't work for me: If (parent.opener.document.all.idAgFax.childNodes[0].nodeValue != null) "do something" Thanks! --- Ron, First, it should be "if" not "If". Next, it seems like a check for null doesn't work for two different reasons: 1. it causes an error saying that the object is not defined or null 2. It NEVER causes an error or catches null either. The way I'd get around it is to use:   to hold one char place then check for .length > 1, so if there IS a value it will be larger than one char. Hope that helps. (See: help132A.htm & help132B.htm) pk 12/26/2001 --------------------------------------------------------------------- --------------------------------------------------------------------- --------------------------------------------------------------------- --------------------------------------------------------------------- [Code save as "Startwithme] --------------------------------------------------------------------- --------------------------------------------------------------------- --------------------------------------------------------------------- ---------------------------------------------------------------------
Display Agency and Carrier Data Entry Page. Display Status and Package Policy Data Entry Page. Display Applicant Information Data Entry Page. Display Premises Information Data Entry Page. Display Nature of Business/Description of Operations Data Entry Page. Display General Information Questions and Remarks Data Entry Page.
920 526-3623
LakeShore Insurance Agency, Inc.
--------------------------------------------------------------------- --------------------------------------------------------------------- --------------------------------------------------------------------- --------------------------------------------------------------------- [code save as F125Producer.aspx] --------------------------------------------------------------------- --------------------------------------------------------------------- --------------------------------------------------------------------- --------------------------------------------------------------------- Agency and Carrier Data Entry Page

   Form 125 (2001/04) Commercial Insurance Application: Agency and Carrier

  Phone: ( xxx xxx-xxxx)*
  Fax:
  Name: