Old browser and YUI?

Old browser and YUI?

by Kevin Burton -
Number of replies: 0

I am working on an activity plugin that works flawlessly for IE 11 and Chrome 11. I am running into some issues with IE 8 and Moodle 2.4 that maybe someone in this group has some experience with.

The specific error that I am getting is


'M.mod_mediasite.search' is null or not an object

It seems to be thrown in the line:

YUI().use('node', function(Y) {
M.util.load_flowplayer();
setTimeout("fix_column_widths()", 20);
M.yui.galleryversion="2010.04.08-12-35";Y.use("moodle-mod_mediasite-search",function() {M.mod_mediasite.search.init("id_search_form", 2);
});

 

I have YUI code that initializes the module like:


YUI.add('moodle-mod_mediasite-search', function (Y, NAME) {

. . . .

M.mod_mediasite = M.mod_mediasite || {};
M.mod_mediasite.search = {

. . . .

 

Like I said this works just fine for 'newer' browsers but for Moodle 2.4 and IE 8 either the order of initialization is wrong or initialization is not getting called. Any ideas?

Thank you.

Kevin

 

Average of ratings: -