我的网站从另一个网站加载iframe。我想缓存这个iframe,然后加载一个缓存副本。
不幸的是,我不能使用nginx,这就是为什么我对如何使用php / js / ajax / xml或其他方式缓存iframe感兴趣。
可能是这样的:
- create iframe.php file on server with loading another site iframe
- iframe.php load iframe first time, than cache it
- include iframe.php where I need (but I don't
underst
这是一个类似但不同的问题,即如何在选择iframe的可编辑内容时设置html。
发现的一个示例是:,但它也可以用来显示问题。
在IE上,在示例中,如果您选择iframe中的文本,然后单击,它将起作用。但在选择iframe可编辑内容中的文本并单击其他窗格后,您将看到高亮显示消失,单击按钮也不会执行任何操作。看起来像:
var range = document.getElementById("iframe").contentWindow.document.selection.createRange();
无法获取以前选择的范围。
我尝试在模糊中缓存范围,并在“单击”时重新使用它,