qualcentric-web-solutions / jquery-watermark

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

Plugin breaks with jquery-1.5.2 #58

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Reference jquery-1.5.2.min.js
2.Open page and Refresh browser
3.Or Close browser

What is the expected output? What do you see instead?
I get js Error: 'type' is null or not an object. See the image file.

What version of the product are you using? On what operating system?

Tried Watermark 3.1.1 / 3.1.3 with jquery-1.5.2. 
It works fine with jquery-1.5.1 and jquery-1.5

Please provide any additional information below.

Test code: 
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <script src="http://ajax.microsoft.com/ajax/jquery/jquery-1.5.2.min.js" type="text/javascript"></script>
   <script src="jquery.watermark.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $("#Text1").watermark("First Name");
        });
    </script>
</head>
<body>
    <input id="Text1" type="text" />
</body>
</html>

Original issue reported on code.google.com by coty...@gmail.com on 13 Apr 2011 at 9:02

Attachments:

GoogleCodeExporter commented 8 years ago
FYI: I get this with IE 8 and not with FF 4.0. Using Windows 7.

Original comment by coty...@gmail.com on 13 Apr 2011 at 9:27

GoogleCodeExporter commented 8 years ago
jQuery 1.5.2 has a regression bug that is supposed to be fixed in 1.5.3.  The 
bug relates to the beforeunload event, and only seems to happen in IE8 and 
lower.

If you really need to use 1.5.2, you can disable the beforeunload event in the 
watermark plugin by setting hideBeforeUnload to false in the watermark options.

Here is the bug causing the problem:  http://bugs.jquery.com/ticket/8755

I changed the status of this issue to "WontFix" because I'm hoping jQuery 1.5.3 
is released soon.  I don't see another reasonable solution, since it's jQuery 
that's breaking this.

Original comment by t...@speednet.biz on 14 Apr 2011 at 12:29

GoogleCodeExporter commented 8 years ago
Issue 61 has been merged into this issue.

Original comment by t...@speednet.biz on 14 May 2011 at 8:46