Disabling the link on the sub title

7 views
Skip to first unread message

Zigma Solutions

unread,
Nov 14, 2009, 2:30:55 PM11/14/09
to Google AJAX APIs
Hi Team,

In the below code block, it's news feed. I want disable the link for
title.

For Eg; 'TMZ' is the title for that news. How do I disable link only
for this title?

<script type="text/javascript">
function LoadDynamicFeedControl() {
var feeds = [
{title: 'TMZ',
url: 'http://www.tmz.com/rss.xml'
}];
var options = {
stacked : false,
horizontal : true,
title : ""
}
...................
Thanks,

Sumesh

Vision Jinx

unread,
Nov 20, 2009, 8:28:42 PM11/20/09
to Google AJAX APIs
Did you try omitting the url param then?

Zigma Solutions

unread,
Nov 21, 2009, 1:40:23 PM11/21/09
to Google AJAX APIs
I have tried omitting url param and title as well. But I'm getting JS
error and displaying nothing.

Thanks,

Sumesh

Jeremy Geerdes

unread,
Nov 21, 2009, 4:12:26 PM11/21/09
to google-ajax...@googlegroups.com
To remove the link from the subtitles of the Dynamic Feed Control,
you're going to have to edit the code so that the links are not added.
To provide more specific help, you're going to need to be more
specific which title(s) you're wanting to not link. Namely, are you
looking to remove the links from the entry titles or the feed titles?

Jeremy R. Geerdes
Effective website design & development
Des Moines, IA

For more information or a project quote:
http://jgeerdes.home.mchsi.com
http://jgeerdes.blogspot.com
http://jgeerdes.wordpress.com
jgee...@mchsi.com

Unless otherwise noted, any price quotes contained within this
communication are given in US dollars.

If you're in the Des Moines, IA, area, check out Debra Heights
Wesleyan Church!

And check out my blog, Adventures in Web Development, at http://jgeerdes.blogspot.com
!
> --
>
> You received this message because you are subscribed to the Google
> Groups "Google AJAX APIs" group.
> To post to this group, send email to google-ajax...@googlegroups.com
> .
> To unsubscribe from this group, send email to google-ajax-searc...@googlegroups.com
> .
> For more options, visit this group at http://groups.google.com/group/google-ajax-search-api?hl=
> .
>
>

Zigma Solutions

unread,
Nov 24, 2009, 1:34:53 PM11/24/09
to Google AJAX APIs
Thanks for your reply Jeremy. Please find below is the script I used.

In this, you can find the feed title as Kerala, National, Business,
Sport, Entertainment, World, Gulf Countries. Those links directory
going to the Google News's sections. So I need to disable links on
that. Let display only the Title but without linked. Is that be
possible?

Thank you again.

Sumesh

----------------------------------------------------------------
<script type="text/javascript">
function LoadDynamicFeedControl() {
var feeds = [
{title: 'Kerala',
url: 'http://news.google.com/news/section?
cf=all&ned=ml_in&topic=kl&ict=ln&output=rss'
},
{title: 'National',
url: 'http://news.google.com/news/section?
cf=all&ned=ml_in&topic=iekl&ict=ln&output=rss'
},
{title: 'Business',
url: 'http://news.google.com/news/section?
cf=all&ned=ml_in&topic=b&ict=ln&output=rss'
},
{title: 'Sports',
url: 'http://news.google.com/news/section?
cf=all&ned=ml_in&topic=s&ict=ln&output=rss'
},
{title: 'Entertainment',
url: 'http://news.google.com/news/section?
cf=all&ned=ml_in&topic=e&ict=ln&output=rss'
},
{title: 'World',
url: 'http://news.google.com/news/section?
cf=all&ned=ml_in&topic=w&ict=ln&output=rss'
},
{title: 'Gulf Countries',
url: 'http://news.google.com/news/section?
cf=all&ned=ml_in&topic=awkl&ict=ln&output=rss'
}];
var options = {
stacked : true,
horizontal : false,
numResults : 10,
displayTime : 5000,

title : "Today's Main News"
}

new GFdynamicFeedControl(feeds, 'feed-control', options);
}
// Load the feeds API and set the onload callback.
google.load('feeds', '1');
google.setOnLoadCallback(LoadDynamicFeedControl);
</script>

----------------------------------------------------

On Nov 22, 1:12 am, Jeremy Geerdes <jrgeer...@gmail.com> wrote:
> To remove the link from the subtitles of the Dynamic Feed Control,  
> you're going to have to edit the code so that the links are not added.  
> To provide more specific help, you're going to need to be more  
> specific which title(s) you're wanting to not link. Namely, are you  
> looking to remove the links from the entry titles or the feed titles?
>
> Jeremy R. Geerdes
> Effective website design & development
> Des Moines, IA
>
> For more information or a project quote:http://jgeerdes.home.mchsi.comhttp://jgeerdes.blogspot.comhttp://jgeerdes.wordpress.com
> jgeer...@mchsi.com
>
> Unless otherwise noted, any price quotes contained within this  
> communication are given in US dollars.
>
> If you're in the Des Moines, IA, area, check out Debra Heights  
> Wesleyan Church!
>
> And check out my blog, Adventures in Web Development, athttp://jgeerdes.blogspot.com
Reply all
Reply to author
Forward
0 new messages