How to change src (ajax ref in options (events: 'href') when calling refetchEvents

Posted by Martin Glynn on Stack Overflow See other posts from Stack Overflow or by Martin Glynn
Published on 2010-04-19T21:17:35Z Indexed on 2010/04/19 21:23 UTC
Read the original article Hit count: 232

Filed under:
|

My site is for listing theatrical productions

(http://theaterOnline.com)

I want to use a drop down list to enable users to filter the listings by location or genre.

The following code refreshes the screen:

$("#cfilter").change(function() { $('#calendar').fullCalendar('refetchEvents' ) })

but I need to be able to change SRC in the ajax call below:

$.ajax({
                url: src,
                dataType: 'json',
                data: params,
                cache: options.cacheParam || false, 
                success: reportEventsAndPop})

which is a passed parameter from eventSources[1]

TIA for anyone who can help!

© Stack Overflow or respective owner

Related posts about fullcalendar

Related posts about jquery-ajax