# Perl code here print "Hello world!";
//This gets called when the value of the slider changes
onSliderChange = function()
{
var val = transition_sld.getIntValue();
transition_txf.text = val;
myAccordion_acp.setTransitionTime(val);
}
//set the change handler for the slider
transition_sld.setChangeHandler("onSliderChange");
//This will sort in ascending order
onSortASCPress = function()
{
myAccordion_acp.sortItemsBy("label");
}
//this will sort in descending order
onSortDESCPress = function()
{
myAccordion_acp.sortItemsBy("label", "desc");
}
//initialize values
onSliderChange();
Posted by modius at 06:54 PM | Permalink
Trackback: http://blog.daemon.com.au/cgi-bin/dmblog/mt-tb.cgi/113

