Andy, I find that doing "video_ajax_timer_id != undefined" does not always for, so I would suggest "typeof video_ajax_timer_id != 'undefined'", but that is just my preference.
On 8/28/07, Andy Matthews <[EMAIL PROTECTED]> wrote: > > > if (video_ajax_timer_id != '' || video_ajax_timer_id != undefined) > > -----Original Message----- > From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of Frank Peterson > Sent: Tuesday, August 28, 2007 1:05 PM > To: jQuery (English) > Subject: [jQuery] Re: How do you test if an object exists? > > > I'm not test for an ID or a HTML element but a variable. > > video_ajax_timer_id = setTimeout('prevnext(1, '+next_image_num+')', 5000); > > Basically I need to know if I need to call that setTimeout or not. > > > -- Benjamin Sterling http://www.KenzoMedia.com http://www.KenzoHosting.com