having fun with code

Dojo sucks, Mootools rocks

Today I got disappointed about Dojo. I had never used it before although I had seen code and I had hear good things about it. Bad things too, but I never though it was that bad. Currently I am working on a project for a client which has decided to normalize all their websites. And they have chosen Dojo. Since the website I was building was for the iPhone I decided not to use any library. It was none or Dojo. And everything went fine, because Safari is a very good browser and does things right.

But after that I had to build a desktop page for the same project. Of course, this will have to be compatible with all browsers, including IE6. And the pain started because IE6 doesn’t support the same functions than other browsers. That’s why using frameworks is so helpful. You forget about incompatibility issues. Well, that happens if you choose a good framework.

It happens than the only thing I haven’t found how to do is to get the absolute position of an element relative to its offset parent in IE6. So I said, well… let’s give it a try and use Dojo for this. After all, it would be a single line command:

  1. var position = dojo.query(myelement).coords()[0];

Well… surprise! There is a bug in Dojo that makes it return the wrong coordinates on IE6. F%$K! The one thing I needed from Dojo does not work.

Long life Mootools!

Related Posts:

5 Comments to Dojo sucks, Mootools rocks

  1. cssProdigy's Gravatar cssProdigy
    January 5, 2009 at 14:07 | Permalink

    Go MooTools go!

  2. JJTB Somhorst's Gravatar JJTB Somhorst
    March 24, 2010 at 12:43 | Permalink

    …sigh. Just because one thing you need from a certain framework contains a bug does not mean that the complete framework sucks?! You go girl..

  3. June 20, 2011 at 23:53 | Permalink

    At the very first place you hear bad things about it , well u shouldn’t used it at all. You may be know the consequences but you still try..Up to you girl, Just go if that what makes you think good for you.

  4. John's Gravatar John
    August 2, 2011 at 01:24 | Permalink

    I’m having the same issue with Dojo! I wonder why they haven’t fixed this all this time. They should do something about it…

Leave a Reply

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Additional comments powered by BackType

About the blog

This is a blog about development, focused mainly on Javascript but also other languages like python, shell scripts and more.

About the author

Eneko Alonso is a software engineer and UI developer with more than eight years of experience in software and web development. He lives in San Luis Obispo, California and works at LEVEL Studios.

Contact Info

Contact Info

PromoteJS

JavaScript JS Documentation