DHTML与IE有关 [英] DHTML issues with IE
问题描述
我正在尝试在用户按下添加到
队列时动态生成表格。它在Mozilla中运行良好,但在IE中格式不正确。
复选框的意思是默认情况下应该检查它。 IE
在mozilla的时候不会这样做。这是一个链接:
http://helios.acomp.usf.edu/~torr2/test/test.php
具体来说,没有选中复选框,css课程没有'好像
正在工作。这只发生在IE中,我无法理解。
感谢您提供的任何帮助,
Tom
I am trying to produce a table dynamically when the user presses "add to
queue". It works great in Mozilla, but it is formatted incorrectly in IE.
What I meant by the checkbox was that it should be checked by default. IE
doesn''t do this while mozilla does. Here''s a link:
http://helios.acomp.usf.edu/~torr2/test/test.php
Specifically, the checkbox is not checked and the css classes don''t seem to
be working. This only happens in IE and I can''t figure it out.
Thanks For any help you can give,
Tom
推荐答案
你没有指定默认情况下是否应该选中复选框。
例如,
document.ThomasFrm.objCheckbox.defaultChecked = true;
这样可以默认选中项目。
奥兰多
Thomas写道:
you don''t specify whether the checkbox should be checked or not by default.
Example,
document.ThomasFrm.objCheckbox.defaultChecked = true;
This will allow the item to be checked by default.
Orlando
Thomas wrote:
我试图在用户按下添加到队列时动态生成表格。它在Mozilla中运行良好,但在IE中格式不正确。
复选框的意思是默认情况下应该检查它。 IE
在mozilla的时候不会这样做。这是一个链接:
http://helios.acomp.usf.edu/~torr2/test/test.php
具体来说,没有选中复选框,css类似乎没有
正在工作。这只发生在IE中,我无法弄明白。
感谢您提供的任何帮助,
Tom
I am trying to produce a table dynamically when the user presses "add to
queue". It works great in Mozilla, but it is formatted incorrectly in IE.
What I meant by the checkbox was that it should be checked by default. IE
doesn''t do this while mozilla does. Here''s a link:
http://helios.acomp.usf.edu/~torr2/test/test.php
Specifically, the checkbox is not checked and the css classes don''t seem to
be working. This only happens in IE and I can''t figure it out.
Thanks For any help you can give,
Tom
我感谢您调查此问题,但复选框设置为
变量chk。我用过:
chk.setAttribute(" checked"," true");
我也用过(在过去):
chk.setAttribute(" checked",true);
chk.setAttribute(" checked"," on") ;
chk.setAttribute(" checked"," checked");
chk.checked = true;
chk.checked = true;
这些不起作用,虽然设置名称确实以这种方式工作。它似乎在我看来,IE选择并选择允许哪些属性
随机变化。请注意,Mozilla正确显示此页面。
谢谢
" orlando echevarria" <或***** @ engr.uconn.edu>在消息中写道
news:3f ****** @ news0.ucc.uconn.edu ...
I appreciate you looking into the problem, however the checkbox is set to
the variable chk. I used:
chk.setAttribute("checked", "true");
I''ve also used (in the past):
chk.setAttribute("checked", true);
chk.setAttribute("checked", "on");
chk.setAttribute("checked", "checked");
chk.checked = true;
chk.checked = "true";
These do not work, although setting the name did work in this fashion. It
seems to me that IE picks and chooses which attributes it is going to allow
changes to at random. Note that Mozilla displays this page properly.
Thanks
"orlando echevarria" <or*****@engr.uconn.edu> wrote in message
news:3f******@news0.ucc.uconn.edu...
你没有指明复选框是否应该是是否通过
默认检查。
示例,
document.ThomasFrm.objCheckbox.defaultChecked = true;
这将允许检查项目默认情况下。
奥兰多
Thomas写道:
you don''t specify whether the checkbox should be checked or not by default.
Example,
document.ThomasFrm.objCheckbox.defaultChecked = true;
This will allow the item to be checked by default.
Orlando
Thomas wrote:
我试图在用户按下添加到
队列它在Mozilla中运行良好,但在
IE中格式不正确。复选框的意思是默认情况下应该检查它。
IE在mozilla的时候不会这样做。这是一个链接:
http://helios.acomp.usf.edu/~torr2/test/test.php
具体来说,没有选中复选框,css类似乎不是
工作。这只发生在IE中,我无法弄明白。
感谢您提供任何帮助,
Tom
I am trying to produce a table dynamically when the user presses "add to
queue". It works great in Mozilla, but it is formatted incorrectly in IE. What I meant by the checkbox was that it should be checked by default. IE doesn''t do this while mozilla does. Here''s a link:
http://helios.acomp.usf.edu/~torr2/test/test.php
Specifically, the checkbox is not checked and the css classes don''t seem to be working. This only happens in IE and I can''t figure it out.
Thanks For any help you can give,
Tom
Thomas写道:
Thomas wrote:
我感谢您调查此问题,但复选框设置为变量chk。我用过:
chk.setAttribute(" checked"," true");
我也曾用过(过去):
chk.setAttribute(" checked",true);
chk.setAttribute(" checked"," on");
chk.setAttribute(" checked","检查");
不要使用setAttribute来设置这样的属性。
chk.checked = true;
这是正确的。
chk.checked = true;
应该适用于所有符合DOM1标准的浏览器。
http: //www.w3.org/TR/DOM-Level-2-HTM...ml#ID-30233917
chk.checked =" true" ;;
这些不起作用
那么这意味着您的代码出了问题。
,虽然设置名称确实有效这种时尚。在我看来,IE选择并选择它将允许随机更改的属性。请注意,Mozilla正确显示此页面。
谢谢
I appreciate you looking into the problem, however the checkbox is set to
the variable chk. I used:
chk.setAttribute("checked", "true");
I''ve also used (in the past):
chk.setAttribute("checked", true);
chk.setAttribute("checked", "on");
chk.setAttribute("checked", "checked");
Do not use setAttribute to set such attribute.
chk.checked = true;
This is correct.
chk.checked = true;
should work in all DOM1 compliant browsers.
http://www.w3.org/TR/DOM-Level-2-HTM...ml#ID-30233917
chk.checked = "true";
These do not work
then it means something is wrong with your code.
, although setting the name did work in this fashion. It seems to me that IE picks and chooses which attributes it is going to allow
changes to at random. Note that Mozilla displays this page properly.
Thanks
DU
-
Javascript和浏览器错误:
http://www10.brinkster.com/ doctorunclear /
- Netscape 7.x用户和作曲家的资源,帮助和提示
- 弹出式窗口,音乐(音频/ midi)的交互式演示Netscape 7.x
http://www10.brinkster。 com / doctorunc ... e7Section.html
DU
--
Javascript and Browser bugs:
http://www10.brinkster.com/doctorunclear/
- Resources, help and tips for Netscape 7.x users and Composer
- Interactive demos on Popup windows, music (audio/midi) in Netscape 7.x
http://www10.brinkster.com/doctorunc...e7Section.html
这篇关于DHTML与IE有关的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!