Place for some configs

Li Europan lingues es membres del sam familie. Lor separat existentie es un myth. Por scientie, musica, sport etc, litot Europa usa li sam vocabular. Li lingues differe solmen in li grammatica, li pronunciation e li plu commun vocabules. Omnicos directe al desirabilite de un nov lingua franca: On refusa continuar payar custosi traductores.

Dialog v 1.1

Replaces the nativ Dialogs, Alertboxes Confirmations and Promptboxes with the jQuery UI dialog

Options

optiondefaultpossible valuesdescriptionsinceinfo
nativfalsetrue | false Use nativ dialogs instead of jQuery1.0
texttextsobject all used text. Header, OK button, Cancel Button1.0
Check out the jQuery dialog options for the all options

Methods

Methods are not available on native dialogs!

method namedefaultargumentsdescriptionsinceinfo
setHeader''String Sets the Header of the message1.1
setBody''String Sets the Body of the message1.1
closenullfunction closes the messagebox. Argument can be a callback function which get'S trigger after the message is closed1.1
closeAllnullfunction closes all open messagebox. Argument can be a callback function which get'S trigger after the message is closed1.1

Usage

$.alert('This is a simple Message');
$.prompt('text', 'inputvalue', [callback [,cancelcallback]);
$.confirm('text', [callback [,cancelcallback]);

Usage with public methods

var dialog = $.alert('This message can be accessed via public methods');
dialog.setHeader('Set a header');
dialog.setBody('Set a Body');
dialog.close(function(){ // callback function });

Examples


use nativ = (window.navigator.standalone === undefined) ? true : false to use nativ dialogs only on iOS

Messages v 1.1

Displays a message on the top right corner

Options

optiondefaultpossible valuesdescriptionsinceinfo
headernullString Defines the Header of the message1.0
live5000integer Defines the lifetime in milliseconds1.0
topoffset90integer Defines the top offset of the boxes if the window isn't scrolled1.0
fadeTime500integer Defines the time to fade out the boxes in milliseconds1.0
stickyfalsetrue | false ignores the lifetime. A click on the close button is required1.0

Methods

method namedefaultargumentsdescriptionsinceinfo
setHeader''String Sets the Header of the message1.1
setBody''String Sets the Body of the message1.1
closenullfunction closes the messagebox. Argument can be a callback function which get'S trigger after the message is closed1.1
closeAllnullfunction closes all open messagebox. Argument can be a callback function which get'S trigger after the message is closed1.1

Usage

$.msg('This is a simple Message');
$.msg("This Message will stay until you click the cross",{sticky:true});
$.msg("This is with a custom Header",{header:'Custom Header'});
$.msg("This stays exactly 10 seconds",{live:10000});

Usage with public methods

var message = $.msg('This message can be accessed via public methods');
message.setHeader('Set a header');
message.setBody('Set a Body');
message.close(function(){ // callback function });

Examples