When I edit the dynamic content in a fancybox, I want to reload a div on a main page I am trying. The main page is composed of one of the included php files. I thought I would be able to reload it.
I used the .load () function on the 'onClosed' element in the fancy box: $ (". Add_form") .fancybox ({'type': 'iframe ',' OnClosed ': function () {$ ('. Param_middle_down '). Load (' admin_inc_param_call_fav.php ');}});
Just like being able to keep it like this: $ ('. Param_middle_down'). Load ('admin_inc_param_call_fav.php? id = $ i '); Where $ i a variable will be sent while opening Fancybox I do not know if there is anything to call fancy box with any variable?
this $ ('.param_middle_down'). Load ('admin_inc_param_call_fav.php? Id = & lt; php echo $ i; & gt;'); Provided that this should not be a php file, JS file
Comments
Post a Comment