html
<table> <tr> <td>1</td> <td>countryname</td> <td> <div class="action"> <a class="edit-country" href="/edit-country?countryid=1"></a> <a class="delete-country" href="/delete-country?countryid=1"></a> </div> </td> </tr> </table>
script
$(".edit-country").fancybox({ type: "inline", modal: true, closebtn: false, helpers: { title: null } });
i want if clicked on edit
opened popup content gets href
. takes me page.
it open @ same page if use type='ajax'
didn't initialize document.ready
method of edit-country
page.
is there way opened @ same page , initialize document.ready
method of edit-country
page?
when use different page, need set type 'iframe'. inline used when want show in popup window inside page div/panel
$(".edit-country").fancybox({ type: "iframe", modal: true, closebtn: false, helpers: { title: null } });
Comments
Post a Comment