By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,060 Members | 1,260 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,060 IT Pros & Developers. It's quick & easy.

how can facebox modal window be completely closed?

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

Expand|Select|Wrap|Line Numbers
  2. $.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?
Feb 17 '15 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.