is there a way to get a fancybox (http://fancy.klade.lv/) or any other lightbox from submitting a FORM (with an image button)?
HTML looks like this:
I just had to do this. Here's how I went about it.
$('#elementid').fancybox({
onStart : function() {
$.post($(this).attr('href'), $('#formid').serialize());
}
});
That way you can submit the form and call the fancybox all in one shot. It does submit the form ajax style. The "submit" button needs to be in an tag.
Hope that helps.