Well, I'd suggest taking MM's new Fast Track to JavaScript course which
deals with the topic of JS-CF integration, frames, etc...

There is certain information about the browser DOM which is not echoed as
part of the ColdFusion accessible CGI variables.  Screen width is not echoed
(although, I seem to remember screen res being echoed as part of IE 3.x?!).

I think that if I were in your shoes, I'd just capture the info on a faux
index.htm page and send it to a ColdFusion server page for evaluation like
so...


(index.htm)

<h3>Please wait while we redirect you to the site</h3>

<script language="JavaScript">
        location.href='index.cfm?width=' + screen.width + '&height=' +
screen.height;
</script>


Regards,
Steve Drucker
CEO / MM Master Instructor
Fig Leaf Software


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 24, 2001 3:27 PM
To: CF-Talk
Subject: Re: javascript vars to cf vars?


I'm trying to do the same thing, but I have a couple of issues that I can't
get around.  The big one is that we use frames and that seems to really
screw things up.  I want to do it passively every time someone views one of
our clients pages.  I've tried to do it in the application.cfm file, but
with the redirects and the frames it messes it up so it doesn't work.  Is
there a way to gather the information via CF without using JS?

Thanks all,

Michael Corrigan
Programmer
Endora Digital Solutions
www.endoradigital.com
630/942-5211 x-134
----- Original Message -----
From: "Michael Lugassy" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Monday, July 16, 2001 7:01 PM
Subject: javascript vars to cf vars?


> this might sound stupid but - is it possible to put js vars (like, screen
width) into
> coldfusion vars?
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to