nanatiris / jquery-watermark

Automatically exported from code.google.com/p/jquery-watermark
0 stars 0 forks source link

postback issue with ASP.NET DropDownList #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Place a DropDownList with AutoPostBack="True"
2. Place any TextBoxes with at least one watermark
3. Load IE6 or IE7
3. Change selected item in DropDownList causes javascript error

What is the expected output? What do you see instead?
No javascript errors

What version of the product are you using? On what operating system?
Windows 2008 or 7 + IIS 7.0 or 7.5 + .NET 3.5SP1 + IE6 or 7
IE8 and Firefox do not show any errors.

Please provide any additional information below.

Error shown is:
"Object doesn't support this property or method".

The line where the error is found is (at bottom of code):
$form.data(dataFormSubmit).apply($form[0], arguments);

Attached is a simple test page.

Kind Regards

Original issue reported on code.google.com by giova...@glat.it on 11 Sep 2009 at 9:07

Attachments:

GoogleCodeExporter commented 9 years ago
Thank you for the demo page of the bug.  I have confirmed that it is a bug in 
IE6 
and IE7, and I have worked up a solution that I will deploy shortly.

The bug occurs because IE6 and IE7 do not use a standard Function prototype on 
the 
submit() function, but instead use a natively bound (proprietary) function call.

The solution I worked up seems to operate correctly, but I strongly recommend 
testing all your various scenarios after installing the new solution, because I 
have 
to assume that IE will pass all the arguments correctly.  It SAYS it will do 
it, but 
hey, it's IE, so "trust but verify" is the best approach.

The solution will be posted as version 3.0.1.

Original comment by t...@speednet.biz on 11 Sep 2009 at 5:58

GoogleCodeExporter commented 9 years ago
Fixed in version 3.0.1.

Original comment by t...@speednet.biz on 11 Sep 2009 at 6:20