I'm working on upgrading a calender to AJAX so it is much snappier,
however i'm having trouble getting it to recognise my links.

I have created this function:

  function loadContent(id) {
   $("#imacalendar").load('inc/eventcalendar.php?event_date='+id);
  }

Which is called into use like so:

  <a href="javascript:loadContent(*date*);">

However this isn't working. I know the variables are getting 'lost'
because the function works if I test it like this:

  function loadContent(id) {
   $("#imacalendar").load('inc/eventcalendar.php?event_date=2008-05');
  }

... the calendar correctly retrieves and displays May =)

I'm sure this is super basic, so any help is greatly appreciated!

Reply via email to