Differences between revisions 3 and 4
Revision 3 as of 2008-02-12 21:04:47
Size: 731
Editor: RyanSkow
Comment:
Revision 4 as of 2009-09-20 23:20:46
Size: 731
Editor: localhost
Comment: converted to 1.6 markup
No differences found!

This page shows an example of how to do something when the selected items are added/removed/reordered in a Palette.

Anything can happen in your 'doMyStuff' method including submitting an Ajax request to do some calculations based on the contents of the select list or displaying other details related to what has been selected.

<script type="text/javascript">

  var _oldUpdateHidden = Tapestry.Palette.prototype.updateHidden;
  Tapestry.Palette.prototype.updateHidden=function()
  {
    var doOldStuff = _oldUpdateHidden.bind(this);
    var doNewStuff = doMyStuff.bind(this);
    
    doOldStuff();
    doNewStuff();
  }

  function doMyStuff()
  {
    // your stuff goes here
  }

</script>

Tapestry5PaletteEvents (last edited 2009-09-20 23:20:46 by localhost)