Problem with TextArea

View: New views
2 Messages — Rating Filter:   Alert me  

Problem with TextArea

by Carlsbad Cubes mailing list :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
      When I use "\n" in the text of the TextArea. But it is not considering it as
a newline instead it is printing the text with "\n" character. I tried to debug
and final found out that the SwiXML parsing (i.e SAX parser) used is converting the
"\n" to "\\n" so that in the output the "\n" is printed as it is.

<textarea text="This is a sample message.\n This is a sample message."/>

                        Please help me to get rid of this situation. I want the SwiXML to recognize
the "\n" as a newline character.

regards,
Rajkumar
_______________________________________________
Forum mailing list
Forum@...
http://carlsbadcubes.com/mailman/listinfo/forum_carlsbadcubes.com

Re: Problem with TextArea

by Carlsbad Cubes mailing list :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Rajkumar,

try something like this:

<textarea>
This is a sample message.
This is a sample message.
</textarea>

Because you define the GUI in xml, you have to accept the rules of that format...

Yours,

Frank Meissner

List for Users of Carlsbad Cubes' Technologies and Products <Forum@...> schrieb am 03.03.06 14:29:05:

> Hi,
>
>       When I use "\n" in the text of the TextArea. But it is not considering it as
>
> a newline instead it is printing the text with "\n" character. I tried to debug
>
> and final found out that the SwiXML parsing (i.e SAX parser) used is converting the
>
> "\n" to "\\n" so that in the output the "\n" is printed as it is.
>
>
> <textarea text="This is a sample message.\n This is a sample message."/>
>
>
>                        
> Please help me to get rid of this situation. I want the SwiXML to
> recognize
>
> the "\n" as a newline character.
>
>
> regards,
>
> Rajkumar
>
> -----------------------------------------------------------------
> _______________________________________________
> Forum mailing list
> Forum@...
> http://carlsbadcubes.com/mailman/listinfo/forum_carlsbadcubes.com
>



_______________________________________________
Forum mailing list
Forum@...
http://carlsbadcubes.com/mailman/listinfo/forum_carlsbadcubes.com