Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New to the CF scene
    Join Date
    May 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post how to make rss feeds open in google ajax API

    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/dhtmltu...jaxfeed3.shtml

    please somebody help
    Last edited by drankur; 05-27-2009 at 05:29 AM.

  • #2
    New to the CF scene
    Join Date
    May 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    can anybody please help

  • #3
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts
    In the JavaScript there is a line like this:
    Code:
    var itemtitle="<a href=\"" + thefeeds[i].link + "\">" + thefeeds[i].title + "</a>"
    You need to add target='_blank' to it.

    Eric
    Tech Author [Ajax In Action, JavaScript: Visual Blueprint]

  • #4
    New to the CF scene
    Join Date
    May 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    thsnk

    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

  • #5
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts
    place it after the a and before the href make sure you have spaces.
    Tech Author [Ajax In Action, JavaScript: Visual Blueprint]

  • #6
    New to the CF scene
    Join Date
    May 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thanks for helping.... it solved my BIG problem


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •