Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/82.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 在父iframe中打开jquery对话框,在第二个iframe中打开第二个对话框中的iframe_Javascript_Jquery_Iframe_Dialog - Fatal编程技术网

Javascript 在父iframe中打开jquery对话框,在第二个iframe中打开第二个对话框中的iframe

Javascript 在父iframe中打开jquery对话框,在第二个iframe中打开第二个对话框中的iframe,javascript,jquery,iframe,dialog,Javascript,Jquery,Iframe,Dialog,我试着在StackOverflow中搜索,我发现了类似的解决方案,但我就是不能让它工作 HTML示例: <iframe id="iframeA"> <!-- Here i open a dialog "**divOffirstDialog**"--> <div id="divOffirstDialog"> <iframe id="iframeB"> ...(contents)... &

我试着在StackOverflow中搜索,我发现了类似的解决方案,但我就是不能让它工作

HTML示例:

<iframe id="iframeA">
   <!-- Here i open a dialog "**divOffirstDialog**"-->
    <div id="divOffirstDialog">
      <iframe id="iframeB">
        ...(contents)...
           <button onclick="openSecondDialog('divOfsecondDialog')">
           <div id="divOfsecondDialog"></div>
      </iframe>
    </div>
</iframe>

…(内容)。。。
工作流:

<iframe id="iframeA">
   <!-- Here i open a dialog "**divOffirstDialog**"-->
    <div id="divOffirstDialog">
      <iframe id="iframeB">
        ...(contents)...
           <button onclick="openSecondDialog('divOfsecondDialog')">
           <div id="divOfsecondDialog"></div>
      </iframe>
    </div>
</iframe>
iframeA->中打开对话框divofrstdialog,在对话框内部打开divofsecondialog以打开第二个对话框

问题:

<iframe id="iframeA">
   <!-- Here i open a dialog "**divOffirstDialog**"-->
    <div id="divOffirstDialog">
      <iframe id="iframeB">
        ...(contents)...
           <button onclick="openSecondDialog('divOfsecondDialog')">
           <div id="divOfsecondDialog"></div>
      </iframe>
    </div>
</iframe>
第二个对话框将在第一个对话框内打开

问题:

<iframe id="iframeA">
   <!-- Here i open a dialog "**divOffirstDialog**"-->
    <div id="divOffirstDialog">
      <iframe id="iframeB">
        ...(contents)...
           <button onclick="openSecondDialog('divOfsecondDialog')">
           <div id="divOfsecondDialog"></div>
      </iframe>
    </div>
</iframe>
如何打开第一个对话框上方/外部的第二个对话框。如何在iframeA中打开外部iframeB

注意:

<iframe id="iframeA">
   <!-- Here i open a dialog "**divOffirstDialog**"-->
    <div id="divOffirstDialog">
      <iframe id="iframeB">
        ...(contents)...
           <button onclick="openSecondDialog('divOfsecondDialog')">
           <div id="divOfsecondDialog"></div>
      </iframe>
    </div>
</iframe>
两个iFrame都在同一个域中