DHTML Popup menu bar built from content
Hi, I have deeply tried to build a DHTML/Javascript menu bar based on the Zope content rather than having a fixed (hard coded in javascript) menu content. Have some of you experiences in building such stuffs ? Thanks in advance for your tips --Gilles --__--__-- Pilot Systems http://www.pilotsystems.net 66, rue de Provence 75009 Paris Tel (direct): +33 1 44 53 25 93 Tel (standard): +33 1 44 53 05 55 Fax : +33 1 44 53 04 44 mailto:gilles@pilotsystems.net
I have deeply tried to build a DHTML/Javascript menu bar based on the Zope content rather than having a fixed (hard coded in javascript) menu content.
I generally try to stay away from the monstrosity of DHTML, and the quirkiness of JavaScript. But building popup or whatnot menus from CSS isn't very bad at all. The content generation is especially easy. You can very simply write a tree-walker in Zope to generate something like: <div id="menubar"> <div class="toplevel">Top Level A <span class="item">Content</span><span class="item">Content2</span> </div> <div class="toplevel">Top Level B <span class="item">Content</span><span class="item">Content2</span> </div> </div> (or if you really want to be clever, use unordered lists and anchor hrefs to look better in non-style browsers) and style the id of 'menubar', and classes 'toplevel', 'item', and maybe 'expandable item' to get a fully hierarchical popup menu system. Take a look at http://devedge.netscape.com/ for an example of the latter. There are other CSS sites around that would love to show you how also. --jcc
At 09:56 AM 3/12/2003, Gilles Lenfant wrote:
I have deeply tried to build a DHTML/Javascript menu bar based on the Zope content rather than having a fixed (hard coded in javascript) menu content.
OK....
Have some of you experiences in building such stuffs ?
Sure.
Thanks in advance for your tips
My best advice is to code up a static version first. Test that it works outside of Zope before bothering to make it dynamic. All Zope does (or should do) is insert values at different points in your CSS or JavaScript code. The difficult part here is getting the DHTML code right... once you've got that refined, Zope will happily serve it up for you and swap stuff in or out as required. HTH, Dylan
I've written a product that takes over these tasks fluently, based on a licensed javascript menu, that I code-named as "Pilot" (before I got to know a zope-related company, Pilot Systems, existed) ;) I'd like to release it but as it uses this licensed stuff, I think I can't, at least in its current version. Anyway I'm planning to release it independently of the javascript part, so that a user who already owns the code could upload it and then to perform the bindings to the product, manually. For more information, follow the link: http://www.zope.org/Members/ausum/Pilot/index_html Ausum ----- Original Message ----- From: "Gilles Lenfant" <gilles@pilotsystems.net> To: <zope@zope.org> Sent: Wednesday, March 12, 2003 12:56 PM Subject: [Zope] DHTML Popup menu bar built from content
Hi,
I have deeply tried to build a DHTML/Javascript menu bar based on the Zope content rather than having a fixed (hard coded in javascript) menu content.
Have some of you experiences in building such stuffs ?
Thanks in advance for your tips
--Gilles
--__--__--
Pilot Systems http://www.pilotsystems.net
66, rue de Provence 75009 Paris Tel (direct): +33 1 44 53 25 93 Tel (standard): +33 1 44 53 05 55 Fax : +33 1 44 53 04 44
mailto:gilles@pilotsystems.net
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Gilles Lenfant wrote:
I have deeply tried to build a DHTML/Javascript menu bar based on the Zope content rather than having a fixed (hard coded in javascript) menu content.
Have some of you experiences in building such stuffs ?
Yes. I used HierMenus, and it worked as advertised. But those kind of menu's are nearly allways the wrong type of navigation on a site. They only work on sites that are in fact applications. Like Intranets, regards Max M
participants (5)
-
Ausum Studio -
Dylan Reinhardt -
Gilles Lenfant -
J Cameron Cooper -
Max M