views:

27

answers:

2

Edit: Thanks all for the help, rod.

Hi All,

$('#button1').click(function(){
   window.location = "/Home/GetCustomers?" + $('#myForm').serialize();
});

Is using window.location subject to querystring size limitation? For instance, if my form has many parameters to serialize?

Thanks, rodchar

A: 

Window.location can't be longer than whatever URL length limit the user's browser enforces. This varies from browser to browser; the shortest one is Internet Explorer, which is 2083 characters.

JacobM
I didn't realize this was a browser specific limitation. Good to know.http://classicasp.aspfaq.com/forms/what-is-the-limit-on-querystring/get/url-parameters.html
gurun8
+1  A: 

The spec for URL length does not dictate a minimum or maximum URL length, but implementation varies by browser. On Windows: Opera supports ~4050 characters, IE 4.0+ supports exactly 2083 characters, Netscape 3 -> 4.78 support up to 8192 characters before causing errors on shut-down, and Netscape 6 supports ~2000 before causing errors on start-up.

mike clagg