This is my code on the page in quetsion:
cfif isDefined('session.client_id')
script language=JavaScript
Function('popUp');
/script
/cfif
And this is my code in the head tags:
function popUp(URL) {
day = new Date();
id = day.getTime();
eval(page + id + = window.open(URL, ' +
- Original Message -
From: Kodjo Ackah [EMAIL PROTECTED]
Can I do this?
cfif NOT IsDefined('session.client_id')
cflocation url=javascript:popUpb('home_login.cfm')
cfabort
/cfif
wow. deja vu all over again.
did you, perhaps try:
cfif NOT isDefined('session.client_id')
Charlie What was your reply?
Kodjo ackah
Principal Consultant
concrete-media.com
__
Signup for the Fusion Authority news alert and keep up with the latest news in
ColdFusion and related topics.
Kodjo Ackah writes:
Charlie What was your reply?
my reply (third time in two day) :)
was call the function from within the conditional...NOT using cflocation
cfif isDefined('foo')
script language=JavaScript
myFunction('blah');
/script
/cfif
so you have myFuntion()
Try:
cfif not isDefined(session.client_id)
cfhtmlhead text=
script language=Javascript
!--
window.popUpb(home_login.cfm);
//--
/script
/
/cfif
Note that this may bot work in NN, so you might try window.onload = popUpb,
etc.
Scott
5 matches
Mail list logo