Browse Widgets

Guidance Illinois workNet Event Calendar Illinois workNet Article Viewer Illinois workNet Related Resources Illinois workNet Service Finder Illinois workNet Success Stories Illinois workNet WIOA Training Search WIOA Board Activity Tool WIOA ePolicy IOER Basic Search IOER Full Search IOER Learning List Explorer IOER Library/Collection IOER Standards Browser

IOER Learning List Explorer

Learning Lists are the best way to group and organize educational resources that need to be shown with direct relationships. The example below is a complete curriculum. Any Learning List can include documents and several types of files, webpages, and learning standards. Levels or branches show a hierarchical organization with descriptions and instructions. Scroll down to "Configure Your Own" to start your snippet.

Sample:

Configure your own:

The Learning List widget must be setup from the Learning List's page. Please visit the desired Learning List (for example, the Health Science Curriculum) and copy the code from the Learning List Menu > Embed Widget section.

Styling Tips

This widget is embedded on your page as an inline (iframe), which typically defaults to 300 pixels wide by 200 pixels high. This is quite small. The content shown by the widget is not of a fixed height. The following tips will help you work through display problems. Don't worry, it's not difficult. It's really easy.

Fixed Size Widgets

As mentioned above, iframes typically default to 300 pixels wide by 200 pixels high, which is pretty small. Fortunately, some CSS styles, whether inline, in a style sheet on the page, or as an inline style, will enable you to have a fixed-size widget.

Suppose you want to embed the widget in the same column on your page that your main content is normally in. Have it be 100% of the width of the column and 500 pixels high. You can do that as an inline style on your iframe tag: Add width:100%; height:500px; to the existing style attribute on your iframe tag. Add one if you don't already have a style attribute on your iframe. It will look like this: style="width:100%; height=500px;"

Borders

Most iframes have a default border. If you'd like a 1-pixel-wide black border around the iframe, you can do that as an inline style on your iframe tag: Add border:1px solid black; to your existing style attribute on your iframe tag. Add one if you don't already have a style attribute on your iframe. It will look like this: style="border:1px solid black;".

For no borders, change the above styles to read border:none; instead of border:1px solid black;.

Variable Height Widgets (Get Rid of Scroll Bars on the Right Side of iframe)

If you're reading this, you've probably noticed a scroll bar on the right-hand side of the widget, and you don't want it there. You can make the height of the iframe variable by including one or two <script></script> tags on your page. Note: This will not get rid of scroll bars on the bottom of your iframe, but will remove the ones on the right side. You'll have to make your iframe wider to get rid of scroll bars on the bottom of your iframe.

Step 1: Include the jQuery Library

Resizing the iframe using our code requires the use of the jQuery library. If you're already using jQuery, skip this step and proceed with Step 2.

We recommend always using the latest version of jQuery, either from the Official jQuery site or from Google's hosted libraries. For example, to include the jQuery 1.12.0 library, add this script tag to your page:
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>

Step 2: Include the Illinois workNet iframe Resizing Code on Page

To enable resizing, add the following above or below the widget's iframe tags:
<script type=:"text/javascript" src="//www.illinoisworknet.com/_layouts/15/1033/workNetV3/Scripts/frameResize.js?V1.1"></script>
<script type="text/javascript" src="//www.illinoisworknet.com/_layouts/15/1033/workNetV3/Scripts/postMessageHandler.js?V1.1"></script>

Step 3: Assign a Resize Class and ID to iframe

The resizing JavaScript requires two things:

  1. Assign an ID to your iframe that is unique on the page
  2. Add a CSS class so that the JavaScript knows it is an iframe that is allowed to be resized

Both of these items are easy to do. To assign an ID to your iframe, if it doesn't already have one, just add id="foo" to your opening iframe tag (don't use "foo" for your ID; that's just a placeholder name; use something meaningful). Thus:

<iframe src="https://apps.il-work-net.com/Rest/Of/Widget/Url" style="width:100%"></iframe>

becomes:

<iframe id="foo" src="https://apps.il-work-net.com/Rest/Of/Widget/Url" style="width:100%"></iframe>

If you already have a class attribute on your iframe, just add a space before its closing quote followed by resizeFrame. If you don't already have a class attribute, add one. Thus:

<iframe id="foo" src="https://apps.il-work-net.com/Rest/Of/Widget/Url" style="width:100%"></iframe>

becomes:

<iframe id="foo" class="resizeFrame" src="https://apps.il-work-net.com/Rest/Of/Widget/Url" style="width:100%"></iframe>