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

how can facebox modal window be completely closed?

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

Expand|Select|Wrap|Line Numbers
  1.  
  2. $.facebox('<img src="loading.gif">');
  3.  
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.