YUI 2.6.0 problem

YUI 2.6.0 problem

by Javier Laguna -
Number of replies: 1

Hello everybody!

I'm upgrading a module from moodle 1.8.13 to moodle 1.9.11 and I have a problem with YUI.

They appear to me all the time this two messages:

YAHOO.util.CustomEvent is not a constructor

YAHOO.util.Connect is undefined

In my code I have this:

require_once($CFG->libdir.'/ajax/ajaxlib.php');
require_js('yui_yahoo');
require_js('yui_dom');
require_js('yui_connection');
require_js($CFG->wwwroot.'/mod/evalgroupmanager/evalgroupmanager.js');

I dont know what do I have worng but I was looking all over the forums and YUI website and I didnt find anything that works.

Could you help me with this?What can it be?

Thank you very much beforehand!

Average of ratings: -
In reply to Javier Laguna

Re: YUI 2.6.0 problem

by Javier Laguna -

I solved it.

Just in case that someone else needs it, it was needed just to add:

require_js('yui_event');

cheers!