RE: very OT : jscript question

Date : Fri, 22 Jul 2005 08:31:38 -0400
To : <XSI(at)Softimage.COM>
From : "Stephen Blair" <stephen_blair(at)Softimage.COM>
Subject : RE: very OT : jscript question
Or, are you setting the value of a TEXTAREA element? If so, then can't you just use the newline character "\n", eg:

mytextarea.value = "Line one.\nLine two.";

\n works for me on windows.

-----Original Message-----
From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM]On Behalf
Of kim aldis
Sent: Friday, July 22, 2005 2:48 AM
To: XSI(at)Softimage.COM
Subject: RE: very OT : jscript question


In a web page, remember you're writing pure html so all the html formatting
rules apply. <br> for a new line, <p> for a new paragraph.

Whitespace (new lines, tabs, etc) is trimmed by the browser so you'd only be
getting one space between each word. If you put any more than that in there
it gets culled. To add more use the html escape sequence, &npsp; 

> -----Original Message-----
> From: owner-xsi(at)Softimage.COM 
> [mailto:owner-xsi(at)Softimage.COM] On Behalf Of michael malinowski
> Sent: 22 July 2005 02:52
> To: XSI(at)Softimage.COM
> Subject: very OT : jscript question
> 
> Morning all. Appologies for such an off topic question, i am 
> not part of a jscript mailing list (if you know a good one i 
> would be greatful to be pointed to it).
> 
> I have jscript write text on the fly in a text area on a 
> webpage, its almost complete, but i cant work out how to make 
> it recognise or make a new paragraph. Space's and characters 
> are fine but i have no idea how to make jscript see an Enter/Return.
> Can anyone point me in the right direction?
> 
> Cheers
> Mike
> 
> _______________
> Mike Malinowski
> Character Rigger - Animal Logic
> 
> 
> ---
> Unsubscribe? Mail Majordomo(at)Softimage.COM with the following 
> text in body:
> unsubscribe xsi
> 
> 

---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi

---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi


Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available.
This site supposedly brought to you by Benjamin Grosser and the Imaging Technology Group.