RE: Application.cfm javascript

2000-04-14 Thread Hoffman, Joe (CIT)

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=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Application.cfm javascript

2000-04-13 Thread Chris Meier

This is a multi-part message in MIME format.

--=_NextPart_000__01BFA54B.7A48E0F0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

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!!

Any suggestions greatly appreciated!

--=_NextPart_000__01BFA54B.7A48E0F0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
HTMLHEAD
META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type
META content=3D"MSHTML 5.00.2314.1000" name=3DGENERATOR/HEAD
BODY
DIVFONT face=3DArial size=3D2SPAN class=3D366302117-13042000Anyone =
know of any=20
limitations for using javascript within an appplication.cfm file?nbsp; =
I am=20
trying to open a pop-up window for user authentication if a condition is =
false,=20
then close the window once authenticated.nbsp; It seems to SORT OF =
work, but=20
the pop-up window seems to be looping on =
itself...STRANGE!!/SPAN/FONT/DIV
DIVFONT face=3DArial size=3D2SPAN=20
class=3D366302117-13042000/SPAN/FONTnbsp;/DIV
DIVFONT face=3DArial size=3D2SPAN class=3D366302117-13042000Any =
suggestions=20
greatly appreciated!/SPAN/FONT/DIV/BODY/HTML

--=_NextPart_000__01BFA54B.7A48E0F0--

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



Re: Application.cfm javascript

2000-04-13 Thread Chris Porter

well think about the process flow.. application.cfm runs at the begining of
_every_ cfm page (this includes your popup window). so if your condition is
false because of some kinda login check or another, then every time that
popup window pops up, taht condition is going to be false and it's gonna
pop up another window.. etc.. etc...

my quick fix advice would be to put the popup window file in a subdirectory
or another directory  put a blank application.cfm file in taht directory
to prevent any other application.cfm file from taking over.

-chris



At 01:23 PM 4/13/00 -0400, you wrote:
This is a multi-part message in MIME format.

--=_NextPart_000__01BFA54B.7A48E0F0
Content-Type: text/plain;
   charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

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!!

Any suggestions greatly appreciated!

--=_NextPart_000__01BFA54B.7A48E0F0
Content-Type: text/html;
   charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
HTMLHEAD
META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type
META content=3D"MSHTML 5.00.2314.1000" name=3DGENERATOR/HEAD
BODY
DIVFONT face=3DArial size=3D2SPAN class=3D366302117-13042000Anyone =
know of any=20
limitations for using javascript within an appplication.cfm file?nbsp; =
I am=20
trying to open a pop-up window for user authentication if a condition is =
false,=20
then close the window once authenticated.nbsp; It seems to SORT OF =
work, but=20
the pop-up window seems to be looping on =
itself...STRANGE!!/SPAN/FONT/DIV
DIVFONT face=3DArial size=3D2SPAN=20
class=3D366302117-13042000/SPAN/FONTnbsp;/DIV
DIVFONT face=3DArial size=3D2SPAN class=3D366302117-13042000Any =
suggestions=20
greatly appreciated!/SPAN/FONT/DIV/BODY/HTML

--=_NextPart_000__01BFA54B.7A48E0F0--

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


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