Gadgets in Sakai2
If you are thinking of Sakai 3, then this supports Google Gadgets and Sakai Widgets, so work using this approach will be appropriate inside Sakai 3. If you are really thinking about functionality in Sakai 3, then the Sakai Widget approach will give you a much better user experience since it does not use any iframes.
When you develop a widget that you want to use inside Sakai, there are some general best practices on how to write it.
- It's always a good idea to keep your CSS external. This makes it faster when you load your widget several times, it is more manageable and it is easier to convert you widget from Sakai 2 to 3.
- (put the following code in your head tag)
<link type="text/css" href="/devwidgets/filemanager/css/filemanager.css" />
- For accessibility purposes always use labels in combination with a input type "text", "checkbox", ... and with textareas.
<input type="checkbox" name="filemanager_option_public" id="filemanager_option_public" /> <label for="filemanager_option_public">Public</label>