[BNM] Links, Iframes, RSS and target="_blank"

Nick Taylor nick at tangerineworks.com
Tue Jul 3 14:51:36 BST 2007



Yea - I struggled long and hard with that one. Javascript was refusing 
to play.


> Why not use a javascript solution? Find the links in the iframe and add a
> click event to them, then a window.open method for that event. You could
> always use target="_top" for the remaining links to get them to open in the
> parent window for non-javascript users.
> 
> I'm guessing the problem is more involved than that though, or else you
> wouldn't've asked...
> 
> On 7/3/07, Nick Taylor <nick at tangerineworks.com> wrote:
>>
>>
>> Not sure if you can do that to a raw xml feed... I've got around it in
>> any case by borrowing then adapting the xslt file that was mentioned at
>> the top of the feed.
>>
>>
>>
>> Nick
>>
>>
>>
>>
>>> Not entirley sure about the scenario but seeing as there are iframes
>>> involved - how about a touch of <base target="_blank">
>>>
>>>
>>> On 7/3/07, Nick Taylor <nick at tangerineworks.com> wrote:
>>>>
>>>> Hello folks
>>>>
>>>>
>>>> I've been asked to pull an rss feed into an iframe... the rss feed is
>>>> filled with embedded HTML to the extent that it's not really possible
>> to
>>>> do anything with it with XSLT... so it sits in it's raw form in an
>> iframe.
>>>>
>>>> So... the links etc are interpreted by the browser... and open in the
>>>> same window, which in an iframe, doesn't really work.
>>>>
>>>> Does anyone know how I can get the links to open in a new window?
>>>>
>>>> This is the feed:
>>>>
>>>> http://www.broadcastnow.co.uk/BroadcastnowJobsRSS.aspx?JobCategory=161
>>>>
>>>>
>>>>
>>>> Nick
>>>>
>>>> --
>>>>
>>>> BNM Subscribe/Unsubscribe:
>>>> http://www.brightonnewmedia.org/options/bnmlist
>>>>
>>>> BNM info/archives:
>>>> http://www.brightonnewmedia.org/
>>>>
>>>> BNM powered by Wessex Networks:
>>>> http://www.wessexnetworks.com
>>>>
>>>
>>>
>> --
>>
>> BNM Subscribe/Unsubscribe:
>> http://www.brightonnewmedia.org/options/bnmlist
>>
>> BNM info/archives:
>> http://www.brightonnewmedia.org/
>>
>> BNM powered by Wessex Networks:
>> http://www.wessexnetworks.com
>>
> 
> 
> 



More information about the BNMlist mailing list. Powered by Wessex Networks