I need:
- On clicking a link, open up a fancybox on an iframe (faqs.htm)
- On clinking some link in the faqs.htm, I need to close this fancybox and open up a new one (new.htm) in iframe
If showNew() is the function to do this, my code is
function showNew()
{
parent.$.fancybox.close();
parent.window.setTimeout(“parent.$(‘#new’).fancybox().trigger(‘click’)”,500);
}
What am I missing here ?
You don’t need to close the previous fancybox first.
This should do the trick :