Hi David,
I have corrected the code to work, please check it once and let me know if u
have any problems.
<html>
<head>
<script language="javascript">
function CreateOrderString(form) {
var amount = document.OrderForm.chargeamount.value ;
document.OrderForm.orderstring.value = "1~Dummy Order String~" + amount
+"~1~N~||" ;
document.OrderForm.orderstring.focus();
return true;
}
</script>
</head>
<body>
<form name="OrderForm">
<input type="text" name="chargeamount" size="15" onChange="return
CreateOrderString(this)" >
<input type="text" name="orderstring" size="60" value="">
<input type="submit" value="submit">
</form>
</body>
</html>
Regards,
Venkat
On Wed, Mar 19, 2008 at 9:25 PM, David < dgresser%40sbcglobal.net">dgresser
sbcglobal.net> wrote:
> Hi,
>
> I am trying to assign the value of one field to a string and then
> assign that string as the value of a second field. This is what I've
> tried which doesn't work. Can someone tell me what I'm doing wrong?
>
> Thanks
>
> David
>
> <html>
> <head>
> <script language="javascript">
>
> function CreatOrderString(form) {
> var amount = form.chargeamount.value ;
> form.orderstring.value = "1~Dummy Order String~" + amount +"~1~N~||" ;
> form.orderstring.focus();
> return true;
> }
> </script>
>
> </head>
> <body>
> <form>
> <input type=text name=chargeamount size=15 onChange="return
> CreateOrderString() ;" >
> <input type=text name=orderstring size=60 value="">
> <input type=submit value=submit>
> </form>
>
> </body>
> </html>
>
>
>
[Non-text portions of this message have been removed]
.