I’m using Boxy to display a modal window to edit privacy settings.
The data of the dialog will be loaded by an ajax-call.

privacy_edit

For closing the dialog, the following code is described in the boxy api, but it doesn’t run for me.
It runs for a “normal” boxy window, but not for an ajax-window.

Close dialog.

My solution is, to “link” the modal-window to an DOM element. You can do this, by using the actuator option.
In this example, the DOM element is a link with the id “address_name” and it opens the modal-window.


Nur für mich

For closing the modal-window, you can get the boxy object with Boxy.linkedTo() and can close it with hide() method.

function boxy_hide(obj_name){
  Boxy.linkedTo($('#' + obj_name)[0]).hide();
}

Helpful links:

Trackback

only 1 comment untill now

  1. Onur Bozkurt @ 2010-05-20 11:56

    Great tip. Thanks a lot. You saved my life.

Add your comment now

Switch to our mobile site