[jQuery] Re: The best practice to do this

2007-05-22 Thread Ⓙⓐⓚⓔ
you would have to allow the return to be inserted as well! I'm having trouble understanding what you mean. You don't want any real s, just a textarea, but you want a - added with every newline? On 5/22/07, Jean Nascimento <[EMAIL PROTECTED]> wrote: n that dont break the line =p On 5/22

[jQuery] Re: The best practice to do this

2007-05-22 Thread Jake McGraw
Have you tried using a newline, like \n? On 5/22/07, Jean Nascimento <[EMAIL PROTECTED]> wrote: n that dont break the line =p On 5/22/07, Ⓙⓐⓚⓔ <[EMAIL PROTECTED]> wrote: > $("#mytext").keyup would be called for every character entered... > if they hit a return (or enter or tab) you could

[jQuery] Re: The best practice to do this

2007-05-22 Thread Christof Donat
Hi, > > -1 > -2 > -3 > My problem is how i break a line in textarea (i try a lot things and dont > work) ?? It yould simply work by inserting a '\n' at the appropriate place in the Textarea. Christof

[jQuery] Re: The best practice to do this

2007-05-22 Thread Jean Nascimento
n that dont break the line =p On 5/22/07, Ⓙⓐⓚⓔ <[EMAIL PROTECTED]> wrote: $("#mytext").keyup would be called for every character entered... if they hit a return (or enter or tab) you could insert an · Is that what you want?? On 5/22/07, Jean Nascimento <[EMAIL PROTECTED]> wrote: > > gr

[jQuery] Re: The best practice to do this

2007-05-22 Thread Ⓙⓐⓚⓔ
$("#mytext").keyup would be called for every character entered... if they hit a return (or enter or tab) you could insert an · Is that what you want?? On 5/22/07, Jean Nascimento <[EMAIL PROTECTED]> wrote: great, but i want to simule a list in textarea, like: -1 -2 -3 wrote: > Ahh, I see

[jQuery] Re: The best practice to do this

2007-05-22 Thread Jean Nascimento
great, but i want to simule a list in textarea, like: -1 -2 -3 wrote: Ahh, I see what you're getting at: HTML: JavaScript: $("#mytext").keypress(function(event){ if (!event.keyCode||event.keyCode!=13) return; $("#mylist").append(""+$(this).val()+""); $(this).val(""); }); Works in

[jQuery] Re: The best practice to do this

2007-05-21 Thread Jake McGraw
Ahh, I see what you're getting at: HTML: JavaScript: $("#mytext").keypress(function(event){ if (!event.keyCode||event.keyCode!=13) return; $("#mylist").append(""+$(this).val()+""); $(this).val(""); }); Works in Firefox. - jake On 5/21/07, Jean Nascimento <[EMAIL PROTECTED]> wrote: Tk

[jQuery] Re: The best practice to do this

2007-05-21 Thread Jean Nascimento
Tkz for the tips but using jQuery it will show ??? On 5/21/07, Jake McGraw <[EMAIL PROTECTED]> wrote: Jean: Have you looked at some of the WYSIWYG (What You See Is What You Get) JavaScript text editors? TinyMCE is a popular choice to do what you asked and much more. - jake On 5/20/07, Jean

[jQuery] Re: The best practice to do this

2007-05-21 Thread Jake McGraw
Jean: Have you looked at some of the WYSIWYG (What You See Is What You Get) JavaScript text editors? TinyMCE is a popular choice to do what you asked and much more. - jake On 5/20/07, Jean Nascimento <[EMAIL PROTECTED]> wrote: How i make a list in a textarea? My ideia is do a script to when