|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
XML Newline question.
I have a string with newlines embedded into it. I am trying to display the string but the newlines are ignored. I have attempted to write a javascript function that parses the string and prints <BR> for every newline. However, me code is not working, any help would be appreciated.
Here is my javascript fxn and how I am calling it in the xml. <SCRIPT LANGUAGE="JavaScript" type="text/javascript" charset="utf-8"> <![CDATA[ function NoteFormat(NoteText) { var ParsedNoteArray = NoteText.split(/\n/); for (i=0; i<ParsedNoteArray.length; i++) { document.write(ParsedNoteArray[i] + "<br>"); } } ]]> </SCRIPT> <a href="javascript:NoteFormat({@Note})"></a> |
|
#2
|
||||
|
||||
|
Try doing a search in the forum first before posting a message. This topic has been covered from many different angles.
http://forums.devshed.com/t68602/s.html http://forums.devshed.com/t63328/s.html
__________________
mr... mike.rusaw@realpage.com RalPage, Inc. "I have made this letter longer than usual, only because I have not had the time to make it shorter." - Blaise Paschal |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > XML Newline question. |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|