[BNM] Links, Iframes, RSS and target="_blank"
Dan Eastwell
daneastwell at gmail.com
Tue Jul 3 16:46:39 BST 2007
It's something of a relief you didn't have to use an iframe. Not that
they're the worst thing on earth - you just get problems like not being able
to control part of your page with javascript, because it's another page...
On 7/3/07, Nick Taylor <nick at tangerineworks.com> wrote:
>
>
> Yea - tried that. It wouldn't have it... it simply did nothing - no
> error etc. There was some JS embedded in the xslt that was being invoked
> by the declarations at the top so maybe there was a clash.
>
> Anyway - sorted now. I used the xslt being invoked by the declarations
> as the basis for a new xslt file which meant not having to use an iframe
> at all.
>
>
>
> n
>
>
>
>
> > 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
> >>>>>>
> >>>>>>
> --
>
> 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
>
--
Daniel Eastwell
Portfolio and articles:
http://www.thoughtballoon.co.uk
Blog:
http://www.thoughtballoon.co.uk/blog
More information about the BNMlist
mailing list. Powered by Wessex Networks