表单问题和Firefox [英] Form problem and Firefox

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

问题描述

嘿所有,


在我的一些页面中,我使用快速表单来提供导航按钮选项,

而不是链接。其中之一就是:


< FORM name =" nulltry" enctype =" multipart / form-data"

action =" http://www.mysite.com/cgi-bin/enter_one.pl" method =" POST">

< INPUT type =" submit"值= QUOT;输入另一个>

< / form>


Firefox给我的打嗝,但IE不是:


*格式错误的多部分POST:数据截断

*在enter_one.pl第6行的require中编译失败。

* BEGIN失败 - 编译在enter_one中止第6行。

因此,快速解决方法是将此行添加到我的表单中:


< INPUT type =" hidden"命名= QUOT; NOTUSED"价值=" 1">


问题消失了。


但我想我想知道发生了什么。我错了尝试使用

表格作为导航工具吗?我的修复能够接受吗?为什么

Firefox会抱怨,而IE却没有?

非常感谢任何输入。


一如既往地谢谢。


Daniel

Hey All,

In some of my pages I use a quick form to give navigational button choices,
rather than links. One of them is this:

<FORM name="nulltry" enctype="multipart/form-data"
action="http://www.mysite.com/cgi-bin/enter_one.pl" method="POST">
<INPUT type="submit" value=" Enter Another ">
</form>

The hiccup that Firefox gives me, yet IE does not is:

*Malformed multipart POST: data truncated
*Compilation failed in require at enter_one.pl line 6.
*BEGIN failed--compilation aborted at enter_one line 6.
So the quick fix was to add this line to my form:

<INPUT type="hidden" name="notused" value="1">

and the problem goes away.

But I guess I would like to know what happened. Was I wrong to try and use
a form as a navigational tool? Is my fix acceptable enough? And why does
Firefox complain while IE does not?
Would really appreciate any input.

Thanks ahead as always.

Daniel

推荐答案

" Daniel Kaplan" <否**** @ NoSpam.com>写道:
"Daniel Kaplan" <No****@NoSpam.com> wrote:
在我的一些页面中,我使用快速表单来提供导航按钮
选项,而不是链接。


停止这样做。链接想成为链接。请参阅
http://www.cs。 tut.fi/~jkorpela/www/links.html

action =" http://www.mysite.com/cgi-bin/enter_one.pl"


不要使用假URL,特别是当它们看起来像真正的URL时。

*格式错误的多部分POST:数据截断


这样的事情可能会发生。有人可能有兴趣分析你的问题

在其他一些组中,如果你提供了一个真实的URL来证明它。当然,

action属性必须引用能够处理

提交数据的东西;你没有提供太多关于此的事实。而且这不是一个HTML问题。当你停止创建它时,问题就会消失,只要

形成链接的urrogates就会被考虑。

但我想我想知道发生了什么。


首先修复你的页面不是更好吗?

我错了尝试使用表单作为导航工具?


是的。

我的修复是否足够可接受?


No.

为什么火狐会抱怨IE浏览器没有?
In some of my pages I use a quick form to give navigational button
choices, rather than links.
Stop doing so. Links want to be links. See
http://www.cs.tut.fi/~jkorpela/www/links.html
action="http://www.mysite.com/cgi-bin/enter_one.pl"
Don''t use fake URLs, especially when they look like real URLs.
*Malformed multipart POST: data truncated
Such things may happen. Someone might be interested in analyzing your problem
in some other group, if you gave a real URL that demonstrates it. Of course,
the action attribute must refer to something that is capable of handling the
submitted data; you are not giving much facts about this. And it isn''t an
HTML problem. And the problem vanishes when you stop creating it, as far as
forms as urrogates for links are considered.
But I guess I would like to know what happened.
Wouldn''t it be better to fix your pages first?
Was I wrong to try and
use a form as a navigational tool?
Yes.
Is my fix acceptable enough?
No.
And why
does Firefox complain while IE does not?




当这样的事情发生时,Firefox通常是正确的。


-

Yucca, http://www.cs.tut.fi/~jkorpela/

有关网页制作的网页: http://www.cs.tut.fi/~jkorpela/ www.html



When such things happen, Firefox is usually right.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html


我不建议以这种方式使用FORM,因为按钮是

预计会执行一些对用户提交的数据采取行动,而非作为导航设备的b
导航设备。另外,用另一个元素代替
导航会导致你的链接失去理想的内在功能

的锚点(例如在新窗口中打开。)那就是说,那里很多

审美理由为什么你不希望锚标记呈现为

它通常会,特别是导航栏(包括但不是
$ b) $ b限制,那些利用javascript产生下拉

子菜单效果的人。在这些情况下,A标签的样式是有效的。


因为这违背了我的另一个自我满足的自我满足的smugclown谁先前发布的b $ b,它是时候进行现实检查了。如果您注意到今天专业开发的99.9%

网站违反了他的链接想要

Be Links宣言,你很快得出的结论是,我们在这里清楚地处理两个世界 - Jukka'和真实的世界。如果你想要让自己沉浸在自1990年代中期以来没有发展过的网站体验之中,那么请访问Jukka''s并坚持他的

原则。但如果您想使用真实的

网站的现代造型技术,请访问其他任何内容。例如,访问
http://www.webtrends.com 并注意令人震惊的 - 令人震惊的! - 使用

风格的锚没有下划线!请注意在热门下载下的可疑使用下拉菜单

导航部分!见证可怕的

导航图像周围缺少边框!最后,对于以某种方式轻松浏览网站的能力感到惊讶。现在冲洗并在现代的

世界中为其他精心设计的,有吸引力的网站重复


I would not recommend using a FORM this way because buttons are
expected to perform some action on user-submitted data, not as
navigational devices. Additionally, substituting another element for
navigation causes your link to lose desirable intrinsic functionality
of anchors (such as "open in new window.") That said, there are many
aesthetic reasons why you would _not_ want an anchor tag to render as
it normally would, particularly for navigation bars (including, but not
limited to, those utilizing javascript to produce a "drop-down"
sub-menu effect). In these cases, styling the A tag is effective.

Since this goes against my alter-ego, the self-satisfied smugclown who
posted earlier, it''s time for a reality check. If you note that 99.9%
of websites developed professionally today violate his "Links Want To
Be Links" manifesto, you quickly come to the conclusion that we are
clearly dealing with two worlds here--Jukka''s and the real one. If you
want to immerse yourself into the experience of a website that hasn''t
evolved since the mid 1990''s, by all means visit Jukka''s and uphold his
tenets. But if you want to employ modern styling techniques of real
websites, visit anything else. Visit, for example,
http://www.webtrends.com and notice the shocking--shocking!--use of
styled anchors without underlines! Note the horrifying use of dropdown
navigation under the "Popular Downloads" section! Witness the appalling
lack of borders around navigable images! Finally, become astonished at
your ability to somehow navigate the site with ease. Now rinse and
repeat for every other well-designed, attractive site in the modern
world.


Yukky Korpulent写道:
Yukky Korpulent wrote:
原则。但是,如果你想采用真实的现代造型技术,例如,
http://www.webtrends.com 并注意到令人震惊的 - 令人震惊的! - 使用没有下划线的
风格的锚!请注意在热门下载下的可疑使用下拉导航。部分!
tenets. But if you want to employ modern styling techniques of real
Visit, for example,
http://www.webtrends.com and notice the shocking--shocking!--use of
styled anchors without underlines! Note the horrifying use of dropdown
navigation under the "Popular Downloads" section!




如果关闭Javascript,那些什么都不做?



The ones that don''t do anything if I have Javascript turned off?


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

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