Thanks Oskar,
to put html with el.set('html') in a textfiled is my stupidity
with el.set('text') it works in ie but not in firefox.
el.set('value') is great, thanks

onclicks in the html its sometimes the easiest way but i am open for
other quick solutions.


On 15 Aug., 18:25, Oskar Krawczyk <[email protected]> wrote:
> Good.
>
> If you need to set the value of the textarea, why are you trying to do 
> el.set('html'), not el.set('value')?http://www.jsfiddle.net/oskar/4Jw29/1/
>
> I want to poke my eyes out when I see stuff like href="javascript:;" and 
> onclicks in the html. Yuck.
>
> On 2010-08-15, at 17:44, hamburger wrote:
>
> > OK Oskar,
> > here it is:http://www.jsfiddle.net/4Jw29/
> > here i get an error that the function insertTag is not defined (but it
> > is and works fine in my environment)
> > thx in advance
>
> > On 15 Aug., 17:25, Oskar Krawczyk <[email protected]> wrote:
> >> Hamburger, for the billionth time, please use jsfiddle.net.
>
> >> On 2010-08-15, at 17:07, hamburger wrote:
>
> >>> Hello whats wrong here?
>
> >>> function insertTag(insertTagArrayNumber){
> >>> var insertTagArray = [' <blockquote></blockquote>',' <em>my
> >>> emphasized text</em>',' <strong>my bold text</strong>',' <code>my
> >>> code</code>'];
>
> >>>                    var txt =(insertTagArray[insertTagArrayNumber-1]);
> >>>                    console.log("text",txt); //OK
> >>>                    console.log("test2",$('comment').value); //OK
> >>>                    $('comment').set('html',$('comment').value + txt);
> >>>    };
>
> >>> there is only shown the $('comment').value in the text field.
> >>> txt will be ignored.
> >>> firebug shows that the txt is changed to: &ltstrong&gtmy bold text&lt/
> >>> strong&gt

Reply via email to