Hello,

We have released new versions of Likno Web Modal Windows Builder: Builds #230 up to #236.

Check out What's New:

- Added support for opening specific sheets (with "Sheet Names") of multi-sheet modal windows when using the "Opens on Page Load" functionality, either through a "variable in page" or a specific "URL anchor". Read more about this technique

Moidal Window Opens on Page Load

- Added support for custom "Modal Window Z-index" per window.

- When multiple modal windows are open concurrently, the z-index of each new window is increased so that it always appears on top of the others.

- Minor interface fixes for proper highlighting of properties.

- Interface enhancements on the "Modal Window Shadow" property (remembers unused values, etc.).

- Added new property: Modal Window Rounded Corners. In browsers that properly support CSS3, the corners of the modal window can be rounded (supported in IE9+, Opera 10.50+, Firefox 3.5+, Safari/Webkit 522+, Chrome and others). You can adjust the roundness of each corner all together or even separately!

Modal Window Rounded Corners

Modal Window Rounded Corners
- Added new property: Modal Window Shadow. Available in browsers that properly support CSS3 (IE9+, Opera 10.50+, Firefox 3.5+, Safari/Webkit 522+, Chrome and others). See first image above.

- Improved the “close” behavior in IE6 and iPhone/iPad.

- Improved the interface speed.

- Fixed an issue with properly saving the custom “After Close” javascript code (if enabled).

- Fixed an issue with the “ESC” key that did not work in some cases.

- Fixed the issue with the background scroll blocking which was omitted in the last releases.

- Fixed a case where setting a custom "glide" effect did not work.

- Fixed an issue with a javascript error when the compile name contained slashes.

- The core library uses the new jQuery v1.6.2 library.

- Added keyboard navigation for multi-sheet windows (slideshows). The visitor can now use the arrow keys to navigate through sheets (slides) and the "P" key to "play/pause" the modal slideshow.

keyboard navigation slideshow

- New jQuery loading method: If a jQuery instance already runs on your page (because you load it independently from Likno) then the Likno library does not load its own jQuery instance but uses the existing one.

- Added more name checks to avoid jQuery conflicts.

- Fixed a case where the loading of modal windows from different folders could make their images to not appear.

- Fixed a problem with external URLs.

- While the modal is open the scrolling of the page in the background is now blocked.

- Fixed a case where passing the starting page as a parameter (through the API) was not working.

- Fixed a case where the modal did not properly break out of frames in Opera.

- Fixed a conflict with MooTools where modals in IE9 always appeared full-screen.

 

You can download the latest version at:

http://www.likno.com/jquery-modal-windows/download.php

 

 

September 7th, 2011LWMW: Opens on Page Load

Feature available since Build #236, September 7, 2011

This topic elaborates further on the "Opens on Page Load (method 5)" feature of Likno Web Modal Windows Builder .

A modal window can open automatically when the page appears, with any of the following methods:

 

Method 5.1  (interface)

 

Specify this feature inside the project (through the interface)

Just check this option:

 

 clip0015

 

Note: Only one modal window can open automatically on page load (so do not use this option for multiple windows on the same page). 

 

Method 5.2  (variable)

 

Use a javascript variable in the page that contains the modal window

In the HTML code of your page add the following code:

 

    <script>var modalwindowname_open=1;</script>

 

OR

 

    <script>var modalwindowname_open="SheetName";</script>

 

where:

modalwindowname is the name of your modal window here:

 

 clip0025

 

 

For example, the proper code for showing the 2nd modal window of the above project is:

 

<script>var Modal_Window_2_open=1;</script>

 

