I have fixed this issue and will upload v1.2 later today. The problem was with the long string in the jQuery ajax function. I am not sure why that is an issue.
However, the way grigory fixed the problem is not ideal. What I ended up doing is modifying the PHP to print out a Javascript Object then used that in the AJAX function. This seems to have cleared up the issue without the need for extra include files.
Enjoy:
$calContent = '<script type="text/javascript">
jQuery(document).ready(function() {
';
$urlArray = '';
$calContent .= 'var options = {';
foreach($options as $k=>$o) {
$urlArray[] = '"'.$k.'" : \''.$o.'\'';
}
$calContent .= implode(", \n",$urlArray);
$calContent .= '};';
$calContent .= ' jQuery("a.ics-nav-button").click(function() {
jQuery.get("' . ICSCALENDAR_URLPATH . 'ajax-load.php?showMonth="+jQuery(this).attr("month")+"", options, function(data) {
jQuery("#ics-calendar-uid > div").unbind();
jQuery().unbind("mousemove");
jQuery("#ics-calendar-uid").html(data);
});
});
});
//jQuery(window).resize(function(){
// alert("Stop it!");
//});
';