Hi Steve,

Try:

if (document.popup.popup1.value != '')

JavaScript IF statements will continue if the expression returns 'true' or a
number greater than 0.

Hope this helps. Cheers...


----- Original Message -----
From: "Fogelson, Steve" <[EMAIL PROTECTED]>
To: "Witango User Group (E-mail)" <[EMAIL PROTECTED]>
Sent: Wednesday, February 05, 2003 9:52 PM
Subject: Witango-Talk: (OT)


> Sorry I know this off topic. My knowledge about javascript is very
minimal.
> Appreciate if someone could tell me how to execute the following
statements
> only if document.popup.popup1.value is not empty.
>
> popup is the form of the current page.
>
> opener.document.LoadImages.Image.value=document.popup.popup1.value;
> opener.document.LoadImages.i_type.value=document.popup.popup3.value;
>
> I think it is something like this, but I can't get it to work.
>
> if (document.popup.popup1.value) {
> opener.document.LoadImages.Image.value=document.popup.popup1.value;
> opener.document.LoadImages.i_type.value=document.popup.popup3.value;
> }
>
> Also, can I use "this" to shorten it up?
>
> Thanks in advance,
>
> Steve Fogelson
> Internet Commerce Solutions
> ________________________________________________________________________
> TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
>                 with unsubscribe witango-talk in the message body

________________________________________________________________________
TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
                with unsubscribe witango-talk in the message body

Reply via email to