User Tools

Site Tools


js:jquery_shortcuts

SHORTCUTS

  • POST (GET)

$.ajax({
   url: '/some/url',
   data: {'date':date, 'userid': userid .... },
   type: 'POST',
   async: false
}).responseText;

$.post('/some/url', { 'date':date, 'userid': userid .... },
       function(data) {
           // callback
           $('.result').html(data);
       });

  • DOCUMENT READY

$(document).ready(function(){... ==> $(function() {...

js/jquery_shortcuts.txt · Last modified: 2013/03/16 17:40 (external edit)