Support FAQ Plugins Script Mode
Script Mode PDF Print E-mail
FAQ - Plugins
Tuesday, 02 September 2008 09:23

What is 'Script Mode'?

Script Mode is a method of inserting media files using a javascript function rather than directly using an object or embed element. Its usage requires that you have either the JCE Utilities mambot/plugin or the MediaObject plugin installed and published.

How  does it work?

When activated, any object/embed html inserted into the editor either with the Media Manager or through the HTML view is converted to a javascript function, eg:

<script type="text/javascript">writeFlash({src: 'images/stories/file.swf', width: 640, height:480});</script>

or

<script type="text/javascript">MediaObject.flash({src: 'images/stories/file.swf', width: 640, height:480});</script>

When the page loads, this function is executed which inserts the appropriate XHTML code into the page to load the media file. This helps to overcome IE object activation issues, correctly resolve realtive urls of the media file when in SEF mode and help render an XHTML compliant page by not using the embed element.

How is it activated?

Script Mode is used by the Media plugin and can be activated/deactivated through its parameters in the Group Manager.

Last Updated on Tuesday, 02 September 2008 13:42