[英]Passing value from modal iframe to parent iframe
Hello I've a data in a modal iframe (let's call frame 1) and I should pass it in a iframe (rte_ticket_message ) cointained in a parent window. 您好,我在模态iframe中有一个数据(让我们调用第1帧),我应该在父窗口中包含的iframe中传递它(rte_ticket_message)。
In the modal iframe (frame 1) with the javascript 在使用JavaScript的模式iframe(框架1)中
parent.document.getElementById("detailed_req").innerHTML=”test”;
I cannot pass the value to the iframe contained in the parten window. 我无法将值传递给parten窗口中包含的iframe。
In the parent window I have the iframe id=“rte_ticket_message” containing a body with 在父窗口中,我的iframe id =“ rte_ticket_message”包含带有
id="detailed_req" where I want to put the value I've stored in the iframe1. id =“ detailed_req”,我要将我存储在iframe1中的值放入其中。
Here the structure of the parent winow with iframe id=rte_ticket_message 这是iframe id = rte_ticket_message的父窗口的结构
<div class="container">
<iframe id="rte_ticket_message" frameborder="0" style="width: 100%; height: 150px;">
<html>
<head>
<body id="detailed_req" class="editorWYSIWYG" style="margin:0px 0px 0px 0px">
</html>
</iframe>
Please Insert Relevant Notes: 请插入相关说明:
Someone have any suggestion on the script I should use? 有人对我应该使用的脚本有什么建议吗? Thanks
谢谢
F. F。
您可以尝试使用cookie document.cookie
命令。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.