(the value "1" specifies the window's sheet if more than one exists, see below)

 

 

Notes on "Method 5.2" (variable in page):

 

 

- if the modal window is a "multi-sheet" one, you can use a different value (other than "1") in the variable to specify a different sheet to appear (other than the 1st one) when the modal window opens.

 

You may also use a "sheet name" instead of a number (sheet order), if you expect that the sheet order may change in the future (by adding new sheets between the existing ones, etc.).

 

How?

 

Remember that a "multi-sheet" window is defined by consecutive DIVs.

 

You can add an attribute called lwmwSheetName to the particular sheet (DIV) that you want to be displayed when the modal window opens and then use its value in the variable.

 

For example, for the following "multi-sheet" window that contains 4 sheets...


<div>

    <p>This is the content of the sheet for the product "iPhone"</p>

</div>

 

<div lwmwSheetName="product_iPad">

    <p>This is the content of the sheet for the product "iPad"</p>

</div>

 

<div>

    <p>This is the content of the sheet for the product "iMac"</p>

</div>

 

<div lwmwSheetName="product_Mac_mini">

    <p>This is the content of the sheet for the product "Mac mini"</p>

</div>

 

...you may open the modal window "on Page Load' with the "iPad" sheet displayed, by using ANY of the 2 following HTML code in the page:

 

<script>var modalwindowname_open=2;</script>

 

OR

 

<script>var modalwindowname_open="product_iPad";</script>

 

As you realize, the 2nd implementation will still work if you later decide to change the order of the "iPad" sheet from 2nd to 1st, but requires some additional code when initially setting up the sheet's "DIV".

 

On the other hand, the 1st implementation is simpler as no additional code is required anywhere, but it is only safe as long as you are sure that the order of the sheets will remain unchanged in the future.

 

 

- if multiple projects use the same modal window name (in the same page), add the compiled project name in front of the variable to distinguish the window:

 

<script>var my_first_project_Modal_Window_1_open=1;</script>

 

Important! If you use dashes ('-') in your compiled project name, you need to make them underscores ('_'). For example, if your project name is likno-modal-project.js, the variable should be as follows:


<script>var likno_modal_project_Modal_Window_1_open=1;</script>

 

 

 

 

Method 5.3  (anchor in URL)

 

Use a special anchor in the URL that opens the page

Open the page that contains the modal window using a special "anchor" on its URL:

 

        http://www.mysite.com/mypage.html#modalwindowname_1

 

OR

 

http://www.mysite.com/mypage.html#modalwindowname_SheetName

 

 

For example, this is a proper URL if the name of the modal window is "Modal_Window_2":

 

        http://www.mysite.com/mypage.html#Modal_Window_2_1

 

 

 

Notes on "Method 5.3" (anchor in URL):

 

 

- this method works only when the page is opened by a link from another page, not from the same page (because most browsers do not refresh the page when the link is from the same page).

 

 

- if the modal window is a "multi-sheet" one, you can use a different number at the end (other than "1") to specify a different sheet to appear (other than the 1st one) when the modal window opens.

 

You may also use a "sheet name" instead of a number (sheet order), if you expect that the sheet order may change in the future (by adding new sheets between the existing ones, etc.).

 

How?

 

Remember that a "multi-sheet" window is defined by consecutive DIVs. You may optionally add an attribute, called lwmwSheetName, to the particular sheet (DIV) that you want to be displayed when the modal window opens and then use its value in the URL.

 

For example, for this "multi-sheet" window that contains 4 sheets...


<div>

    <p>This is the content of the sheet for the product "iPhone"</p>

</div>

 

<div lwmwSheetName="product_iPad">

    <p>This is the content of the sheet for the product "iPad"</p>

</div>

 

<div>

    <p>This is the content of the sheet for the product "iMac"</p>

</div>

 

<div lwmwSheetName="product_Mac_mini">

    <p>This is the content of the sheet for the product "Mac mini"</p>

</div>

 

...you may open the modal window "on Page Load' with the "iPad" sheet displayed, by using ANY of the 2 following URLs:

 

http://www.mysite.com/mypage.html#modalwindowname_2

 

      OR

 

http://www.mysite.com/mypage.html#modalwindowname_product_iPad

 

As you realize, the 2nd URL will still work if you later decide to change the order of the "iPad" sheet from 2nd to 1st, but requires some additional code when initially setting up the sheet's "DIV".

 

On the other hand, the 1st URL is simpler as no additional code is required anywhere, but it is only safe as long as you are sure that the order of the sheets will remain unchanged in the future.

 

 

- if multiple projects use the same modal window name (in the same page), add the compiled project name in front of the modal window name to distinguish the window:

 

http://www.mysite.com/mypage.html#my_first_project_Modal_Window_1_1

 

Important! If you use dashes ('-') in your compiled project name, you need to make them underscores ('_'). For example, if your project name is likno-modal-project.js, the variable should be as follows:

 

http://www.mysite.com/mypage.html#likno_modal_project_Modal_Window_1_1

 

 

- you can also add multiple anchors in the same URL to specify initial parameters for other Likno controls that exist in the same page, such as tabs, accordions, etc.!

 

Example: http://www.mysite.com/mypage.html#my_modal_window_1#my_tab_control_3#my_accordion_control_2


(for more info on their usage read the respective Help section of Likno Web Tabs Builder, Likno Web Accordion Builder, etc.)

 

 

Hello,

We have released new versions of Likno Web Modal Windows Builder: Builds #210 up to #214.

Check out What's New:

- Fixed a case with the "Page Links" population option, where clicking within a modal that opened with "_single" would cause the default multi-sheet modal to appear on top.

- Fixed a case where iframes defined in an "embed" content would always take the full size of the modal window.

- Fixed a case with auto-open/close were values over 32 seconds did not work.

- Added support for specifying the Modal Window width/height as a percentage of the screen size (as well as in pixels).

- Fixed a compatibility issue with the prototype library.

- Now supports Opera 11.

- The Official Internet Explorer 9 has been released and AllWebMenus fully supports it.

- Improved the mouse scrolling in the interface, when this is done through the mouse wheel.

- The interface now uses the new "Microsoft Sans Serif" font, in place of the old "MS Sans Serif" font. With this improvement, no "font replacements" and visual inconsistencies occur anymore (in certain configurations).

You can download the latest version at:

http://www.likno.com/jquery-modal-windows/download.php

 

 

Hello,

We have released a new version of Likno Web Modal Windows Builder: Version 2.0 build #208.

Check out What's New:

- Added new "Glide in/out" effects to the "Open/Close" feature.

glide in glide out

- Improved the loading times of the Likno javascript engine. Also resolved known compatibility issues with other engines (mootools, etc.).

- Added support for "touch-screen" devices (iPhone, iPad, iPod etc).

- Minor interface changes (UI fonts, positioning, etc.).

- Fixed an issue that could produce an error if multiple modal windows were applied through a single project (the same one).

You can download the latest version at:

http://www.likno.com/jquery-modal-windows/download.php

 

 

Hello,

We have released a new version of Likno Web Modal Windows Builder: Version 2.0 build #206.

Check out What's New:

- Added the ability to open any modal window on Page Load with 2 new methods:

1. By adding a javascript variable somewhere in page:
<script>var modalwindowname_open=1;</script>

OR

2. By using a special "anchor" in the URL when calling the page:
http://www.mysite.com/mypage.html#modalwindowname_1

Note that with these 2 new methods you can open any modal window on Page Load, even if the related option is not checked in their projects:

auto popup window options

You can also select a different starting sheet, by changing the value "1" to any other numeric value (sheet order).

- Improved the IE9 support.

- Improved the "Image Preloading" feature.

- Fixed an issue when a very large text was used for the content of the modal window.

- Fxed an issue where the cookies for the "Open on Page Load" feature did not work correctly.

You can download the latest version at:

http://www.likno.com/jquery-modal-windows/download.php

 

 


© 2009 Likno Software Blog – Drop-Down Menus, Javascript Menus, DHTML Menus