Proposed Addition to Collapsible Set

Proposed Addition to Collapsible Set

Basically my problem was trying to have a dynamic collapsible set that BEFORE expansion would see if content was loaded, and if not would inject it using AJAX.  The only thing I have been able to confirm working is the bind event of expand and collapse.

What I would like to see added is a "beforeexpand" or "click".  The problem as it is now the expand fires showing a blank space before filling with content.  In a perfect world after a user clicks we could do whatever check we wanted and then the default action could continue.

I appologize if we can already do this and it is just not documented well.

I created a fiddle showing the issue (without ajax):  http://jsfiddle.net/mfumm/