Fancybox Jquery - 将变量传递给iframe(

时间:2014-10-18 02:48:05

标签: javascript jquery

我正在尝试通过Jquery找到传递和检索变量的正确方法。我猜这是相当直接的,虽然我只是不知道如何构建逻辑。

base.html文件:

// Open Lightbox iframe Function
$(document).ready(function() {
$('a.fancybox').fancybox({
});
});

<a class="fancybox fancybox.iframe" 
   href="iframe.html" id= "1" 
   name="paul" 
   height="180cm" 
   brothers="2"> Show Iframe </a>

然后在我的iframe.html中,我想检索并回显/打印这些资产。

e.g。

<p>Table id is: $id</p>
<p>The Person name is: $name </p>
<p>Their height is: $height  </p>
<p>The number of brothers they have is: $brother </p>

0 个答案:

没有答案
相关问题