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


On Jan 31, 2005, at 9:16 AM, Ian Skinner wrote:

> CS can output JS code just as well as it outputs HTML code.  You just  
> write the dynamic JS; this is then sent to the client and acted on.   
> You are not "getting at JS variables;" you are creating dynamic JS  
> code.
>
> <cfoutput>
> <script>
>  function foobar()
> {
>       var JSvar = #CFvalue#;
> }
> </script>
> </cfoutput>
>
>
>
> --------------
> 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: Monday, January 31, 2005 9:07 AM
> ...To: CF-Talk
> ...Subject: Re: Using Coldfusion to set scroll to position?
> ...
> ...I thought about this but I don't have a good method of marking  
> rows. I
> ...have been looking in to javascript but I don't know how to get at js
> ...vars with coldfusion.
> ...
> ...- Charles
> ...
> ...On Jan 29, 2005, at 1:35 AM, Martin Parry wrote:
> ...
> ...> If you have distinct blocks or rows of a table etc. in the page  
> you
> ...> could use HTML anchors and when you redirect back to the page use
> ...> http://myserver.com/page.cfm#anchor_15
> ...>
> ...> Martin Parry
> ...> Macromedia Certified Developer
> ...> http://www.BeetrootStreet.co.uk
> ...>
> ...> -----Original Message-----
> ...> From: Charles Heizer [mailto:[EMAIL PROTECTED]
> ...> Sent: 29 January 2005 08:02
> ...> To: CF-Talk
> ...> Subject: Using Coldfusion to set scroll to position?
> ...>
> ...> Hello,
> ...> I was wondering if someone has a good example of setting the  
> scroll
> ...> position of a page using a session variable or a cookie?
> ...>
> ...>
> ...>
> ...
> ...
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:194111
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=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to