$F will only gives you the value of the textbox, it a read-only.
$("Link").value = l; should works.
On 4 juil, 18:03, Siner
<sobocinski.pa...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> Hi,
> I try copy text for one, to second input, but thats all what I can
> invent:
>
> <HTML>
> <HEAD>
> <script src="prototype.js"></script>
> <script>
> function copyText()
> {
> var t = $F(''Title'');
> var l = t.gsub('' '',
''_'');
> var change = $F(''Link'').update( l );
> d.innerHTML;
> }
> </script>
> </HEAD>
> <BODY>
> <input type="text" id="Title" value="Title
Title title"><br>
> <input type="text" id="Link"
value=""><br>
> <input type="button" value="copy"
onclick="copyText();"><br>
> </BODY>
> </HTML>
>
> But it doesnt work.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---