joris

Ajax Request

Mar 24th, 2012
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.97 KB | None | 0 0
  1.  <script>
  2.      window.addEvent('domready',function(){
  3.             document.id('ajax').addEvent('click',function(){
  4.                     var username = $('#name').val();
  5.                     var password = $('#pass').val();
  6.                     ajaxFace = new LightFace.Request({
  7.                             url: 'http://www.berthojoris.com/dev/jqm/ajax.php',
  8.                             width: 220,
  9.                             height: 40,
  10.                             draggable: true,
  11.                             fadeDuration: 500,
  12.                             request: {
  13.                                     data: {
  14.                                             name: username,
  15.                                             pass: password
  16.                                     },
  17.                                    
  18.                             },
  19.                             title: 'Notification'}).addButton('Close', function() { this.close(); },'blue')
  20.                     .open();   
  21.             });
  22.     });
  23.     </script>
Advertisement
Add Comment
Please, Sign In to add comment