Yeah. That's what I figured. So I guess I can assign the javascript to a
form field
and then access the form field, right?

<script language="JavaScript">
var h = (eval(x#currentrow#).height);
var w = (eval(x#currentrow#).width);
document.forms[0].imgheight.value = h;
document.forms[0].imgwidth.value = w;
</script>

<form>
<input type="text" name="imgheight">
<input type="text" name="imgwidth">
</form>

Regards,

Dave Bosky
Sr. Multimedia Web Designer
Horry Telephone Cooperative, Inc. 
office: (843)369-8613
[EMAIL PROTECTED]


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 26, 2003 5:11 PM
To: CF-Talk
Subject: RE: Using JS variables in CF


by form submission or url var.  Remember ColdFusion is server
side...JavaScript is clientside.  The two don't communicate that well, or
rather they do not communicate continuously, whcih to some is a better form
of communication, eh? LOL  (aside from push pull stuff of course)

Doug

>-----Original Message-----
>From: Bosky, Dave [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, March 26, 2003 5:02 PM
>To: CF-Talk
>Subject: Using JS variables in CF
>
>
>After I create a javascript variable how can I assign that 
>value to a CF
>variable?
>-------
><CFQUERY name="qImages" datasource="dns">
>       SELECT id, thumb FROM items
></CFQUERY>
><CFOUTPUT query="qImages">
>       <img src="../graphics/#thumb#" id="x#currentrow#">
>       <script language="JavaScript">
>               var h = (eval(x#currentrow#).height);
>               var w = (eval(x#currentrow#).width);
>               document.write(h);
>               document.write(w);
>       </script>
>       <CFSET myCFVariable = h;
></CFOUTPUT>
>-----------
>thanks,
>Dave
>
>
>
>HTC Disclaimer:  The information contained in this message may 
>be privileged and confidential and protected from disclosure. 
>If the reader of this message is not the intended recipient, 
>or an employee or agent responsible for delivering this 
>message to the intended recipient, you are hereby notified 
>that any dissemination, distribution or copying of this 
>communication is strictly prohibited.  If you have received 
>this communication in error, please notify us immediately by 
>replying to the message and deleting it from your computer.  Thank you.
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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
Get the mailserver that powers this list at http://www.coolfusion.com

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to