fancyapps/fancyBox — Issue #121: Ajax Response Manipulation
Author: JonTheWhite
Created: 2012-01-27 19:56:37+00:00
State: open

Summary: The afterLoad event needs access to the F.coming object. I think there is a typo on line 674, where it is sending F.current (which is null) to the event instead of F.coming. If it is changed to F.coming, then the autoLoad handler can change the content before it is used.

I am using ajax and I need to manipulate the ajax response before it gets added to the fancybox-tmp for auto sizing. I tried sending my own ajax.success, but fancybox overrides that. So I tried using the afterLoad event since it triggers before the autosizing. However, the was no way for me to access the F.coming.content to manipulate it. I believe a variable typo is to blame, see above.