You are here: Re: Convert a javascript value to HTML Input « HTML « IT news, forums, messages
Re: Convert a javascript value to HTML Input

Posted by Nonee on 10/11/05 07:41

If I am understanding what you are looking for, you should be able to
access the form field, hidden or otherwise, directly aka:

document.whateveryourformiscalled.business.value = 10;

On Sun, 2 Oct 2005 23:58:39 -0500, "Stewart" <nomailplease@mail.com>
wrote:

>I'm trying to populate a HTML text or hidden input with a value from
>javascript.
>
>the Javascript values do display with this test:
>
><SCRIPT LANGUAGE="JavaScript">
><!-- Begin
>business = unescape(params["business"]);
>amount = unescape(params["amount"]);
>item_name = unescape(params["item_name"]);
>
>document.write("business = " + business + "<br>");
>document.write("amount = " + amount + "<br>");
>document.write("item_name = " + item_name + "<br>");
>// End -->
></script>
>
>HTML input:
>
><input type="text" name="business" value=business />
>
>I can't find any examples or direction for this.
>Any suggestions?
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация