ruby on rails - How to Close Fancy box -


i'm using fancybox load/display iframe in fancybox. after action in fancybox, ajax request made responds with:

parent.$.fancybox.close(); 

problem here when runs, there's error (chrome): "failed load resource"

any ideas why, and/or how close fancybox via ajax request w/o error?

a little more technical details. in parent have jquery 1.5 w bunch of plugins, in iframe have jquery 1.5 rails jquery-ujs.

thanks

try making window.parent.$.fancybox.close();.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -