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 …

5 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!

  5. cialis said,

    April 27, 2012 at 9:42 pm

    Hey there! Do you know if they make any plugins to assist with SEO? I’m trying to get my blog about cialis to rank for some targeted keywords but I’m not seeing very good results. If you know of any please share. Cheers!

RSS feed for comments on this post · TrackBack URL

Leave a Comment