Include Script Widget

The Include Script widget allows you to easily add one or more JavaScript files into your page.

Widget Suite Version:  01.03.00 and up

Object Tag

<object id="ANY-UNIQUE-ID-YOU-WANT" codetype="dotnetnuke/client" codebase="WillStrohl.Widgets.IncludeScript" declare="declare">
</object>

This is the simplest method of implementing this widget. The ID attribute is required, but can be any unique value that you want to assign to it. The rest of the values must be in place how you see them above.

Parameters

The following parameters will you to customize how this widget will work and affect your page. 

file

Allows you to specify one or more JavaScript files to be inluded into your page.

Default - empty string/not specified
Notes - Required. If you want to include more than one file, separate each file using a semi-colon.
Usage

<param name="file" value="/Resources/Widgets/User/WillStrohl/js/ScriptName.js" />

<param name="file" value="/Resources/Widgets/User/WillStrohl/js/Script-One.js;/Resources/Widgets/User/WillStrohl/js/Script-Two.js" />

debug

Allows you to print out debugging information to help you troubleshoot the widget.

Default - false
Possible Values - true|false
Notes - None
Usage

<param name="debug" value="true" />

Example Usage

<object id="ANY-UNIQUE-ID-YOU-WANT" codetype="dotnetnuke/client" codebase="WillStrohl.Widgets.IncludeScript" declare="declare">
     <param name="file" value="/Resources/Widgets/User/WillStrohl/js/ScriptName.js" /> 
     <param name="debug" value="false" /> 
</object>
Create the Widget HTML Mark-Up
  1. Enter or select the appropriate values in the form below to generate the skin widget mark-up to use in your site. Copy and paste it into your site.
  2. >> Generate Widget Code