TWEagle / jquery-watermark

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

Watermark doesn't work on IE8 #47

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Implement the plugin
2. Open the website in IE8

What is the expected output? What do you see instead?
I'd expect the watermark to show properly. Instead, I just see blank input 
boxes and a blank textarea. Open clicking and leaving a input box it may 
randomly show the watermark, or not. However, by default, the watermark does 
not show. Also, IE8 says there is a JavaScript error: "Object doesn't support 
this property or method"(Line 437, Char 29).

What version of the product are you using? On what operating system?
I'm using Watermark plugin for jQuery 3.1.1. I've seen this behaviour in IE8.. 
I haven't tested older version of IE though. I've used various operating 
systems on which this behaviour occurred.

Please provide any additional information below.
The problem is fixed by removing line 434-469. Those lines are supposed to 
"realiably" submit the form to the server. In my case, the script works fine 
without these lines. I don't know if it is now less reliable, but it works fine 
in all browsers I've tested.. so in my case I guess the script to improve 
reliability instead it actually got worse.

Original issue reported on code.google.com by sidney1986@gmail.com on 14 Jan 2011 at 10:09

GoogleCodeExporter commented 9 years ago
I just found that this issue occurs with the binding of form.submit = (function 
(f, $f) { if the submit button on your form has the name of "submit".  Simply 
changing the name of your submit button to something different fixes this, but 
this is really just a hack.  We use a form building class in our development 
that by default puts submit buttons with the name of submit.  This breaks the 
code in IE with the error given above.

Original comment by tmis...@gmail.com on 15 Jan 2011 at 12:59

GoogleCodeExporter commented 9 years ago
This is an IE bug, not a problem with the watermark plugin.  Your form building 
class should be fixed to avoid the name "submit".

Here's an example of the bug report:  
http://stackoverflow.com/questions/3571328/form-submit-button-will-not-submit-wh
en-name-of-button-is-submit

Original comment by t...@speednet.biz on 15 Jan 2011 at 3:48

GoogleCodeExporter commented 9 years ago
Oh man, I'm glad I found this. I had narrowed it down to when I had my submit 
input in the form, I was getting a script error in IE and when I removed it, 
the error was gone. I was starting to lose my mind.... F*$@ IE.

Original comment by bjank...@gmail.com on 13 Jun 2011 at 2:31