Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 20th, 2012  |  syntax: None  |  size: 0.52 KB  |  hits: 11  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Have a script (JS) run when I click the month button
  2. var calendar = $('#calendar').fullCalendar({
  3. select: function(s, e, a) {
  4.   myfunction();
  5. }
  6. });
  7.        
  8. function myfunction(){
  9.   $.ajax({
  10.     url: 'myscript.php',
  11.     data: {myvariable: myvariable},
  12.     type: 'post',
  13.     success: function(data){
  14.       alert(data);
  15.     }
  16.   });
  17. }
  18.        
  19. $(document).ready(function() {
  20.     // ... you can have other things here ...
  21.  
  22.     $('.fc-button-month > .fc-button-inner').live('click', function() {
  23.         alert('I am here ..');
  24.     });
  25. });