>This application.cfm can't be blank,
I've encountered that too ... application.cfm can't be blank.


Joe Hoffman mailto:[EMAIL PROTECTED]
National Institutes of Health 
Center for Information Technology 
Division of Computer System Services

-----Original Message-----
From: Brandon Whitaker [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 13, 2000 4:24 PM
To: [EMAIL PROTECTED]
Subject: Re: Application.cfm & javascript


>Anyone know of any limitations for using javascript within an
>appplication.cfm file?  I am trying to open a pop-up window for user
>authentication if a condition is false, then close the window once
>authenticated.  It seems to SORT OF work, but the pop-up window seems to be
>looping on itself...STRANGE!!

Lets see:
You have a script in your application.cfm.
If a variable evaluates false, it opens a window.
The script opened in the window will ALSO access the application.cfm first,
and the value will STILL be false because the proper authentication hasn't
been passed - so it'll keep opening it.

One solution: put the document that's supposed to appear in a subdirectory
with its own application.cfm.  This application.cfm can't be blank, but it
should be harmless; put something like:
<cfSetting enableCFOutputOnly="yes">
<cfSetting enableCFOutputOnly="no">
in there.  When the popup window loads the document from this subdirectory,
it'll read the application.cfm in that directory and stop there, instead of
parsing the one in the root and going into an endless loop.

HTH!  HAND!

Brandon Whitaker
[EMAIL PROTECTED]
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to