Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Object doesn’t support this property or method #25

Open
cramesh opened this issue Dec 16, 2011 · 5 comments
Open

Object doesn’t support this property or method #25

cramesh opened this issue Dec 16, 2011 · 5 comments

Comments

@cramesh
Copy link

cramesh commented Dec 16, 2011

Hi,

Snack.js core functions will not work in IE browser if we have snack.js and mootool.js in the same page.

We use snack.js for attaching events, adding/removing the classes,
wrapping the DOM elements and JSONP.

If we have snack and mootools files in the same page, core functions like snack.attach,snack.bind,snack.wrap,snack.addClass,snack.removeClass
do not work on IE and mozilla browser.

IE browser shows error as “Object doesn’t support this property or method.”

Please help me on this.

Thanks
Ramesh

@alpha123
Copy link
Contributor

alpha123 commented Jan 6, 2012

Can you give us an example?

@ryanflorence
Copy link
Owner

Which version of MooTools and which build of snack are you using?

There's a chance the Slick selector engine may bet getting defined twice and causing problems on the page.

Let me know that stuff and then I can look into it.

@rameshmantra
Copy link

Any version of mootools.
we are using snack-qwery-min.js version 1.2.1

@ryanflorence
Copy link
Owner

I just did this test and it worked just fine in IE 8 Windows 7:

<!doctyp html>
<html>
<head>
  <meta http-equiv=Content-type content="text/html; charset=utf-8">
  <title>snack/moo test</title>
</head>
<body>

<script src="https://ajax.googleapis.com/ajax/libs/mootools/1.2.1/mootools.js"></script>
<script src="snack-qwery-min.js"></script>
<script>
  var whatsThis = function() {
    return this.name;
  };

  var foo = { name: 'foo' };

  var bound = snack.bind(whatsThis, foo);

  alert( bound() );
</script>

</body>
</html>

You sure its only an IE problem? Which version of IE?

Unless you can provide a simplified test case I can't really help :(

@cramesh
Copy link
Author

cramesh commented Jan 13, 2012

Hi ,

Can you look into this site which using mootools and snack.

http://www.printink.si/

Thanks
Ramesh

On Tue, Jan 10, 2012 at 12:23 PM, Ryan Florence <
[email protected]

wrote:

I just did this test and it worked just fine in IE 8 Windows 7:

<!doctyp html>
<html>
<head>
 <meta http-equiv=Content-type content="text/html; charset=utf-8">
 <title>snack/moo test</title>
</head>
<body>

<script src="
https://ajax.googleapis.com/ajax/libs/mootools/1.2.1/mootools.js
"></script>
<script src="snack-qwery-min.js"></script>
<script>
 var whatsThis = function() {
   return this.name;
 };

 var foo = { name: 'foo' };

 var bound = snack.bind(whatsThis, foo);

 alert( bound() );
</script>

</body>
</html>

You sure its only an IE problem? Which version of IE?


Reply to this email directly or view it on GitHub:
#25 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants