SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 262 | Next

James Kennard

"Mastering Joomla! 1.5 Extension and Framework Development"


We'll use behavior.modal as an example. This behavior allows us to display an
inline modal window that is populated from a specific URI. A modal window is a
window that prevents a user from returning to the originating window until the
modal window has been closed. A good example of this is the 'Pagebreak' button
used in the article manager when editing an article.
The behavior.modal type does not return anything; it prepares the necessary
JavaScript. None of the behavior types return data; they are solely intended to import
functionality into the document.
Chapter 8
[ 197 ]
This example demonstrates how we can use the behavior.modal type to open a
modal window that uses www.example.org as the source:
// prepare the JavaScript parameters
$params = array('size'=>array('x'=>100, 'y'=>100));
// add the JavaScript
JHTML::_('behavior.modal', 'a.mymodal', $params);
// create the modal window link
echo 'href="http://www.example.org" rel="{handler: \'iframe\',
size: {x: 400, y: 150}}">Example Modal Window
';
The a.


Pages:
250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6