Manual ajax request with Fancybox #147
Unanswered
asmith20002
asked this question in
Q&A
Replies: 2 comments
-
Hi, Or just simply 1) display empty |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks for the answer. On a side note: would you consider returning fancybox object in those functions so chaining would be possible? This code:
could turn into:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I need to call my own ajax function and process the success data and then view the result with Fancybox.
Before firing up my own Ajax call, show the fancybox spinner:
That doesn't work because no fancybox has been initiated at that point. I tried calling fancybox with an empty container:
After that point, I can fire up my own ajax and process data. Once I have the data:
I did the code above by reading the code on Github. Thought maybe I've missed some obvious and more convenient way. Is that the proper way to do it?
Beta Was this translation helpful? Give feedback.
All reactions