I tried it and it still sends the pop-up part of the page into an infinite 
'refresh/reload' loop


>From: "Allan Pichler" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: CF-Talk <[EMAIL PROTECTED]>
>Subject: RE: javascript problem
>Date: Tue, 26 Dec 2000 15:48:39 -0800
>
>
>Try this ....
>
><SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
>function openpopup(){
>popwin=window.open("login.cfm","newWin","width=200,height=150,left=400,
>right=300")
>popwin.focus();
>       }
></SCRIPT>
>
><BODY ONLOAD="javascript:openpopup();">
>
>
>Allan Pichler
>Machine Dreams Inc.
>
>-----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,left=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

Reply via email to