MLoad

While the JavaScript version of Mload is not as robust and not as widely used as the PHP version it is still useful for creating dynamic JavaScript powered applications.

All MLoad methods will append either a CSS or JavaScript file to the head of the document.

Methods



jsFramework(file:String):void


This function appends a script tag to the head with the source attribute starting from the frontend/framework/js directory.

jsApplication(file:String):void


This function appends a script tag to the head with the source attribute starting from the frontend/js directory.

jsCache(file:String):void


This function appends a script tag to the head with the source attribute starting from the frontend/cache directory.

jsExternal(url:String):void


This function appends a script tag to the head with an external source attribute. This function is very useful for dynamically loading libraries from third parties like Google, Twitter, and Facebook.

cssFramework(file:String):void


This function appends a css link tag to the head with the source attribute starting from the frontend/framework/css directory.

cssApplication(file:String):void


This function appends a css link tag to the head with the source attribute starting from the frontend/css directory.

cssCache(file:String):void


This function appends a css link tag to the head with the source attribute starting from the frontend/cache directory.

cssExternal(url:String):void


This function appends a css link tag to the head with an external source attribute.