RE: Screen width, Height, Color Depth

2002-03-25 Thread Tony_Petruzzi

you do realize that once the CF page has been thrown to the user, there is
not way to get it back and then reprocess it. What exactly is your goal?
Maybe I have a JavaScript function that could help you.

Anthony Petruzzi
Webmaster
954-321-4703
http://www.sheriff.org


-Original Message-
From: Jason Larson [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 3:35 PM
To: CF-Talk
Subject: Screen width, Height,  Color Depth


I have very little javascript experience and what I am trying to
accomplish is to use javascript to give me the height, width and color
depth of a user's browser and turn those javascript variables into a CF
variable so I can use them in a cf template. I was wondering if anybody
had any code snippets for something like this, and if so would you mine
sharing.

Thanks in advance,
Jason Larson



__
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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Screen width, Height, Color Depth

2002-03-25 Thread Jason Larson

What I am trying to do is building my own log file that logs the client
data into a txt file so then I can store it into a database. I have
tried using the custom tag at the developer exchange and I can't get it
to work right, for what I want.

Thanks,
Jason Larson
[EMAIL PROTECTED]
www.larzz.com
P. 406.728.4422
F. 406.543.4266
 
You think the Cubs have sore arms? What about the fans in left field? 
 
 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Monday, March 25, 2002 1:38 PM
To: CF-Talk
Subject: RE: Screen width, Height,  Color Depth

you do realize that once the CF page has been thrown to the user, there
is
not way to get it back and then reprocess it. What exactly is your goal?
Maybe I have a JavaScript function that could help you.

Anthony Petruzzi
Webmaster
954-321-4703
http://www.sheriff.org


-Original Message-
From: Jason Larson [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 3:35 PM
To: CF-Talk
Subject: Screen width, Height,  Color Depth


I have very little javascript experience and what I am trying to
accomplish is to use javascript to give me the height, width and color
depth of a user's browser and turn those javascript variables into a CF
variable so I can use them in a cf template. I was wondering if anybody
had any code snippets for something like this, and if so would you mine
sharing.

Thanks in advance,
Jason Larson




__
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Screen width, Height, Color Depth

2002-03-25 Thread BEN MORRIS

You will have to have one form page that they come to and have JS write the values in 
a hidden form field, then have that submit to an action page, after which you will 
have the values to use in CF.  Of course, you can't capture this in all browsers.

More JS help: http://www.webreference.com/js/column17/dimensions.html

 Jason Larson [EMAIL PROTECTED] 03/25/02 03:35PM 
I have very little javascript experience and what I am trying to
accomplish is to use javascript to give me the height, width and color
depth of a user's browser and turn those javascript variables into a CF
variable so I can use them in a cf template. I was wondering if anybody
had any code snippets for something like this, and if so would you mine
sharing.

Thanks in advance,
Jason Larson



__
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Screen width, Height, Color Depth

2002-03-25 Thread Sam Roach

can you use:
#screen_height#
#screen_width#
#screen_colors#


-Original Message-
From: BEN MORRIS [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 12:49 PM
To: CF-Talk
Subject: Re: Screen width, Height,  Color Depth


You will have to have one form page that they come to and have JS write the
values in a hidden form field, then have that submit to an action page,
after which you will have the values to use in CF.  Of course, you can't
capture this in all browsers.

More JS help: http://www.webreference.com/js/column17/dimensions.html

 Jason Larson [EMAIL PROTECTED] 03/25/02 03:35PM 
I have very little javascript experience and what I am trying to
accomplish is to use javascript to give me the height, width and color
depth of a user's browser and turn those javascript variables into a CF
variable so I can use them in a cf template. I was wondering if anybody
had any code snippets for something like this, and if so would you mine
sharing.

Thanks in advance,
Jason Larson




__
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Screen width, Height, Color Depth

2002-03-25 Thread Sam Roach

opps forget the first half:

can you use:
script
document.write('input Type=Hidden
Name=screen_height Value='+ screen.height +'');
document.write('input Type=Hidden
Name=screen_width Value='+ screen.width +'');
document.write('input Type=Hidden
Name=screen_colors Value='+ screen.colorDepth +' Bit');
/script



#screen_height#
#screen_width#
#screen_colors#

-Original Message-
From: Sam Roach [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 12:58 PM
To: CF-Talk
Subject: RE: Screen width, Height,  Color Depth


can you use:
#screen_height#
#screen_width#
#screen_colors#


-Original Message-
From: BEN MORRIS [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 12:49 PM
To: CF-Talk
Subject: Re: Screen width, Height,  Color Depth


You will have to have one form page that they come to and have JS write the
values in a hidden form field, then have that submit to an action page,
after which you will have the values to use in CF.  Of course, you can't
capture this in all browsers.

More JS help: http://www.webreference.com/js/column17/dimensions.html

 Jason Larson [EMAIL PROTECTED] 03/25/02 03:35PM 
I have very little javascript experience and what I am trying to
accomplish is to use javascript to give me the height, width and color
depth of a user's browser and turn those javascript variables into a CF
variable so I can use them in a cf template. I was wondering if anybody
had any code snippets for something like this, and if so would you mine
sharing.

Thanks in advance,
Jason Larson





__
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Screen width, Height, Color Depth

2002-03-25 Thread Tony_Petruzzi

can you attach files to post to the mail list? I keep getting my email sent
back to me when I attach files for a solution to his question.

Anthony Petruzzi
Webmaster
954-321-4703
http://www.sheriff.org


-Original Message-
From: Jason Larson [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 3:46 PM
To: CF-Talk
Subject: RE: Screen width, Height,  Color Depth


What I am trying to do is building my own log file that logs the client
data into a txt file so then I can store it into a database. I have
tried using the custom tag at the developer exchange and I can't get it
to work right, for what I want.

Thanks,
Jason Larson
[EMAIL PROTECTED]
www.larzz.com
P. 406.728.4422
F. 406.543.4266
 
You think the Cubs have sore arms? What about the fans in left field? 
 
 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Monday, March 25, 2002 1:38 PM
To: CF-Talk
Subject: RE: Screen width, Height,  Color Depth

you do realize that once the CF page has been thrown to the user, there
is
not way to get it back and then reprocess it. What exactly is your goal?
Maybe I have a JavaScript function that could help you.

Anthony Petruzzi
Webmaster
954-321-4703
http://www.sheriff.org


-Original Message-
From: Jason Larson [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 3:35 PM
To: CF-Talk
Subject: Screen width, Height,  Color Depth


I have very little javascript experience and what I am trying to
accomplish is to use javascript to give me the height, width and color
depth of a user's browser and turn those javascript variables into a CF
variable so I can use them in a cf template. I was wondering if anybody
had any code snippets for something like this, and if so would you mine
sharing.

Thanks in advance,
Jason Larson





__
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Screen width, Height, Color Depth

2002-03-25 Thread Jason Larson

I need to obtain this info when someone enters the site. 

Thanks,
Jason Larson 
 

-Original Message-
From: Sam Roach [mailto:[EMAIL PROTECTED]] 
Sent: Monday, March 25, 2002 2:06 PM
To: CF-Talk
Subject: RE: Screen width, Height,  Color Depth

opps forget the first half:

can you use:
script
document.write('input
Type=Hidden
Name=screen_height Value='+ screen.height +'');
document.write('input
Type=Hidden
Name=screen_width Value='+ screen.width +'');
document.write('input
Type=Hidden
Name=screen_colors Value='+ screen.colorDepth +' Bit');
/script



#screen_height#
#screen_width#
#screen_colors#

-Original Message-
From: Sam Roach [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 12:58 PM
To: CF-Talk
Subject: RE: Screen width, Height,  Color Depth


can you use:
#screen_height#
#screen_width#
#screen_colors#


-Original Message-
From: BEN MORRIS [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 12:49 PM
To: CF-Talk
Subject: Re: Screen width, Height,  Color Depth


You will have to have one form page that they come to and have JS write
the
values in a hidden form field, then have that submit to an action page,
after which you will have the values to use in CF.  Of course, you can't
capture this in all browsers.

More JS help: http://www.webreference.com/js/column17/dimensions.html

 Jason Larson [EMAIL PROTECTED] 03/25/02 03:35PM 
I have very little javascript experience and what I am trying to
accomplish is to use javascript to give me the height, width and color
depth of a user's browser and turn those javascript variables into a CF
variable so I can use them in a cf template. I was wondering if anybody
had any code snippets for something like this, and if so would you mine
sharing.

Thanks in advance,
Jason Larson






__
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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Screen width, Height, Color Depth

2002-03-25 Thread Tony_Petruzzi

test.htm

!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
html
head
titleUntitled/title 
script language=JavaScript
function GetWHC(){
//alert(screen.colorDepth);
//alert(screen.availWidth);
//alert(screen.availHeight);
myURL = insert.cfm?width= + screen.availWidth + height=
+ screen.availHeight + colordepth= + screen.colorDepth;
//alert(myURL);
newwin=window.open(myURL,newwin,width=0,height=0);
newwin.close()
}

/script   
/head
body onload=GetWHC()
/body
/html




insert.cfm
==
cfparam name=visitors default=
cfif
fileexists(#GetDirectoryFromPath(GetBaseTemplatePath())#visitors.txt)
cffile action=READ
file=#GetDirectoryFromPath(GetBaseTemplatePath())#visitors.txt
variable=visitors
/cfif
cfset visitors = visitors 
#url.width#|#url.height#|#url.colordepth##chr(13)##chr(10)#
cffile action=WRITE
file=#GetDirectoryFromPath(GetBaseTemplatePath())#visitors.txt
output=#visitors#
addnewline=No




Anthony Petruzzi
Webmaster
954-321-4703
http://www.sheriff.org


-Original Message-
From: Jason Larson [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 4:17 PM
To: CF-Talk
Subject: RE: Screen width, Height,  Color Depth


I need to obtain this info when someone enters the site. 

Thanks,
Jason Larson 
 

-Original Message-
From: Sam Roach [mailto:[EMAIL PROTECTED]] 
Sent: Monday, March 25, 2002 2:06 PM
To: CF-Talk
Subject: RE: Screen width, Height,  Color Depth

opps forget the first half:

can you use:
script
document.write('input
Type=Hidden
Name=screen_height Value='+ screen.height +'');
document.write('input
Type=Hidden
Name=screen_width Value='+ screen.width +'');
document.write('input
Type=Hidden
Name=screen_colors Value='+ screen.colorDepth +' Bit');
/script



#screen_height#
#screen_width#
#screen_colors#

-Original Message-
From: Sam Roach [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 12:58 PM
To: CF-Talk
Subject: RE: Screen width, Height,  Color Depth


can you use:
#screen_height#
#screen_width#
#screen_colors#


-Original Message-
From: BEN MORRIS [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 12:49 PM
To: CF-Talk
Subject: Re: Screen width, Height,  Color Depth


You will have to have one form page that they come to and have JS write
the
values in a hidden form field, then have that submit to an action page,
after which you will have the values to use in CF.  Of course, you can't
capture this in all browsers.

More JS help: http://www.webreference.com/js/column17/dimensions.html

 Jason Larson [EMAIL PROTECTED] 03/25/02 03:35PM 
I have very little javascript experience and what I am trying to
accomplish is to use javascript to give me the height, width and color
depth of a user's browser and turn those javascript variables into a CF
variable so I can use them in a cf template. I was wondering if anybody
had any code snippets for something like this, and if so would you mine
sharing.

Thanks in advance,
Jason Larson







__
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Screen width, Height, Color Depth

2002-03-25 Thread Jeffry Houser

  Send to him privately, or post a link to the files.

  CF-Talk does ( or used to, at least ) wipe out all attachments before 
sending posts to the list.

At 04:12 PM 3/25/2002 -0500, you wrote:
can you attach files to post to the mail list? I keep getting my email sent
back to me when I attach files for a solution to his question.

Anthony Petruzzi
Webmaster
954-321-4703
http://www.sheriff.org


-Original Message-
From: Jason Larson [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 3:46 PM
To: CF-Talk
Subject: RE: Screen width, Height,  Color Depth


What I am trying to do is building my own log file that logs the client
data into a txt file so then I can store it into a database. I have
tried using the custom tag at the developer exchange and I can't get it
to work right, for what I want.

Thanks,
Jason Larson
[EMAIL PROTECTED]
www.larzz.com
P. 406.728.4422
F. 406.543.4266

You think the Cubs have sore arms? What about the fans in left field?



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 1:38 PM
To: CF-Talk
Subject: RE: Screen width, Height,  Color Depth

you do realize that once the CF page has been thrown to the user, there
is
not way to get it back and then reprocess it. What exactly is your goal?
Maybe I have a JavaScript function that could help you.

Anthony Petruzzi
Webmaster
954-321-4703
http://www.sheriff.org


-Original Message-
From: Jason Larson [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 3:35 PM
To: CF-Talk
Subject: Screen width, Height,  Color Depth


I have very little javascript experience and what I am trying to
accomplish is to use javascript to give me the height, width and color
depth of a user's browser and turn those javascript variables into a CF
variable so I can use them in a cf template. I was wondering if anybody
had any code snippets for something like this, and if so would you mine
sharing.

Thanks in advance,
Jason Larson






__
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Screen width, Height, Color Depth

2002-03-25 Thread VAN VLIET, SCOTT E (SBCSI)

You will need to have a listener page grab the screen properties via JS,
then send those to a CF page, then go to the index page as if they were
entering the site.

You can also base this on session state - so that if this is the users first
request for a particular session.

EXAMPLE (in you application.cfm or index page):

cfparam name=Session.Init default=0

cfif Session.Init EQ 0
...
cfset Session.Init = 1
script language=JavaScript type=text/javascript
document.write('form action=act/getScreenProp.cfm
method=post');
document.write('input Type=Hidden
Name=screen_height Value='+ screen.height +'');
document.write('input Type=Hidden
Name=screen_width Value='+ screen.width +'');
document.write('input Type=Hidden
Name=screen_colors Value='+ screen.colorDepth +' Bit');
document.write('/form');
document.forms[0].submit();
script
cfabort
/cfif

-- 
SCOTT VAN VLIET 
SENIOR ANALYST 
SBC SERVICES, INC 
Tel: 858.886.3878 
Fax: 858.653.6763 
Email: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 




-Original Message-
From: Jason Larson [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 1:17 PM
To: CF-Talk
Subject: RE: Screen width, Height,  Color Depth


I need to obtain this info when someone enters the site. 

Thanks,
Jason Larson 
 

-Original Message-
From: Sam Roach [mailto:[EMAIL PROTECTED]] 
Sent: Monday, March 25, 2002 2:06 PM
To: CF-Talk
Subject: RE: Screen width, Height,  Color Depth

opps forget the first half:

can you use:
script
document.write('input
Type=Hidden
Name=screen_height Value='+ screen.height +'');
document.write('input
Type=Hidden
Name=screen_width Value='+ screen.width +'');
document.write('input
Type=Hidden
Name=screen_colors Value='+ screen.colorDepth +' Bit');
/script



#screen_height#
#screen_width#
#screen_colors#

-Original Message-
From: Sam Roach [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 12:58 PM
To: CF-Talk
Subject: RE: Screen width, Height,  Color Depth


can you use:
#screen_height#
#screen_width#
#screen_colors#


-Original Message-
From: BEN MORRIS [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 12:49 PM
To: CF-Talk
Subject: Re: Screen width, Height,  Color Depth


You will have to have one form page that they come to and have JS write
the
values in a hidden form field, then have that submit to an action page,
after which you will have the values to use in CF.  Of course, you can't
capture this in all browsers.

More JS help: http://www.webreference.com/js/column17/dimensions.html

 Jason Larson [EMAIL PROTECTED] 03/25/02 03:35PM 
I have very little javascript experience and what I am trying to
accomplish is to use javascript to give me the height, width and color
depth of a user's browser and turn those javascript variables into a CF
variable so I can use them in a cf template. I was wondering if anybody
had any code snippets for something like this, and if so would you mine
sharing.

Thanks in advance,
Jason Larson







__
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Screen width, Height, Color Depth

2002-03-25 Thread Matt Robertson

A complete code sample is here:

http://foohbar.org/snippets/docs.cfm

All you have to do is write up an appropriate referer test to go with it.

---
Matt Robertson[EMAIL PROTECTED]
MSB Designs, Inc., www.mysecretbase.com
---


 
 
__
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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists