[Dojo-interest] How to add multiple lines to textarea

Chris Fleischmann chris.fleischmann at sun.com
Thu Aug 28 22:09:57 UTC 2008


Yes agree, I simply tried both to no avail... ie., both returned not a
function.

dijit.byId("t_textA").attr is not a function
dojo.byId("t_textA").attr is not a function

Regards,

Chris



PeterAnsell wrote:
> 
> 
> ----- "Chris Fleischmann" <chris.fleischmann at sun.com> wrote:
> 
>> From: "Chris Fleischmann" <chris.fleischmann at sun.com>
>> To: dojo-interest at dojotoolkit.org
>> Sent: Thursday, August 29, 2008 17:16:48 GMT +00:00
>> Subject: Re: [Dojo-interest] How to add multiple lines to textarea
>>
>> I tried, 
>> 
>> dojo.byId('t_textA').attr('value', "this<br>is<br>a<br>test"); and 
>> dijit.byId('t_textA').attr('value', "this<br>is<br>a<br>test");
>> 
>> and the output i got through the firebug console is;
>> 
>> dojo.byId("t_textA").attr is not a function???
>> 
>> Thanks for your help thus far.
>> 
> 
> Dojo.byId returns the HTML element with that id, dijit.byId returns the
> dijit with that id. Thats a pretty fundamental difference!
> 
> Peter
> _______________________________________________
> FAQ: http://dojotoolkit.org/support/faq
> Book: http://dojotoolkit.org/docs/book
> Forums: http://dojotoolkit.org/forum
> Dojo-interest at dojotoolkit.org
> http://turtle.dojotoolkit.org/mailman/listinfo/dojo-interest
> 
> 

-- 
View this message in context: http://www.nabble.com/How-to-add-multiple-lines-to-textarea-tp19202377p19210187.html
Sent from the Dojo mailing list archive at Nabble.com.



More information about the Dojo-interest mailing list