• download
  • documentation
  • forums
  • demo
  • contact
  • blog

meteora

javascript widgets

Documentation

  • Autocomplete
  • Bubble
  • Calendar
  • Carousel
  • Datagrid
  • Dialog
  • Editor
  • Effect
  • Filebrowser
  • Form
  • Jsonrpc
  • Menu
  • Notebook
  • Picbox
  • Popup
  • Searchlist
  • Selection
  • Spinbutton
  • Tablesort
  • Toolbox
  • Treeview

Meteora.demo

You just saw it ;). Click here to see it again.

Javascript source

Meteora.uses('Meteora.Dialog');
Meteora.onStart(
  function() {
    Dialog.prompt('Your password', {
     
      // default value
      'default': '1337h4x0r',
      // action when the user presses OK
      'onOk': function(dialog) {
        if (this.value) {
         
          Dialog.alert('Your password was: '+this.value);
          dialog.close();
        } else {
          Dialog.alert('Please fill the blank');
       
        }
      },
      // action when the user cancels the dialog
      'onCancel': function(dialog) {
        if (this.value) {
         
          Dialog.alert('Please, empty the input first.');
       
        } else {
          Dialog.question('Are you sure to quit?', {
            onYes: function(dialog){
               dialog.close();
               this.close();
            }.bind(dialog)
          });
        }
      }
    });
  }
);

Documentation

If you're looking for more documentation about this widget, you may want to read Meteora.Dialog documentation

Copyright © 2007-2009 Astrata Software.