Re: Calendar IMG resources access the Net instead of the local assets folder?
- Just to clarify this issue, the images for the left, right arrows at
the top of the calendar are pulled off the Internet, from an
akamai.net server. If the client browser doesn't have access to the
internet (behind a firewall or on an intranet), then the navigation
arrows won't show, besides, sometimes it gets very slow.
There is also a problem with the close calendar image on the 2up calendar.
Here is a kludge to fix the location of the images to whatever you
want in your application:
var calendarWidget = new
// Set the location of the images
calendarWidget.Config.Options.NAV_ARROW_LEFT = "images/callt.gif";
calendarWidget.Config.Options.NAV_ARROW_RIGHT = "images/calrt.gif";
Don't forget to create a folder with the images in it!
To check, unplug your network, clear your browser cache, shut it down,
launch it again and try the page with the calendar again.
Unfortunately, for the ones using the Calendar2UP, you can't fix the
image for closing the calendar this way. Here is the Yahoo Calendar
code you need to modify:
var imgClose = document.createElement("IMG");
//imgClose.src = YAHOO.widget.Calendar_Core.IMG_ROOT + "us/my/bn/x_d.gif";
// Change to your location
imgClose.src = "images/x_d.gif";
Or find the element using the DOM and change its "src" attribute.
> I've got the 0.11.4 lib, the source in calendar.js shows:
> YAHOO.widget.Calendar_Core.IMG_ROOT =
> == 0 ? " https://a248.e.akamai.net/sec.yimg.com/i/" : "
> NAV_ARROW_LEFT : YAHOO.widget.Calendar_Core.IMG_ROOT +
> NAV_ARROW_RIGHT : YAHOO.widget.Calendar_Core.IMG_ROOT +
> imgClose.src = YAHOO.widget.Calendar_Core.IMG_ROOT +
> I checked and the arrows do not show if there is no internet connection.
> Shouldn't these resources be taken from the local "/assets folder"? In
> addition one of the images for the double calendar is not in the assets
> folder anyway (x_d.gif)
> I'll patch my calendar.js file to get it to work, if anyone is
> I'll post my changes.