[Zope] frames in Zope

Small Business Services toolkit at magma.ca
Fri Feb 20 07:03:34 EST 2004


<snip>
> If there are folders in one folder, I want them to be listed
> in one frame. And whenever the index_html method is called
> (wjich seems to happen automatically) I want its contents to
> appear in a different frame.
>
> Can I call a method in DTML and assign a target frame?
>
> like: <dtml-var index_html> target=frame ... ????
>
> I'd be very thankful for any help! Thank you very much!!!

This is an html problem not a zope problem.  You need to set up your frame
structure and then call a dtml method to display data within the frame(s).

For Example:

create a dtml method called index_html containing the following html:


      <iframe name="displaywindow1" scrolling="auto" marginheight="0"
marginwidth="0"
           frameborder="0" height="250" width="100%" align="center"
src="<dtml-var dtmlmethod1>">
      </iframe>

      <iframe name="displaywindow" scrolling="auto" marginheight="0"
marginwidth="0"
           frameborder="0" height="250" width="100%" align="center"
           frameborder="0" height="250" width="100%" align="center"
src="<dtml-var dtmlmethod2>">
      </iframe>


This creates two separate frames and runs a different dtml method in each
one.

For more info on frames have a look at:

http://www.w3schools.com/default.asp


HTH

Jonathan




More information about the Zope mailing list