Use the links on the left to see the difference!
The solution is to remove the twisties and make the category text the link so it expands or collapses when selected.
This is a two step process:
1) "Steal" the twistie link and place it on the category text.
2) Hide the twisties from the user.
Twistie links are calculated for each view and for each category that Domino produces. The twistie links change from view to view. The HTML source for a twistie link reveals the following format:
The twistie will still be displayed at this point possibly causing confusion. There is no way to get rid of the twistie as Domino places it there automatically. Also, remember in the step above we used the link from the twistie to create the category link, so, we still need it on the web page. The next best thing is to hide it.
To do this you will replace the twistie image with a very small transparent GIF image. For the purposes of this tip, the transparent image is called clear.gif. You will have to create the clear.gif file and place it in the image resources for the database. Create it as a 1 X 1 pixel image with a transparent background. (You can also get it from the link supplied below.) The code below will search through the images in the web page (the view) looking for the collapse.gif and the expand.gif that Domino supplied for the twisties. Place the following code in the JS Header event of either the view template for the view or in a form where the view is embedded:
To download the clear.gif file use the link on the left.
This tip was supplied by Kevin Marshall, a noted lecturer and consultant on Domino web applications. Kevin is also the course instructor for TLCC's newest course, Beginner R5 Domino Web Application Development. This course builds on your Notes development skills and adds the knowledge and skills you need to unleash Domino as a world class web development platform to create cool dynamic web sites.
Kevin can be reached at his web site.
Click here for more information on the web application development course.