English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

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/slideshow/
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.php?page=music&ref=
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.

2006-10-21 03:53:52 · 2 answers · asked by Brady 3 in Computers & Internet Programming & Design

I have already tried the replace both in php and javascript, with no luck.

And, i don't actually get an error in firefox, it just comes up with a message that says a script is taking a long time, continue or stop it.

2006-10-21 20:14:45 · update #1

2 answers

Using the String method "replace" to remove all of the carriage return characters.

2006-10-21 04:29:12 · answer #1 · answered by John C 5 · 0 0

Well Written Question!

What browser is giving you a JS error? what error?

I don't get any errors in Firefox 2.0

2006-10-21 05:08:00 · answer #2 · answered by jake cigar™ is retired 7 · 0 0

fedest.com, questions and answers