Firefox 1.5中的iframe问题 [英] iframe probelm in Firefox 1.5

查看:49
本文介绍了Firefox 1.5中的iframe问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是easyajax.sourceforge.net的作者,我有一个问题

Firefox 1.5,我在这里发布了这个问题并希望有人帮助我。


测试页面可以是:
http:// easyajax.sourceforge.net/demo/overview.html


该页面在Firefox 1.0。*和IE 6.0以及Opera 8.5中运行良好,但它

无法在Firefox 1.5上运行,第一次打开页面时,它可以很好地工作,但是当你刷新页面(例如CTRL-R)时,页面将

以糟糕的方式显示。


调试代码时(如果没有工作,很难调试

调试器),我发现它发生在以下代码:


var iframe = document.createElement(" iframe");

iframe.src = this.url;

iframe.style.height =" 0px" ;; iframe.style.width =" 0px";

//ifif.height = -1; iframe.width = -1;

// iframe.style.display =" none" ;; //不能在歌剧中工作

this.element.insertBefore(iframe,null);


iframe希望正常加载url,但在Firefox1中.5(刷新

模式),它会加载另一个网址,而不是给定的网址。


有谁能告诉我如何解决这个问题?非常感谢。

I am the author of easyajax.sourceforge.net, and I have a problem on
Firefox 1.5, I post the problem here and hopes somebody help me.

The test page can be:
http://easyajax.sourceforge.net/demo/overview.html

The page works well in Firefox 1.0.* and IE 6.0, and Opera 8.5, but it
doesnt work on Firefox 1.5, the first time you open the page, it works
well, but when you refresh the page(such as CTRL-R), the page will
displayed in bad way.

When debug the code( It is difficult to debug without a working
debugger), i found that it was occursed at the following code:

var iframe = document.createElement("iframe");
iframe.src = this.url;
iframe.style.height = "0px"; iframe.style.width="0px";
//iframe.height = -1; iframe.width = -1;
// iframe.style.display = "none"; // not works in opera
this.element.insertBefore(iframe, null);

the iframe is hope to load the url normally, but in Firefox1.5(Refresh
mode), it load another url instead, not the given url.

Can anybody tell me how to solve the problem? very thanks.

推荐答案

wangzx写道:
我是easyajax.sourceforge.net的作者,我在Firefox 1.5上遇到了问题,我在这里发布了问题并希望有人帮助我。

测试页面可以是:
http://easyajax.sourceforge.net/demo/overview.html
该页面在Firefox 1.0。*和IE 6.0以及Opera 8.5中运行良好,但它在Firefox 1.5上不起作用,第一次打开页面时,它运行良好,但是当你刷新时页面(如CTRL-R),页面将以糟糕的方式显示。


您可能需要为那些可能会帮助您的人提供更轻松的生活。

该链接具有无效的XHTML - 您的

建议的包含自定义jsclass属性的方法将确保

使用您的''easyajax''的任何人也将生成无效的(X)HTML 。

你有:


< textarea ... disabled =" true">


对于有效的XHTML使用:


< textarea ... disabled =" disabled">


调试代码时(它是如果没有工作的调试器很难调试,我发现它是在以下代码中发生的:

var iframe = document.createElement(" iframe");
iframe .src = this.url;
iframe.style.height =" 0px" ;; iframe.style.width =" 0px";
//iframe.height = -1; iframe.width = -1;
// iframe.style.display =" none" ;; //不在歌剧中工作
this.element.insertBefore(iframe,null);


在3个附加的js文件中的3,000行代码中的某处?

模式)中,它会加载另一个URL,而不是给定的URL。

任何人都可以告诉我如何解决问题?非常感谢。
I am the author of easyajax.sourceforge.net, and I have a problem on
Firefox 1.5, I post the problem here and hopes somebody help me.

The test page can be:
http://easyajax.sourceforge.net/demo/overview.html

The page works well in Firefox 1.0.* and IE 6.0, and Opera 8.5, but it
doesnt work on Firefox 1.5, the first time you open the page, it works
well, but when you refresh the page(such as CTRL-R), the page will
displayed in bad way.
You may need to make life a little easier for those who might take up
the challenge of helping you. The link has invalid XHTML - your
proposed method of including a custom jsclass attribute will ensure that
anyone using your ''easyajax'' will also generate invalid (X)HTML.
You have:

<textarea ... disabled="true">

For valid XHTML use:

<textarea ... disabled="disabled">


When debug the code( It is difficult to debug without a working
debugger), i found that it was occursed at the following code:

var iframe = document.createElement("iframe");
iframe.src = this.url;
iframe.style.height = "0px"; iframe.style.width="0px";
//iframe.height = -1; iframe.width = -1;
// iframe.style.display = "none"; // not works in opera
this.element.insertBefore(iframe, null);
Somewhere in the 3,000 lines of code in the the 3 attached js files?


the iframe is hope to load the url normally, but in Firefox1.5(Refresh
mode), it load another url instead, not the given url.

Can anybody tell me how to solve the problem? very thanks.




也许与某事有关:


< script type =" text / javascript">



Maybe something to do with:

<script type="text/javascript">


(" elSrc")。value =
("elSrc").value =


(" elDiv")。innerHTML;

< / script>


哪里是''
("elDiv").innerHTML;
</script>

Where is ''


这篇关于Firefox 1.5中的iframe问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