loisoft / jquery-watermark

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

form.submit in msie crash #13

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
While use this plugin in MSIE (any version) it going crash with JS error
(anytime browser try to load this plugin) on line 460 :

form.submit = (function (f, $f) {
           return function () {
        var nativeSubmit = $f.data(dataFormSubmit);
...

I use this workaround: 

if (!$.browser.msie)
    form.submit = (function (f, $f) {
    return function () {
       var nativeSubmit = $f.data(dataFormSubmit);

It's working, but very quick and i think this solution isn't optimal.

I hope it will be fixed in never versions )

Original issue reported on code.google.com by trytoth...@gmail.com on 20 Jan 2010 at 8:56

GoogleCodeExporter commented 8 years ago
The plugin is tested in each version of IE from 6.0 and higher.  It has never 
crashed in testing upon submitting a form.

If you feel strongly that there is a problem with IE, please create and post a 
link 
to a stripped-down test page that highlights the error. 

Most errors reported like this turn out to be something external to the 
watermark 
plugin in the page that is conflicting or overriding something the plugin is 
doing.  
Starting with a bare minimum test page, and gradually adding back in the 
original 
functionality piece by piece, can often point out what is wrong.

Also, I would caution you not to rely on $.browser whenever possible.

Original comment by t...@speednet.biz on 11 Feb 2010 at 4:50