I would like to add sound alerts to a web application. I believe that Flash is the best way to do this to support all major browsers, ie. IE, Firefox, Chrome, Safari. Chrome does not seem to work with the non-flash sound solutions.
I have been using jQuery and would like to use the jQuery Sound plug-in. An example is shown at jQuery Sound Plug-in Demo, however I can not get this working in IE7 and IE8 Beta.
I am getting a JavaScript issue within the section of code below.
load: function(evt, url) {
var self = $(this);
var id = self.data("sound.settings").id;
var movie = self.data("sound.get_movie")(id);
movie.load(url);
self.data("sound.isPlaying", true);
},
The plug-in is also using the following function to get the Flash movie which looks fine for IE browsers.
var get_movie = function(id) {
var movie = null;
if ($.browser.msie) {
movie = window[id];
} else {
movie = document[id];
}
return movie;
};
Is there something I am missing here so this can work in IE7 and IE8 Beta? Any help would be greatly appreciated.