Home > Joomla 1.5 > Open modal box window

Open modal box window


ModalBox is a JavaScript technique for creating modern (Web 2.0-style) modal dialogs or even wizards (sequences of dialogs) without using conventional popups and page reloads. Joomla gives simple way to open this window it uses moo tool’s library. Let’s start ..

To open modal box add this very top of your template in php tag.
JHTML::_(‘behavior.modal’);
Now you are ready to open modal box window.
Write this code ……….
in anchor tag
href=”your Url” rel=”{handler:’iframe’, size:{x:500, y:500}}” close anchor.
To close modal window
window.parent.document.getElementById(‘sbox-window’).close();

To open modal box add this very top of your template in php tag.JHTML::_(‘behavior.modal’);
Now you are ready to open modal box window.Write this code ……….in anchor taghref=”your Url” rel=”{handler:’iframe’, size:{x:500, y:500}}” close anchor.

To close modal windowwindow.parent.document.getElementById(‘sbox-window’).close();

Advertisements
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: