mukesh11
Member
Posts: 19
Registered: 7/6/2004
Member Is Offline
|
| posted on 7/7/2004 at 01:16 PM |
|
|
Getting different content in two scrollers
Hi,
I had posted yesterday about creating two different scrollers on my website. I have been able to create two instances of the scroller. However, for
the first instance I want to get the news from CNSNews.com and it works. It displays the news from that site. You can view the code which I had to
enter in my html file at the following URL:
http://www.cnsnews.com/ticker/ticker_signup.asp
For the second instance, I want it to get the immigration news from
http://story.news.yahoo.com/fc?cid=34&tmpl=fc&in=US&cat=Immigration
Is it possible? Presently both instances of the scroller get the news from CNS site even though I tried to get the content of the second one from a
file or the above site.
I am enclosing the javascript file where I get the news from CNS website. Your help will be very much appreciated. You can view my website at the
following URL and see both the scrollers:
http://www.legalgurus.com
Thank you,
Mukesh Kumar
Attachment: sidebar.js (4.88kb)
This file has been downloaded 379 times
|
|
|
rock
Moderator
Posts: 687
Registered: 4/15/2003
Member Is Offline
|
| posted on 7/7/2004 at 02:34 PM |
|
|
Default browser's security settings makes it impossible to get Tigra Scroller content via 'file' key from different domain (not one
where script is called).
|
|
|
mukesh11
Member
Posts: 19
Registered: 7/6/2004
Member Is Offline
|
| posted on 7/7/2004 at 03:38 PM |
|
|
Ref: Getting different content in two scrollers
Hi,
Thanks for your response. Still, I am unclear as to how to get the content of the following URL in my first scroller.
http://story.news.yahoo.com/fc?cid=34&tmpl=fc&in=US&cat=Immigration
Say, I just want content from the above site and have only one scroller. I don't want the content from CNS News site and have only the scroller
for Immigration News from Yahoo site.
Could you please explain how to get the data from above mentioned URL and not a file?
Thanks for your help,
Mukesh Kumar
|
|
|
rock
Moderator
Posts: 687
Registered: 4/15/2003
Member Is Offline
|
| posted on 7/8/2004 at 07:37 AM |
|
|
You could use server side to get content from another site and paste the content via 'content' key of ITEMS var.
|
|
|
mukesh11
Member
Posts: 19
Registered: 7/6/2004
Member Is Offline
|
| posted on 7/8/2004 at 12:21 PM |
|
|
Ref: Getting different content in two scrollers
Hi,
Thanks again for your response but I couldn't get it still working. Please have a look at the following URL where I have two scrollers:
http://www.legalgurus.com
In the first scroller I want to get the content from CNS News feed which works fine and it gets the data from there. In the second scroller I want to
get the content from a text file. I tried putting the following for second scroller:
'file' : 'data.txt'
It didn't work then I tried:
'content' : 'data.txt'
That too didn't work. I have the file 'data.txt' with some text in it in the same directory. So, it shold get the text for the second
scroller from that file but it doesn't work. Could you please help me here? I want to get the content for the second scroller from a local text
file which you had suggested.
Hoping to hear from you,
Regards,
Mukesh Kumar
|
|
|
rock
Moderator
Posts: 687
Registered: 4/15/2003
Member Is Offline
|
| posted on 7/8/2004 at 12:46 PM |
|
|
Please use up to date version of the product.
|
|
|