Click to See Complete Forum and Search --> : Calling javascript function with in asp???


shanuragu
12-15-2003, 06:22 AM
HI

I have written a javascript function to convert Amount in to words. I just have to display the Amount taken from the db with in a <td> tag in words by calling the javascript function stored under .js file.

How can I do this??

Shara

ray326
12-15-2003, 10:43 AM
In a Javascript section in the head put

var theAmount = <%= theServerSideAmount %>

and then your client-side Javascript can get at it.

shanuragu
12-15-2003, 10:38 PM
Thanks Ray!!

Shara