Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Flash Remoting / August 2006



Tip: Looking for answers? Try searching our database.

line break issue

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
dnk@canada.com - 15 Aug 2006 03:13 GMT
Flash 8
amfphp 1.2
mysql4

Hi there- I have a class that returns results from a DB with a few html tags
(well a <br />). Now for some reason when in  the database it has:

some text<br />
more text<br />
even more

In flash in an html text field, my results show:

some text

more text

even more

If I hard code the same result into a var and asign it, I get the desired:

some text
more text
even more

I even modified the DB to have:

some text<br />more text<br />even more

And I still get the same results.

Am I missing something?
dnk@canada.com - 15 Aug 2006 03:45 GMT
ok - disregard - I figured it out... the issue is that PHP's nl2br (newline to
br) actully ADDS a br before a newline - it does not replace them. So in html
this was fine (as it does not render the newline), but in flash it was messing
it up. Just wrote a custom function, and all is cool now.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.