We don't need too...

As Paul and the others have stated, that code sets a variable with the text
between the quotes. Now if this is working for you, then maybe you can
explain where you are overriding these variables using Ajax. Because as it
stands, the only thing you will see when you dump the session scope, is the
text and not what you claim.

So unless you have some JavaScript that is interacting with the server,
then what you describe does not happen the way you're trying to explain.

-- 
Regards,
Andrew Scott
WebSite: http://www.andyscott.id.au/
Google+:  http://plus.google.com/113032480415921517411


On Sun, Dec 23, 2012 at 7:06 PM, The Dude <[email protected]> wrote:

>
> Have you actually tried it?
>
> >Impossible that it works as you describe.
> >
> >If anyone runs this code they will simple see a session variable with a
> >string of js text.
> >
> ><cfset session.screenwidth =
> >"<script>document.write(>screen.width);</script>" />
> ><cfdump var="#session#" />
> >
> >You would have to do it with ajax as suggested, or use js to set a form
> >variable.
> >
> >
> >
> >>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353625
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to