Hey, i decided to repost this because the last one got long and kinda confusing. Okay first the background, I am using php to parse an rss feed, which is working fine. However when i put it into the javascript to display it i run into trouble. One of the descriptions has a carriage return in it, and javascript can't handle a new line during a string.
Slideshow JS i;m using - http://www.barelyfitz.com/projects/slide...
And i'm using Magpie on the PHP side for rss parsing.
The original page i am having the problem on is: http://test.globalnewsnow.info/entertain...
And a test page where i have cut the code down to just the problem is here: http://test.globalnewsnow.info/test.php
This php is working fine, this is just a javascript problem, although maybe i can use php to fix it.
Also, i have tried a string replace for /n and /r with no luck.
Please let me know if theres anything else i can help with, and thanks in advance for looking.
Carriage Return in RSS messing up javascript?
Using the String method "replace" to remove all of the carriage return characters.
Reply:Well Written Question!
What browser is giving you a JS error? what error?
I don't get any errors in Firefox 2.0
teeth problems
No comments:
Post a Comment