【发布时间】:2010-12-24 18:23:50
【问题描述】:
这是一个关于 Ajax Iframe 的问题。
我有一个打开 Iframe 并设置其来源的功能,但是在某些时候我需要打开多个 Iframe,并相应地设置它们的来源。只有当第一个 iframe 尚未完成加载时,第二个 iframe 才会打开。
伪代码:
// 在某个时候
x = iframe;
x.src = 'dothiscode.php'
// 稍后时间
if (x.src = not finished loading)
y = new iframe;
y.src = 'domorecode.php'
else
x.src = 'domorecode.php'
感谢您的帮助!
【问题讨论】:
标签: php javascript ajax iframe