Apr 26, 2005 #1 haneen97 Programmer Joined Dec 10, 2002 Messages 280 Location US Hi, document.getElementById('txtBalance').value = <%=Balance%>; I thought I could use the above line to copy a currency value fromt he VBScript variables area to that field while executing the JScript function. Any idea? Thanks Mo
Hi, document.getElementById('txtBalance').value = <%=Balance%>; I thought I could use the above line to copy a currency value fromt he VBScript variables area to that field while executing the JScript function. Any idea? Thanks Mo
Apr 26, 2005 #2 kaht Programmer Joined Aug 18, 2003 Messages 4,156 Location US You need to encapsulate the value in quotes: Code: document.getElementById('txtBalance').value = [COLOR=red][b]"[/b][/color]<%=Balance%>[COLOR=red][b]"[/b][/color]; unless the value is a number. I'm guessing since it's currency it contains commas (,) and/or dollar signs ($) in which case you'd need the quotes. -kaht ...looks like you don't have a job, so why don't you get out there and feed Tina. Upvote 0 Downvote
You need to encapsulate the value in quotes: Code: document.getElementById('txtBalance').value = [COLOR=red][b]"[/b][/color]<%=Balance%>[COLOR=red][b]"[/b][/color]; unless the value is a number. I'm guessing since it's currency it contains commas (,) and/or dollar signs ($) in which case you'd need the quotes. -kaht ...looks like you don't have a job, so why don't you get out there and feed Tina.
Apr 29, 2005 #3 kaht Programmer Joined Aug 18, 2003 Messages 4,156 Location US You're very welcome haneen97. -kaht ...looks like you don't have a job, so why don't you get out there and feed Tina. Upvote 0 Downvote
You're very welcome haneen97. -kaht ...looks like you don't have a job, so why don't you get out there and feed Tina.