Click to See Complete Forum and Search --> : parent.document==undefined doesn't work with IE5.0


luc
06-24-2003, 06:08 AM
Hello,

I've written an app. witch will be opened somethimes directly from the URL and sometimes from another window.

When it is started from another window, after updating the new window, the parent window must be submitted. So I've written this script:

if (!(parent.opener==undefined))
{
if (!(parent.opener.document.forms[0]==undefined))
{
parent.opener.document.forms[0].submit()
}
}

With IE 6.0 & 5.5, no problem but in IE 5.0 I get the error:

'undefined' is undefined. :mad:

IE5.0 doesn't support 'undefined' (?).

Are their other possibilities to check if an object is defined? (I tried also with 'null' but without a good result.

K.R.,

Luc Slenders

luc
06-24-2003, 07:25 AM
Sometimes, life is easy! thx a lot.