Only via another http request, or a cookie. Looking at the code below though, rather than get into the js > server stuff, it would probably be more efficient to do it all server side, or all client side which ever is necessary. It would definitely be possible to pass all that info to CF, but it would end up getting more complex than necessary in order to avoid killing the server with a bunch of http requests just to pass back an image size.
There is a wide variety of custom tags, cfx tags, and java classes that will give you the height and width of an image. -- jon mailto:[EMAIL PROTECTED] Wednesday, March 26, 2003, 5:01:36 PM, you wrote: BD> After I create a javascript variable how can I assign that value to a CF BD> variable? BD> ------- BD> <CFQUERY name="qImages" datasource="dns"> BD> SELECT id, thumb FROM items BD> </CFQUERY> BD> <CFOUTPUT query="qImages"> BD> <img src="../graphics/#thumb#" id="x#currentrow#"> BD> <script language="JavaScript"> BD> var h = (eval(x#currentrow#).height); BD> var w = (eval(x#currentrow#).width); BD> document.write(h); BD> document.write(w); BD> </script> BD> <CFSET myCFVariable = h; BD> </CFOUTPUT> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

