[BNM] Links, Iframes, RSS and target="_blank"
Dan Eastwell
daneastwell at gmail.com
Tue Jul 3 15:38:03 BST 2007
Really? It you couldn't getElementsByTagName("a") within the iframe from
outside it? What happened? I suppose it's another 'document' object. And
it's not within the document that you're controlling.
Could you not create another object to pop the iframe document in? (I'm
thinking out loud here and am not responsible if I'm talking
pseudo-technical nonsense..)
Does the iframe object have innerHTML?
On 7/3/07, Nick Taylor <nick at tangerineworks.com> wrote:
>
>
>
> 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
> >>>>
> >>>>
> >>>>
More information about the BNMlist
mailing list. Powered by Wessex Networks