Post preview - Passing data with AJAX and Fancybox

后端 未结 3 763
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-30 13:09

I\'m trying to do a post preview, which will appears in a new Fancybox iframe. Since couple of weeks I\'m looking for some help or best practices, but I can\'t find it.

3条回答
  •  感情败类
    2020-11-30 13:30

    I have tried a more interesting way with fancybox that works,

    in the fancybox page

    var myvar;
    $(document).ready(function(){
        myvar = parent.$("#formvariwant").val();
    });
    

提交回复
热议问题