I am trying to use the Fancy Box 2 plugin (fancyapps.com).
All is well except I cannot figure out how to include a DOM element properly.
I am calling this after a form submit that is returning information via ajaxform and validation. documentation says to use the following for dom.
//DOM element:
$.fancybox( $("#inline"), {
title : 'Custom Title'
});
Now if i create an id on the page in a div it doesn't pull it. Also the div shows.
I tried using the other method (custom object)
$.fancybox({
href: 'example.jpg',
title : 'Custom Title'
});
and it does not seem to work with php files. I am trying to populate the lightbox with information from a php file but i get error loading content.