Javascript 在子iframe内调用的页面在父页面中触发事件

Javascript 在子iframe内调用的页面在父页面中触发事件,javascript,php,jquery,ajax,Javascript,Php,Jquery,Ajax,在core.php中,我有一个带按钮的dinamic表格 在iframe.php中,我使用AJAX调用core.php,获取该iframe中div中core.php的内容 在index.php中,我有这个iframe。所以我可以看到core.php的内容 core.php <table> /* content table with buttons */ </table> /*带按钮的内容表*/ iframe.php <script> /*

core.php
中,我有一个带按钮的dinamic表格

iframe.php
中,我使用AJAX调用
core.php
,获取该iframe中div中
core.php
的内容

index.php
中,我有这个iframe。所以我可以看到
core.php
的内容

core.php

<table>
  /* content table with buttons */
</table>

/*带按钮的内容表*/
iframe.php

<script>
      /* AJAX call to core.php in #mydiv*/
</script>

<div id="myDiv"></div>

/*mydiv中对core.php的AJAX调用*/
index.php

<iframe src="iframe.php"></iframe>

如果我在父页面的
iframe.php
内的div上触发事件,它就像一个符咒。但div与表中显示的一样大。我只想在点击
core.php
中此表的按钮时触发事件。换句话说,我需要绕过iframe.php并在index.php中从core.php调用事件

有可能吗


如果没有,我怎么解决呢?

有人能帮我吗?有人能帮我吗?