Try surrounding the logic with a CFIF statement to exclude processing if the template
name contains "login.cfm" and see what happens.
Also, I'm not sure about the second javascript call you've got there - the focus call.
That may have something to do with it.
---mark
--------------------------------------------------------------
Mark Warrick
Phone: (714) 547-5386
Efax.com Fax: (801) 730-7289
Personal Email: [EMAIL PROTECTED]
Personal URL: http://www.warrick.net
Business Email: [EMAIL PROTECTED]
Business URL: http://www.fusioneers.com
ICQ: 346566
--------------------------------------------------------------
> -----Original Message-----
> From: S R [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 26, 2000 3:36 PM
> To: CF-Talk
> Subject: javascript problem
>
>
> Happy holidays,
>
> This problem is boggling my mind. It only happens when I put the
> code in the
> 'root' application. I'm trying to test for a 'session.userid'
> variable that
> is supposed to be set after someone logs in with the correct username and
> password. As you can see I am testing it by deleting my session
> variable and
> the page with the login screen, which is a pop-up window, does come up.
> Except that the pop-up window goes into an infinite loop of refreshing
> itself. I can't figure it out. HELP!!
>
> Thanks
>
> <CFAPPLICATION NAME="Intranet" CLIENTMANAGEMENT="Yes"
> SESSIONMANAGEMENT="Yes" SESSIONTIMEOUT="#CreateTimeSpan(1, 0, 0, 0)#">
>
> <CFLOCK SCOPE="APPLICATION" TIMEOUT="30" TYPE="EXCLUSIVE">
> <CFSET Application.Datasource = 'userpreferences'>
> </CFLOCK>
>
> <CFSET StructDelete(session,"userid")>
>
> <CFIF NOT IsDefined("session.userid")>
> <HTML>
> <HEAD>
>
> <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
>
> function openpopup(){
>
> openpopup=window.open("login.cfm","newWin","width=200,height=150,l
> eft=400,
> right=300")
> }
>
> </SCRIPT>
> </HEAD>
> <BODY ONLOAD="javascript:openpopup();openpopup.focus()">
>
> </BODY>
> </HTML>
>
> <CFELSE>
>
>
> <CFINCLUDE TEMPLATE="/application/header.cfm">
>
> </CFIF>
>
~~~~~~~~~~~~~ Paid Sponsorship ~~~~~~~~~~~~~
Get Your Own Dedicated Win2K Server! Instant Activation for $99/month w/Free Setup
from SoloServer PIII600 / 128 MB RAM / 20 GB HD / 24/7/365 Tech Support Visit
SoloServer, https://secure.irides.com/clientsetup.cfm.
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists