Enter a query to search our site. Note that you can use "*" and "?" as wildcards. Enclosing more than one word in double quotes ("CSS Layout") will search for the exact phrase.

Project Seven dot com
Search
 

pvii productivity tools 01

PVII Load Handler Commands (Move To Loader)

The PVII Load Handler commands allow you to easily move onLoad and onResize behaviors from a page's <body> tag to a special JavaScript function in the <head>. Alternatively, you can move the behaviors from the <head> back to the <body>. You can move just the onLoad events, just the onResize events, or both.

Why Bother Moving the Events?

Standards Compliance

The W3C has deprecated the onResize event for the <body> tag. Using onResize, will cause your page to not validate. In and of itself, this is not cause for panic, as most browsers still do support the event. However, when something becomes deprecated by the W3C, that means that browser makers are encouraged to ceases supporting the deprecated item. In other words, a day will come when onResize just doesn't work.

Ad and Popup--Blocking Software

Some ad-blocking, popup-blocking, and personal firewall software actually disable the <body> event handlers, including onLoad, in an effort to prevent unwanted popup window and other annoying things from taking place. While well-written software of this nature can block popups by just detecting certain types of scripts, all software is not so well-written and could render your onLoad events useless. At the time of this writing, ZoneAlarm personal firewall is an example of software that can disable onLoad events on the <body>.

Dreamweaver Templates

When using Dreamweaver's Template features, it can get a bit dicey when you want to have your <body> tag (or properties within the tag) editable. By moving your onLoad and onResize handlers to the <head> of your template, you can tuck them inside a pair of simple editable comments, making it easier to manage the pages based on the template, while also addressing Standards compliance and Ad-blocking software issues.

The PVII Load Handler system contains two Commands:

  1. Move To Loader -Moves the existing behaviors on the <body> tag to the JavaScript function.
  2. Move From Loader -Restores the behaviors from the JavaScript function back to the <body> tag.

Command 1: Move To Loader

Overview

The Move To Loader command examines the <body> tag for onLoad and onResize events and gives you the ability to move them from the <body> tag to a JavaScript function and call in the <head> of your document.

Note: The command will be unavailable (grayed out) if there are no behaviors defined on the <body> onLoad or onResize events.

Running the Move To Loader Command

  1. Choose Commands --> PVII Productivity Tools --> Load Handler by PVII - Move To Loader to open the interface.
  2. Select the event type to move (onLoad, onResize, or both).
  3. Click OK to move the events.

The Interface

The Move To Loader interface allows you to quickly and easily move the existing onLoad and/or onResize behaviors on the <body> tag to a JavaScript function in the page <head>.

Move To Loader Interface

Move onLoad events

This box will be checked if the system detects one or more behaviors applied to the body's onLoad event. Leave this box checked if you wish to move all of the behaviors that are currently on the body's onLoad event. These behaviors are triggered when the page first loads.

Note: This box will be unavailable (grayed out) if there are no behaviors currently defined on the <body> onLoad event.

Move onResize events

This box will be checked if the system detects one or more behaviors applied to the body's onResize event. Leave this box checked if you wish to move all of the behaviors that are currently on the body's onResize event. These behaviors are triggered whenever the browser window size is changed.

Note: This box will be unavailable (grayed out) if there are no behaviors currently defined on the <body> onResize event.

The Interface Control Buttons

OK

Once you have selected the event type(s) to move, click OK to apply the command. The selected event type(s) will be moved from the <body> tag to the LoadHandler JavaScript function in the page <head>.

Cancel

Click the Cancel button to close the interface without making any changes to your page.

Help

Click the Help button to open the associated Help File in your browser. The page can remain open for easy reference while you continue working with the extension interface.

Command 2: Move From Loader

Overview

The Move From Loader command will restore onLoad and/or onResize behaviors that have been moved to the Load Handler JavaScripts back to the page's <body> tag.

The restore process is additive and will not overwrite existing behaviors. If there are any onLoad or onResize behaviors present on the <body> tag, the behaviors being restored will be added to the existing ones.

Note: The command will be unavailable (grayed out) if there are no behaviors defined in the P7 Load Handler scripts on the page because there would be nothing to move!

Running the Move From Loader Command

  1. Choose Commands --> PVII Productivity Tools --> Load Handler by PVII - Move From Loader to open the interface.
  2. Select the event type to move (onLoad, onResize, or both).
  3. Click OK to move the events.

The Interface

The Move From Loader interface allows you to quickly and easily restore behaviors back to the onLoad and/or onResize events of the <body> tag.

Move To Loader Interface

Move onLoad events

This box will be checked if the system detects one or more behaviors applied to the body's onLoad event. Leave this box checked if you wish to restore behaviors back to the <body> tag's onLoad event. These behaviors are triggered when the page first loads.

Note: This box will be unavailable (grayed out) if there are no onLoad behaviors currently defined by the P7 Load Handler JavaScripts on the page.

Move onResize events

This box will be checked if the system detects one or more behaviors applied to the body's onResize event. Leave this box checked if you wish to restore the behaviors back to the <body> tag's onResize event. These behaviors are triggered whenever the browser window size is changed.

Note: This box will be unavailable (grayed out) if there are no onResize behaviors currently defined by the P7 Load Handler JavaScripts on the page.

The Interface Control Buttons

OK

Once you have selected the event type(s) to move, click OK to apply the command. The selected event type(s) will be moved from the P7 Load Handler JavaScripts (in the <head>) to the page's <body> tag.

Cancel

Click the Cancel button to close the interface without making any changes to your page.

Help

Click the Help button to open the associated Help File in your browser. The page can remain open for easy reference while you continue working with the extension interface.