ETC
RSS Links
Tag Cloud
5.3 abstract actionscript actionscript3 Adapter adobe Advance ajax Anonymous Anonymous function apache Array array_walk article as as3 as3corelib Auth Base64 basics bind bitmap bug bytearray callback catch chart charts class cleanup client closures closures function CodeIgniter commerce communicate Communicator compiler console console.log controller crypto css custom event Decryption design patterns dialog dispatch div download Dwoo ecommerce editor Encode Encryption engine ereg ereg_replace error event example experiment explorer facebook Factory Factory Method file Flash Flash Media Server FMS Framework free function garry GNU GPL grchart hash link html ide ie ifconfig image insert internet explorer ip javascript jpeg jQuery jquery plugin js json lachman layer Layout Solution lib libary linux load local localhost log login manager MD5 MDB media microsoft Migrating Mime Type module modules mod_rewrite mvc mysql News Object Oriented old one time link one time url OOP Open Power Template open source oscommerce package pattern PEAR PEAR::Auth php php4 php5 php 5.3 phpclasses.org PHP Framework phpwebcommerce plugin PNG popup posfix POST preg_match preg_replace Presentation problem rect regex regexp request Requirements screen screen manager script select send server session shopping Shopping Cart singleton smarty Solution source code Specification sql ssh static STP table template templates this tooltip trigger try Tutorial UI update url User Interface users utf-8 util utils validate variables vi view vim virus warning widget window wordpress xml XTemplate yourinspirationweb
Dialog UI with jQuery
Very useful widget from jQuery package is the Dialog windows.
its the best replacement for alert command and its very easy to use.
How its work:
First of all we need to load the jQuery js files & the default UI Widgets css file (you can download the css file and customize it).
put the code in header (
Than add the div with the title and the content
2
3
4
5
This is the default dialog which is useful for displaying information. The dialog window can be moved, resized and closed with the 'x' icon.
</div>
Init the jQuery dialog:
2
3
$(function() { $( "#dialog" ).dialog(); });
// ]]></script>
The complete code:
2
3
4
5
6
7
8
9
10
11
12
13
<script type="text/javascript">// <![CDATA[
$(function() {
$( "#dialog" ).dialog();
});
// ]]></script>
<div id="dialog" title="Basic dialog">
This is the default dialog which is useful for displaying information. The dialog window can be moved, resized and closed with the 'x' icon.
</div>
Screenshot of jQuery Dialog UI Widget:
jQuery UI Dialog widget
Have fun,
Garry Lachman