Re: JS Variable into CF

2004-10-13 Thread Larry C. Lyons
It shouldn't be too hard, have a look at the web based meta-analaysis calculator I developed for researchers. It uses a combination of JS on the data entry page and CF on the accumulation page to calculate results. http://www.lyonsmorris.com/lyons/metaAnalysis/index.cfm larry On Wed, 13 Oct 2004

Re: JS Variable into CF

2004-10-13 Thread Ben Doom
> var answer = Math.pow(txt_weight,0.425) * Math.pow(height,0.725) * 0.007184; > answer = Math.round(100*answer)/100 bsa = round(100 * (weight^0.425) * (height^0.725) * 0.007184 / 100); --Ben [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations an

RE: JS Variable into CF - Jim

2004-10-13 Thread Jim Davis
ell [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 13, 2004 3:56 PM To: CF-Community Subject: RE: JS Variable into CF - Jim Interesting, Jim. The PengoWorks thing is, indeed, neat. It reminds me of what flash does, but it's actually making a trip to the server each time rather than caching, r

Re: JS Variable into CF

2004-10-13 Thread S . Isaac Dealey
Okay... Sounds to me like you just need a CF function that will mirror your _javascript_ bsa formula ...   function bsa(weight,height) {     var bsa = (weight^0.425)   * (height^0.725) * 0.007184;     return round(100*bsa)/100;   } #bsa(100,100)# give that a shot. :) > Isaac, > This is b

Re: JS Variable into CF

2004-10-13 Thread Candace Cottrell
Isaac, This is basically what I am working with: var answer = Math.pow(txt_weight,0.425) * Math.pow(height,0.725) * 0.007184; answer = Math.round(100*answer)/100 It's also known as BSA. I am using it to calculate drug dosages. I am thinking that it might be possible to pull this into CF. Candac

RE: JS Variable into CF - Jim

2004-10-13 Thread Candace Cottrell
y is amazing. Jim Davis From: Candace Cottrell [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 13, 2004 11:06 AM To: CF-Community Subject: JS Variable into CF This might be a simple question, but is there a way to pass a JS variable (FUNCTION AT THE TOP OF CODE) into a cfloop? [Todays Threads]

Re: JS Variable into CF

2004-10-13 Thread Candace Cottrell
Thanks Ray, it does make sense. Candace K. Cottrell, Web Developer The Children's Medical Center One Children's Plaza Dayton, OH 45404 937-641-4293 http://www.childrensdayton.org "There is no right price for the wrong product, even if it is inexpensive and delivered on time." >>> [EM

Re: JS Variable into CF

2004-10-13 Thread Kevin Graeme
is > > From: Candace Cottrell [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 13, 2004 11:06 AM > To: CF-Community > Subject: JS Variable into CF > > > This might be a simple question, but is there a way to pass a JS > variable (FUNCTION AT THE TOP OF CODE) into a cfloop

Re: JS Variable into CF

2004-10-13 Thread S . Isaac Dealey
> On Wed, 13 Oct 2004 11:05:41 -0400, Candace Cottrell > <[EMAIL PROTECTED]> wrote: >> This might be a simple question, but is there a way to >> pass a JS >> variable (FUNCTION AT THE TOP OF CODE) into a cfloop? I'm not sure I entirely understand the question... There are quite a few ways to make

RE: JS Variable into CF

2004-10-13 Thread Jim Davis
ROTECTED] Sent: Wednesday, October 13, 2004 11:06 AM To: CF-Community Subject: JS Variable into CF This might be a simple question, but is there a way to pass a JS variable (FUNCTION AT THE TOP OF CODE) into a cfloop? [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settin

Re: JS Variable into CF

2004-10-13 Thread Raymond Camden
The short answer is no. JS stuff is client side. CF stuff is server side. The longer answer is that yes, you can, via hacks. So for example, you can make JS send you to foo.com/index.cfm?x=Y, where Y is the value of some JS variable. You would then have "access", but it would be on a new request. T

Re: JS Variable into CF

2004-10-13 Thread Larry C. Lyons
remember CF is server side while JS is client. You could stuff the value into a hidden field, or create a hidden framed document, the hidden part of the frame (the hight is set to 0). you use to persist the _javascript_ variables. Then when loading the cf page in the visible part of the frame reads

JS Variable into CF

2004-10-13 Thread Candace Cottrell
This might be a simple question, but is there a way to pass a JS variable (FUNCTION AT THE TOP OF CODE) into a cfloop? TIA Candace K. Cottrell, Web Developer The Children's Medical Center One Children's Plaza Dayton, OH 45404 937-641-4293 http://www.childrensdayton.org "There is n