.getscript() Equivalent In Mootools?
I was wondering if there is a MooTools equivalent to jQuery's .getScript()? I'm pretty certain that this exists somewhere in MooTools but I haven't been able to find it yet.
Solution 1:
I'm not that familiar with MooTools, but it looks like you can use Asset.javascript
.
var myScript = Asset.javascript('/scripts/myScript.js', {
id: 'myScript',
onLoad: function(){
alert('myScript.js is loaded!');
}
});
Post a Comment for ".getscript() Equivalent In Mootools?"