Search DominoPower's 10,675 Lotus-related article archive 
Home
EasyPrint
News details Click here for the RSS feed's XML code. This is not a browser URL.
Articles-only Click here for the RSS feed's XML code. This is not a browser URL.
Twitter Feed Click here for the Twitter feed.
CATEGORIZED VIEWS
Building DHTML views with Internet Explorer
By Matt Holthe

One of the things I don't like about using categorized views from a browser is the fact that every time you expand or collapse a category, a request is made to the server. With the Java view applet, this round trip is eliminated, but there's an initial load time that must be accounted for. Plus, I have some customers who block external Java through their firewall, so the applet is not an answer.

Using DHTML, you can have a categorized view where the categories can be expanded and collapsed on the client, which solves both problems. In this two-part series of articles, we'll look at how it's done.

Obviously, to use this solution you'll need to use a version 4 or higher browser because they support DHTML. You'll also need to have JavaScript enabled. Since Internet Explorer and Netscape handle things differently, I chose to focus my attention on one browser for this series of articles. I chose Internet Explorer because there's some browser event handling which can make the DHTML solution pretty slick. In a widely-fielded solution, you should probably check the browser version and feed a lower resolution set of pages for older and non-enabled browsers.

DHTML overview
First, I'll give the two-minute overview on DHTML. All I'm looking for here is to be able to show and hide parts of the page selectively. To do this, you set a <DIV> tag (division) with a style of "display:none" to hide everything between the <DIV> and </DIV> tags. The absence of the "none" value means everything will be shown. So, we want to have all the category lines shown when the page loads, and all the document lines hidden. Then, when the twisty icon is clicked, we want to show the document lines under that category. Sounds pretty simple, right?

In this article, we'll start with a view with only one category. We'll add a second category in part two of this series. Set up a form with fields called Category1 and Subject. Both are text fields. Then create some documents that'll fall into a couple different categories. You can create a Notes view with the first column categorized on Category1 and the second column with a value of Subject just to see what things will look like.

Build the DHTML view
Now, let's build the DHTML view. First, set up the view (call it DHTMLView1) to have the view contents be HTML on Web access (the beanie tab). This means Domino won't generate any HTML for us, which is what we're going to want. Otherwise, Domino would put links in for each twisty, but we want those to be controlled on the client. Next, make sure that the setting for "collapse all when view is opened" (on the info tab) is not checked. Otherwise, all the rows in the view won't be sent to the browser, and we need them all sent.


1  ·  2  ·  3  ·  4  ·  Next »
Other articles you might like
Home > Internet Technologies > JavaScript (13 articles)
   Sorting your Domino views with JavaScript
   Give your Domino views life with DHTML
   Using dynamically generated HTML to thwart spam email address harvesting
Home > Tips & Techniques (95 articles)
   When the debugger won't debug hidden code that isn't hidden
   What to do if the LotusScript debugger won't single-step over code
   Troubleshooting an OpenSuse Notes install
Home > Internet Technologies > HTML and CSS (15 articles)
   Using a reusable code approach to HTML select option lists
   One reader's opinion on HTML mailing
   Keep lookin' good with Cascading Style Sheets
Get Weekly Email Updates
Subscribe to our regular weekly email newsletter. It's packed with tips, reviews, deep analysis, and the latest news.
 
Recent DominoPower Articles
What to look for in a Domino-based document management solution
Understanding Domino.doc end-of-life options
When the debugger won't debug hidden code that isn't hidden
What to do if the LotusScript debugger won't single-step over code
Top 10 ways to launch and build a Lotus consulting practice (with a little help from the Beatles)
Troubleshooting an OpenSuse Notes install
Incident report: denial of service attack against ConnectedPhotographer.com
Latest Lotus Headlines
SnTT - Enabling ALL the bells and whistles!
Tivoli Data protection causes Domino to crash
Fun when running DB2 CLP scripts
Introducing Flippr, the easy way to admin Quickr
DXL and fake security
Using search forms in IBM Workplace Collaborative Learning 2.7
Schmidt, Freed, and Gering on the OVF Toolkit
>> Read all the news
More from the ZATZ journals
Computing Unplugged: Eight steps to successful and reliable home backups
David Gewirtz Online: CNN commentary and analysis
OutlookPower: Can Outlook run when it's not running (and other mysteries)?
-- Advertisement --

AUTOMATE LOTUS NOTES USER ID MANAGEMENT
ID Manager 4.5 from HELP Software provides a new level of automaton for managing Lotus Notes IDs. ID Manager lets Lotus Notes administrators get out of the business of creating and managing user IDs. Use our ROI calculator to see how quickly ID Manager will pay for itself.

Learn more about HELP Software products
-- Advertisement --

Want The Top Lotus Experts By Your Side Without Paying Hefty Consulting Fees? Look No Further.
Like having a team of consultants by your side -- ones who have all the answers and never make mistakes -- THE VIEW gives you immediate access to field-tested instruction, guidance, and best practices from the brightest Lotus professionals around.

Join your peers who realize their Lotus technology is too important to let people from blogs and forums tell them how they should implement it, run it, and use it. THE VIEW is where only the world's top Lotus experts provide validated support to you on a weekly basis to ensure you work more efficiently, get more out of your Lotus technology, and stay clear of costly mistakes.

Check out the new instruction, tips, and best practices added to THE VIEW this week.

ZATZ Home  ·  News  ·  Back Issues  ·  Credits/Trademarks ·  Link To Us
Copyright © 1998-2009, ZATZ Publishing. All rights reserved worldwide.
Editor's Login