Tank
unread,Jun 15, 2009, 5:13:17 PM6/15/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to fancybox
I want to submit a form and load the returned information into the
fancybox window.
Here is how i have set it up;
i have a hidden DIV, on the page with an image inside that just says
"sending information",
when submitted, the form will call fancybox and then send/return the
data.
fancybox needs to come up and say "sending information" for a moment,
then display the returned data
I can get either the ajax to work, or fancybox, but not both.
I used an <a href="#somediv"> which displays my div, but i cannot get
the ajax to submit off using link. (and stay on the same page, even
with return false)
Trying an <input type="image"> gets the ajax to submit, but i cannot
load my div into fancybox.
is there a way to call fancybox for a given element through
javascript?
I want to call it from my form submit ajax function thingy.
it would be nice if i could do something like:
fancybox('#mydiv');