History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: SAK-10924
Type: Task Task
Status: Closed Closed
Resolution: Fixed
Priority: Critical Critical
Assignee: Jim Eng
Reporter: Clay Fenlason
Votes: 0
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
Sakai

Dojo widget for action menu dropdowns

Created: 26-Jul-2007 11:28   Updated: 11-Jun-2008 09:21
Component/s: Resources
Affects Version/s: 2.4.0, 2.4.1
Fix Version/s: 2.5.0

Time Tracking:
Not Specified

2.4.x Status: None
2.5.x Status: None


 Description  « Hide
The Javascript for the on-hover dropdowns in Resources should be replaced by a more usable, accessible dropdown widget recommended by the Fluid project:

http://download.dojotoolkit.org/release-0.9.0beta/dojo-0.9.0beta/dijit/tests/form/test_Button.html

Colin should be conferred with, but the download location is here as well:

http://download.dojotoolkit.org/release-0.9.0beta/



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Jim Eng - 30-Aug-2007 11:02
Colin, Any advice on using the dojo widget in place of the current widget used for the "add" and "actions" menus in resources?

Colin Clark - 31-Aug-2007 19:46
Hi Jim,

Definitely worth using the 0.9 release now that it's out, rather than the beta:

http://download.dojotoolkit.org/release-0.9.0/

Colin Clark - 04-Sep-2007 14:15
Another bit of advice when using Dojo: instantiate your widgets programmatically.

Dojo's default model involves adding "dojo" attributes to the elements in your document as place-holders. At runtime, Dojo will scan the whole DOM looking for these attributes and instantiating the actual widgets itself. In a portal environment, this can be problematic. Our approach has been to instantiate Dojo widgets programatically. Here is some documentation on how to do so:

http://tinyurl.com/28ljvt

In short, it's as simple as calling the standard widget constructor, passing it: 1) any parameters to your widget, including its labels and so on, and 2) the id of the DOM node to which it should be attached. Pretty straightforward. To invoke this, we tend to include a <script> tag in the document immediately following the DOM element that calls a single-line initialization method. For the Lightbox, it looks something like this:

<script>
   initLightbox(params, "lightbox");
</script>

In the case of the Resources tool, since you'll have potentially many buttons on the page at once, you may want to roll the instantiation of them all into a single call.

Anyway, this approach of programmatically instantiating Dojo widgets and using a simple script tag to do so will ensure that your use of Dojo is self-contained and portal-friendly.

Here is some more documentation on the Dojo button-related widgets:

http://tinyurl.com/25p6qe

Jim Eng - 18-Sep-2007 07:28
This is intended for 2.5.0

Megan May - 27-Sep-2007 17:33
Updating fix version to 2.5.0.002 for 2nd tag of QA cycle

Megan May - 06-Feb-2008 11:59
Tasks for 2.5.0 have been completed. We're nearing the end of the QA cycle and A lot of general regression testing has been going on for the past few months - the changes have likely been reviewed via this method of testing