本文介绍了解决方法在IE6,IE7过长查询字符串?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有在FF,歌剧,Safari,Chrome浏览器提交罚款的形式,也IE8 ...
但它不会在IE6提交,或IE7 ...

I have a form which submits fine in FF, Opera, Safari, Chrome, and also IE8...But it wont submit in IE6, or IE7...

我已经注意到这是99%的把握,这个问题是一个太长的查询字符串。
我有很多很多选项...

I have noticed it is 99% sure that the problem is a too long querystring.I have many many options...

现在,改变方法POST是出了问题在这里,所以也懒得问到这个问题,请...

Now, changing the method to POST is out of the question here, so don't bother asking about this please...

我不知道,有没有其他解决方法这个问题?
另外,为什么只有IE6和IE7有这个问题?

I wonder, is there any other workaround for this problem?Also, why is only IE6 and IE7 having this problem?

如果没有解决办法,将禁用的太多的输入这是超过限度的帮助缩短查询字符串?换言之,将禁用表单元素也可以加入到查询字符串

If there is no workaround, will "disabling" the "too many" inputs which are over the limit help shortening the querystring? In other words, will disabled form elements also be added to the querystring?

感谢

推荐答案

要回答你的第二个问题,微软在这里得到了答案:

最大URL是2,083个字符,所以从GET请求产生的页面必须具有比短的URL。

To answer your second question, Microsoft's got the answer here:http://support.microsoft.com/kb/208427The maximum URL is 2,083 characters, so the page resulting from the GET request must have a URL shorter than that.

要回答你的第三个问题,

禁用控件不能成功,即他们不会提交。

To answer your third question,w3.org/TR/html401/interact/forms.html#h-17.12:"Disabled controls can not be successful", i.e. they will not submit.

要回答你的第一个,或许你可以把字符限制在某些领域,像一个textarea。另一种选择可能会使用JavaScript,散列它在某种程度上,然后unhashing其提交页面上的服务器端是COM preSS的投入。

To answer your first, perhaps you can put a character limit on some of the fields, like a textarea. Another option might be to compress the input using javascript, hashing it somehow, and then unhashing it server-side on the submitted page.

这篇关于解决方法在IE6,IE7过长查询字符串?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-03 07:27