localendar Forums Homepage

Print at Oct 8, 2025, 12:11:34 AM View all posts in this thread on one page
Posted by scrantoncc at Jan 31, 2012, 1:39:25 PM
Calendar Down
Calendar will not show up on my site ... just noticed it this morning ...

Posted by johnbosco at Jan 31, 2012, 9:26:03 PM
Re: Calendar Down
There appears to be an incorrectly terminated literal string:

*Incorrect string*
-- document.write("<script>function toggleCalendar(id){$(".cal_"+id).toggle();}</script>

*Correct string*
-- document.write("<script>function toggleCalendar(id){$(".cal_"+id).toggle()</script>"};

JB

Posted by scrantoncc at Jan 31, 2012, 9:47:31 PM
Re: Calendar Down
I'm not finding that to be the answer. We've had this up for months and the code hasn't been touched ... like others on the additional down calendar posts ... it just went down last night/ this morning ....

Posted by johnbosco at Jan 31, 2012, 10:10:00 PM
Re: Calendar Down
Hi. From looking at LoCalendar's "Common.js" file, there appears to be an issue with line 4769 and the termination of that literal string. My previous post quoting my version of a correct string was in fact incorrect (my bad, it's been a long day and I didn't review it properly). As far as I can tell, a working line 4769 string is as follows:

document.write("<script>function toggleCalendar(id){$(".cal_"+id).toggle()}</script>");

The incorrectly terminated string on line 4769 within file "Common.js" is as follows:

document.write("<script>function toggleCalendar(id){$(".cal_"+id).toggle();}</script>

Maybe I'm completely wrong in this, but when I take a local copy of "Common.js" and edit using my 1st string above, I see my embedded calendar rendered, whereas with the 2nd string above, I receive a blank screen. - JB

Posted by scrantoncc at Jan 31, 2012, 10:16:44 PM
Re: Calendar Down
We're back up. Thank you

Posted by support at Feb 1, 2012, 10:22:02 PM
Re: Calendar Down
Please see
http://www.localendar.com/lcf/lcforums/viewthread?thread=8456&c=9

for an update.

Thanks for folks posting suggestions; I should point out that a lot of our js is dynamically generated (eg common.js), so the problem was a little deeper.
----------------------------------------
Marc Higgins
Support Associate, localendar.com
Follow us on Twitter! http://www.twitter.com/localendar_news


Help! | Cobranding | Legal | Privacy Policy | About localendar.com | Contact Us