I have some javascript that goes out and fetches a javascript "class" on another xhtml page. The remote javascript looks something like the following:
(function() {
this.init = function() {
jQuery("#__BALLOONS__tabs").tabs();
};
})
After this is fetched into this.javascript, I try to eval it and instantiate:
this.javascript = eval("(" + this.javascript + ")");
this.javascript = new this.javascript();
this.javascript.init();
Of course, this works perfectly in all browsers except IE. In IE, it fails at the eval line. Does anyone have suggestions on how I can make this work in IE or an alternative.
Thanks, Pete