Abdallah wrote:
> Hey there,
> yes I'm using jQuery latest...
> Cutting down further is the way, but that's the code after 5 hours of 
> debugging at 3AM (=
>
> I had another question though, I need to pass back information (such 
> as the link/button that was pressed) to the caller (in the OnClose 
> callback). Any ideas on how to do that ?
Each callback is passed the jqModal "hash" for a window. The hash 
consists of;
      -----------------------------------
      w: (jQuery object) The window element. e.g. '#example' in the 
sample above
      c: (object) The config object (holds the above passed parameters)
      o: (jQuery object) The overlay || iframe element(s)
      t: (DOM object) The triggering element

So, to access the "trigger" you would use something like;

function closeCallback(h) {
    var trigger = h.t;
    // evaluate/process based off triggering element
    h.w.jqmClose();
}


~ Brice

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to