[Zope] newbie and frames

Greg Ward gward@cnri.reston.va.us
Tue, 14 Dec 1999 11:14:17 -0500


On 14 December 1999, Anthony Baxter said:
> Sure. This is just a HTML thing, not a Zope thing. You'll need to put
> bits of Javascript into your pages to control how the browser behaves
> when you click on a frame link. Normally in a frameset, a link will
> only replace the current frame's contents - you need to supply an
> onClick argument to your tags in the HTML to do what you want. Hm, there's
> a bunch of good sites and books out there dealing with this... try
> looking over at the documentation on netscape's web site.

Actually, for the simple case of making a hyperlink load a document in
another frame, it's probably cleaner to use the "target" attribute of
the <a> tag, eg.

  <a href="foo.html" target="frame_name">

But you can't go very far with frames before you need to whip out
JavaScript.  As usual, I recommend the relevant O'Reilly titles:

  HTML: The Definitive Guide (Musciano & Kennedy)
  JavaScript: The Definitive Guide (Flanagan)

If you're doing Web development without these on your desk, then either
you have a better memory than me, or you're missing out.

        Greg
-- 
Greg Ward - software developer                    gward@cnri.reston.va.us
Corporation for National Research Initiatives    
1895 Preston White Drive                           voice: +1-703-620-8990
Reston, Virginia, USA  20191-5434                    fax: +1-703-620-0913