PDA

View Full Version : how to make rss feeds open in google ajax API


drankur
05-27-2009, 05:25 AM
hello all,
i am using google ajax to display rss feeds. but i want to make the feeds open in new window.
i searched the google code found that setLinkTarget(LINK_TARGET_BLANK) has to be used.
but don't know where to use it ....

i am using the following rssdisplayer.js script
http://www.javascriptkit.com/dhtmltutors/googleajaxfeed3.shtml

please somebody help :confused:

drankur
06-04-2009, 07:52 AM
can anybody please help

A1ien51
06-04-2009, 01:32 PM
In the JavaScript there is a line like this:
var itemtitle="<a href=\"" + thefeeds[i].link + "\">" + thefeeds[i].title + "</a>"


You need to add target='_blank' to it.

Eric

drankur
06-04-2009, 04:26 PM
thanks for replying but i didn't know much about javascript.
can u plz provide me the full edited line . i would be deeply thankful

A1ien51
06-04-2009, 04:57 PM
place it after the a and before the href make sure you have spaces.

drankur
06-09-2009, 05:01 PM
thanks for helping.... it solved my BIG problem :)