DotDragnet
May 22, 2012, 03:02:33 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Mobile users - Our forum is Tapatalk enabled. http://www.tapatalk.com/
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Javascript RSS ticker - problems in Firefox  (Read 1349 times)
samhs
Administrator
Hero Member
*****
Posts: 1711



View Profile WWW Awards
« on: June 19, 2007, 11:01:24 AM »

Hello

Hopefully someone (Jason?!  bye1 wink1) can help me:

http://www.hs-demo.co.uk/titon/case-studies.html

It works locally in IE7, it never seems to load the xml in firefox (is there a restriction on loading from a remote url? - I forget but that rings a bell). I've tried various "load xml" approaches to fix, but nothing doing.

Seperately, I want to strip out any carriage returns from the title node before displaying it.

Help much appreciated smile

Sam
Logged

Loose adj a not held together; not fastened or firmly fixed in place
Lose verb to misplace something. To fail to keep or obtain something, especially because of a mistake, carelessness, etc.
---
Blog: www.ohwrite.co.uk
Twitter: www.twitter.com/samhs
Ben
Hero Member
*****
Posts: 766


I didn't do it


View Profile Awards
« Reply #1 on: June 19, 2007, 11:28:33 AM »

Doesn't work AFAIK in IE6. :S
Logged
JasonD
Global Moderator
Hero Member
*****
Posts: 546



View Profile Awards
« Reply #2 on: June 19, 2007, 01:37:12 PM »

Did I never tell you I hate news feeds?

The uncaught exception is almost certainly from breaking same origin policy, using a local copy of the rss gets past that but then selectNodes is not a method of XMLDocument anyway. 

Stripping the CRs is easy enough: sText = sText.replace(/[\r\n]/g, '');
Logged
samhs
Administrator
Hero Member
*****
Posts: 1711



View Profile WWW Awards
« Reply #3 on: June 20, 2007, 09:43:58 AM »

Sad

Thanks Jason - the replace works a treat. Need to find a client-side system to achieve this. I'm beginning to understand why the BBC has that awful looking thing at the top of their news pages. Ho hum.

Sam
Logged

Loose adj a not held together; not fastened or firmly fixed in place
Lose verb to misplace something. To fail to keep or obtain something, especially because of a mistake, carelessness, etc.
---
Blog: www.ohwrite.co.uk
Twitter: www.twitter.com/samhs
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2006-2008, Simple Machines Valid XHTML 1.0! Valid CSS!