开发者

In jQuery, IE object doesn't support this property or method, can someone help?

开发者 https://www.devze.com 2023-01-05 20:29 出处:网络
I have been pulling out my hair on this topic.I have been searching google and could not find much to help me.I have this here:

I have been pulling out my hair on this topic. I have been searching google and could not find much to help me. I have this here: http://www.fissiondesigns.com/simon

Works in FF and chrome, but can't get it to work on IE, keep getting an error 'object doesnt support this property or method'. I looked it up on google and couldn't find any examples that pertain to my pro开发者_开发知识库blem. If anyone could help that would be great! thanks.


.draggable({
            containment: image.canvas,

        });
        return this;

Should be (in jquery.pinpoint.js):

.draggable({
            containment: image.canvas
        });
        return this;

And:

area.resizable({
       handles: 'all',
      containment:image.canvas,

       })

should be

area.resizable({
       handles: 'all',
       containment:image.canvas
    })

So, basically as Pointy has said, you've got a few commas that shouldn't be there.


Looks like that "pinpoint" plugin has a stray comma (line 179); it's where it calls area.resizable in the object literal passed in.

The IE8 debugger — unlike it's virtually worthless predecessor for IE6 — actually works pretty well, and made it quite clear what was going on. (Well, not totally clear; IE doesn't say "you have a stray comma".)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号