与IE6不提交表单奇怪的问题 [英] Strangest problem with IE6 not submitting a form

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

问题描述

我在这里需要专家的建议...

I need expert advice here...

我在我的职业生涯遇到的最奇怪的问题...

I have run into the strangest problem in my career...

我有很多的选择标签的形式。每个标签包含了大量的选项标签。

I have a form with alot of "SELECT" tags. Each tag contains a large amount of "OPTION" tags.

该表单提交不会不惜一切,但是当我删除表格内容的部件(例如,一些SELECT标签),那么表单将正常提交。

The form wont submit at all, but when I remove parts of the form content (for example, some SELECT tags), then the form will submit properly.

然而,没有任何一致性,我的意思是,去除标签可以是随机的。
我试图寻找哪一部分正是我形式的删除的一部分可能会造成的形式不提交,但我无法弄清楚。

However, there is NO consistency whatsoever, I mean, the removal of the tags can be random. I have tried looking at what part exactly of the "removed" part of my form could be causing the form not to submit, but I can't figure it out.

这是向您展示了一个例子更容易解释...
我将跳过表单标签,和js函数,因为我肯定他们现在都没有问题头疼...

It is easier explained by showing you an example... I will skip the form tag, and js functions because I am positive they are not the problem now after hours of headache...

下面是一个选择标记:

<div class="nav_sub_juveler" id="nav_sub_juveler">

  <select name="smycken_type" id="smycken_type" style="width: 130px; margin-bottom: 5px;">
                 <option value="Alla Typer" class="nav_option_main" selected>-- Alla Typer --</option>
                 <option value="Klockor & Ur" title="Klockor, Ur">Klockor & Ur</option>
                 <option value="Juveler" title="Smycken, Pärlor, Guld, Silver, Diamanter mm">Juveler</option>
                 <option value="Övrigt" title="Övrigt">Övrigt</option>
  </select>

<br />

      <input type="radio" name="smycken_action" id="smycken_säljes" value="Säljes" checked onClick="disable_actions('nav_sub_juveler', false);">
      <font face="Arial, Helvetica, sans-serif" style="font-size:14px; font-weight:bold;">Säljes</font>
      <input type="radio" name="smycken_action" id="smycken_köpes" value="Köpes" onClick="disable_actions('nav_sub_juveler', true);">
      <font face="Arial, Helvetica, sans-serif" style="font-size:14px; font-weight:bold;">Köpes</font>

</div>

现在,在窗体的这一部分,我有一个包含一些选项(就像我的表格的其余部分)一个部门的容器。
如果我选择在这里删除单选按钮,表单将提交。
因此现在,你觉得好了,一定有一些事情造成的形式不提交单选按钮!。
但不是!
如果我不是删除在选择标记(或选择标签产品总数)选项,但将收音机,表单将再次提交。
但双方留下不提交表单。

Now, in this part of the form, I have a division container which contains some options (just like the rest of my form). If I chose to remove the radio buttons here, the form will submit. So right away, you think "ok, there must be something about the radio buttons causing the form not to submit!". But NO! If I instead remove the "Options" in the select tag (or the select tag alltogether), but leave the radios, the form will submit again. But leaving both will not submit the form.

和这个奇怪的是,表格的其余部分是由完全相同的方式与此相同,它将既收音机和选择提交...

And the strange about this is that the rest of the form is made exactly the same way as this, and it WILL submit with both radios and selects...

我不出来...

你有什么可以在这里看到,可能会导致这个问题?

Is there anything you can see here that could cause the problem?

PS:CSS的没有问题,或者,该概率是其他地方...
PS2:我试图重写和重新排列文字,但没有运气

PS: The css has no problem either, the prob is elsewhere... PS2: I have tried rewriting and rearranging the text, but no luck

推荐答案

如果在&LT;形式&GT; 使用 GET ,尝试将其更改为 POST ,看看是否有差别。

If the <form> is using GET, try changing it to POST and see if that makes a difference.

由于@spbfox说的,还有一个URL是如何长有限制。

As @spbfox was saying, there's a limit on how long a URL can be.

修改

这不只是IE6,网址比2K〜引起各种破损更长。

It's not just IE6, URLs longer than ~2k cause all kinds of breakage.

我有它使用了巨大的页面(100+场)上得到了传统的应用程序,它工作多年好吧......那么去年冬天的用户安装了一个共同的工具栏(谷歌,雅虎或Bing,不记得其中),以及将静默截断数据。更改页面,以POST固定它。

I had a legacy app which used GET on a huge page (100+ fields), and it worked okay for years...then last winter the user installed a common toolbar (Google, Yahoo or Bing, don't remember which), and it would silently truncate the data. Changing the page to POST fixed it.

当然,如果你的操作页面使用的Request.QueryString()你必须改变那些的Request.Form()。

Of course, if your action page uses Request.QueryString() you'll have to change those to Request.Form().

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

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