LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-13-2009, 07:07 AM   #1
sriphp
Member
 
Registered: Apr 2009
Posts: 48

Rep: Reputation: 15
news ticker problum


hai all,

this is srinath.m

i have problum that news ticker is not working on mozilla,in ie it is working below is my html snippet

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>

<title>Ajax Mail</title>

<link rel="stylesheet" type="text/css" href="styles/AjaxMail.css" />

<link rel="stylesheet" type="text/css" href="styles/panelHeading.css" />

<link rel="stylesheet" type="text/css" href="styles/chat.css" />



<script type="text/javascript" src="scripts/zxml.js"></script>

<script type="text/javascript" src="scripts/json.js"></script>

<script type="text/javascript" src="scripts/xparser.js"></script>

<script type="text/javascript" src="scripts/newsticker.js"></script>
<script type="text/javascript">
var wClip = ["http://rss.news.yahoo.com/rss/topstories"];



/* var wClip = ["http://rss.cnn.com/rss/cnn_topstories",

"http://rss.news.yahoo.com/rss/topstories",

"http://news.bbc.co.uk/go/rss/-/sport1/hi/cricket/6540621.stm"];*/



function webClipping()

{ //alert("sdfsd");

var clipLength = wClip.length;

//var rand_no = Math.floor((clipLength-0)*Math.random()) + 1;

var rand_no = Math.floor(clipLength*Math.random());



//var str = wClip[rand_no]; //if random used then

var str = wClip[0];

var newsTicker = new NewsTicker();

newsTicker.add(str);

}



setTimeout(webClipping, 1000);

</script>
</head>
<body>
<div id="scrollDiv"><span id="spnScroll"><script type="text/javascript">webClipping();</script></span></div>
</body>
</html>

In newsticker.js file at line

NewsTickerFeed.prototype.populateTicker = function (sXml) {
var oParser = new XParser(sXml, true);
xParser is not define error iam getting.

please give solution for this.

Thanks
Sri
 
Old 05-13-2009, 09:07 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 23,183

Rep: Reputation: 6475Reputation: 6475Reputation: 6475Reputation: 6475Reputation: 6475Reputation: 6475Reputation: 6475Reputation: 6475Reputation: 6475Reputation: 6475Reputation: 6475
Quote:
Originally Posted by sriphp View Post
hai all,

this is srinath.m

i have problum that news ticker is not working on mozilla,in ie it is working below is my html snippet

xParser is not define error iam getting.

please give solution for this.
As people have pointed out to you on some other threads of yours that you opened, Firefox/mozilla do not handle plugins the same way that IE does. There are lots of tutorials on the internet, that can explain how to write a cross-browser plugin.

And as others have asked...please spell correctly.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
catdoc problum sriphp Linux - Software 5 05-09-2009 05:12 AM
DHCP Problum mail2mphani Linux - Server 4 03-25-2009 04:15 AM
LXer: RSS Ticker: display news headlines in your browser LXer Syndicated Linux News 0 04-23-2007 02:16 PM
News Ticker Software. rvijay Linux - Software 8 01-30-2005 02:46 AM
News Ticker mykyl Linux - Software 5 11-05-2003 08:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration