No, CF has no idea what that means, nothing has been sent to the client yet. And it is the client that figures out things like "document.body.scrollTop" and "window.pageYOffset" Once the request has been sent to the client, the server is no longer involved in the processing, it has moved on to the next request.
If you really really really need something like this, you will have to use cookies, forms and/or hidden frames; in order to pass values from the client back to the server. But one should always ask why one would need this? Why does the server need to know and keep track of whether it is document.body.scrollTop or window.pageYOffset. JavaScript is much more adept at determining and using this information. -------------- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA "C code. C code run. Run code run. Please!" - Cynthia Dunning ....-----Original Message----- ....From: Charles Heizer [mailto:[EMAIL PROTECTED] ....Sent: Thursday, February 10, 2005 11:21 AM ....To: CF-Talk ....Subject: Re: Using ColdFusion to set scroll to position? .... ....Ok, I've finally gotten back to this ... .... ....I guess what I'm really after is something like this ... .... ....<cfoutput> ....<script> .... function foobar() ....{ .... var vY = (document.all)?document.body.scrollTop:window.pageYOffset; .... <cfset session.Jsvar = vY> ....} ....</script> ....</cfoutput> .... ....Can I do something like this? .... ....Thanks, ....- Charles Confidentiality Notice: This message including any attachments is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender and delete any copies of this message. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:194115 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

