DW Extensions
 

Dynamic JustSo Picture Window
(ver1.0.1 for UD4 and ver2.0.0 for MX, MX2004 )
Basics Example Issues

Discontinued. This page is here now only as Help for current users.

This Server Side Behavior for Ultradev4 and MX/MX2004 is the first cousin of the non-dynamic, original JustSo Picture Window (JSPW1) behavior (available on the DW Exchange) which is a resolution detector and popup window utility. (But see the new version of the non-dynamic JustSo Picture Window: jspw3) The SSBehavior, which allows for the dynamic database-driven addition of the JSPW1 behavior, pops up a centered window containing an image, The window may be just large enough to enclose the image, or optionally may have a margin of predetermined width and color, or may instead fill the entire available screen. The image itself is always shown in its entirety, no matter the screen resolution. In most browser platform combinations, the window can be closed by clicking anywhere on the screen.

Bronze, which is free, requires that you add to your database two columns - for the height and width of your images. Version Gold, which is ridiculously cheap, on the other hand automatically detects the image dimensions so there is no need to add this information to your database.

Basics:

To add the behavior, first select the desired trigger item - in or out of Repeat Regions - which may be:

  • linked text
  • linked Dynamic text
  • linked or unlinked images
  • or image hotspots

Find the Behavior in the Server Behaviors Panel.

The User Interface, shown below has numerous fields. The combination of the "Image Directory" and "Image Name" fields MUST accurately point to the where the images are found on the server. Get this right, and all else virtually always goes smoothly.

Roll over each field for help.

Then be sure to upload the folder /vwd_scripts/ and its contents to the ROOT of your remote site, and of course do not forget to upload the images to their folder as well.


Example, as viewed in Live Data mode or in a Browser:

Dynamic JustSo Picture Window Examples

Known issues :

Page does not display locally?:

If you are using version Gold, and are also running Norton Antivirus, you'll have to temporarily toggle off the NAV option "Script Blocking". Otherwise it block access to our script without offering any messages - simply hangs the display of the page in your browser.

Image hotspots:

1) On occasion you will find that the behavior is applied to the MAP tag rather than to the AREA tag as it ought. If this occurs, you must try again. And if you can see a pattern to this, please do tell me. If it leads to a "cure", you'll get the next major upgrade for FREE!

2) If you delete the behavior from a hotspot, it will leave a yellow error-highlight on your page. Do not panic. In Code View, simply add a space anywhere safe , like after a closing tag somewhere, then click anywhere on your page in Design View and voila, the yellow error-highlight disappears. If you can tell me now to solve this issue, you'll get the next major upgrade for FREE!

Runtime Error msg:

"Microsoft VBScript runtime error '800a000d'  Type mismatch: 'addEsc'"
is caused by a typo in version 1..0.0: somehow an equals sign got lost. This affects VBscript code only. Fixed by version 1.0.1

Unanswered questions?

Please do not hesitate to ask for clarification of any aspect of this SSBehavior. These will be answered and ultimately will appear on this page as well.

Here is a shameless request: As you may surmise, developing extensions is very time-consuming. To offset a portion of the losses involved - I am now asking for donations. If you find any of my extensions save you time and effort, I'd very much appreciate a donation, paid via PayPal:
A modified jump menu:

I am ready to help you by writing javascripts, or that specialized Dreamweaver extension you've always wanted, on a contract basis. Just email me at michael@valleywebdesigns.com.

 

[ home | services | examples | contact me ]
Site © 1998 ValleyWebDesigns
We have a strict Privacy Policy

for JustSo Picture Window