Easy Fancybox and Ajax calls.
-
I am using Easy Fancybox and iframes to display Gravity Forms content. The content shows up properly in the lightbox but things seem to be not working properly when I use Gravity Forms events (gform_after_submission).
I use the submission event to call a javascript function which calls an ajax function to save data to the database. The event code calls the javascript properly, but the ajax call to the php code (from the page that I launch the fancybox from) never fires.
When the fancybox is loaded, will that change the way ajax functions? Is it possible that the fancybox is considered a different page than the originating page and therefor the code is “missing” when it tries to call it?
I’m at a loss as to why this isn’t working … the code works when I fire it directly from a button. Is there a way to force the fancybox to close prior to calling the javascript code right now, the box hangs open until the attempt to make the ajax call is completed.
Thanks for the help.
- The topic ‘Easy Fancybox and Ajax calls.’ is closed to new replies.