dojo tells you: mll[x] is not a function

Yeah I had that too today, it really sucks getting such JS errors. The error I made was simply that I called

    dojo.addOnload("functionName")

instead of

    dojo.addOnload(functionName)

don’t quote the function name, as you would in some other cases. Nice hacking …

4 Comments »

  1. Raju said,

    September 18, 2008 at 3:07 pm

    ThanQ Very Much

  2. Pravin said,

    October 6, 2008 at 7:38 pm

    Thanks,

    Had a similar issue where I was using

    dojo.addOnLoad(loadValues(’view’));

    which I replaced with

    dojo.addOnLoad(function (){loadValues(’view’)});

    and this solved the javascript error.

  3. Kunal said,

    August 18, 2009 at 2:21 pm

    Thanks to you guys this solved a critical issue for my app.

  4. mike said,

    November 7, 2009 at 8:20 pm

    Hey thanks I spent an hour trying to figure out why my function would work in firebug directly but not onLoad!

RSS feed for comments on this post · TrackBack URL

Leave a Comment