how can facebox modal window be completely closed?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • samvb
    New Member
    • Oct 2006
    • 228

    how can facebox modal window be completely closed?

    In my JS, I am having this function that opens a facebox modal:

    Code:
    $.facebox('<img src="loading.gif">');
    After my ajax process completes, the modal is closed.

    Now, i have a link on the same page with rel="facebox" attribute. If I click the link, a loading.gif appeas instead of the file specified in href attribute. If I reload the page, the link does open the target link in the href attribute.

    I looked at the facebox page but found nothing. the trigger.close() seems just to hide it, instead of destroying that particular instance fully.

    Any tips?
Working...