daily pastebin goal
54%
SHARE
TWEET

Untitled

a guest Aug 15th, 2018 46 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. jQuery fullcalendar weirdness
  2. <a id="editCalendarItem" href="##">Edit Calendar Item</a>
  3.  
  4.  
  5. $("#editCalendarItem").click(function(e) {
  6.         $("#adminResult").load("/admin/edit_calendar.cfm") // problem
  7.         //window.location.href='/admin/edit_calendar.cfm'; //no problem
  8.         e.preventDefault();
  9.     })
  10.    
  11. <link rel="stylesheet" text="text/css" href="/scripts/fullcalendar.css" />
  12. <script type="text/javascript" src="/scripts/jquery.js"></script>
  13. <script type="text/javascript" src="/admin/scripts/fullcalendar.js"></script>
  14. <div id="editcal"></div>
  15. <script type="text/javascript">
  16.     $(document).ready(function() {
  17.  
  18.             $("#editcal").fullCalendar({
  19.                 aspectRatio: 2,
  20.                 buttonText: {
  21.                     today:"Go to Today"
  22.                 },
  23.                 events:'/components/system.cfc?method=getEditCalendarItem'
  24.             });
  25.     });
  26.  
  27. </script>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top