Results 1 to 3 of 3

Thread: RSS/XML Experts Please Advise...

  1. #1
    Join Date
    Feb 2007
    Location
    Michigan
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default RSS/XML Experts Please Advise...

    1) RSS Display Boxes (Example 2)

    2) http://www.dynamicdrive.com/dynamici...ybox/index.htm

    Hello,

    PROBLEM / QUESTION
    On my test website, http://www.ultimatesportsbets.com/Beta083D.htm, I have integrated the rss display box script from dynamic drive...

    The problem is, when someone clicks on one of the news topic links displayed in the feed, it opens a new page in the same window... I would like to know if it is possible to open the links in a new window, but what I would prefer is that they open in a new page on my server in an iframe.

    This may not be the best solution but from my knowledge this is the best way I can come up with without forcing visitors out of my website if they want to read a news article....

    If anyone could provide me with some input on the situations described above I would really appreciate it...

    Thanks,

    StivenUSB
    Last edited by StivenUSB; 02-28-2007 at 02:00 PM.

  2. #2
    Join Date
    Feb 2007
    Location
    Michigan
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    The PHP code, when entering the name or names of the websites that display the RSS, is in the following format:

    "http://www.whatever.com/rss",
    "http://whatever2.com/rss/whatever",

    To open the links in a new window, normally, I could set the target tag to "_blank" but in this case it is a bit strange as tags are not exactly applicable. I am Semi new to using PHP and if anyone has a tip on how to do this I would really appreciate his/her input.

    Thank you,

    StivenUSB
    Last edited by StivenUSB; 02-28-2007 at 02:01 PM.

  3. #3
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    What I would try is setting the base target on the page to the name of the iframe, or to _blank for a new window (goes in the head just after the title and any meta tags):

    HTML Code:
    <base target="_blank">
    This requires that you set the target for other links on the page, if you don't want them opening in the base target, ex:

    HTML Code:
    <a href="index.php" target="_self">Home</a>
    for a typical link to a home page opening in the same window.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

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