Board Logo

Trouble getting images to appear in calendar
fuzionman79 - 8/3/2010 at 01:38 AM

Hey all,

The calendar functions just fine, but the images don't appear. I have tried several times to input the correct path but to no avail. I'm starting with the calendar icon. The code that I see before me is the following:

// create calendar icon
this.s_iconId = 'tcalico_' + this.s_id;
this.e_icon = f_getElement(this.s_iconId);
if (!this.e_icon) {
document.write('<img src="' + a_tpl.imgpath + 'cal.gif" id="' + this.s_iconId + '" onclick="A_TCALS['' + this.s_id +''].f_toggle()" class="tcalIcon" alt="Open Calendar" />');
this.e_icon = f_getElement(this.s_iconId);

I have a feeling it has something to do with a_tpl.imgpath. Does anyone know how I could modify this so that I can incorporate the path that I currently have leading to the cal.gif file? The path that I currently have is:



hunsford - 8/4/2010 at 05:07 PM

It may just be a matter of specifying the URL. The path you're using looks to be that of the file's path on the server, whereas the script is looking for the web address where the file is located.

I was able to get the icon to show up by specifying the URL like so:

'imgpath' : '' // directory with calendar images

This line of code (for me) is on line 12 of the calendar_us.js file.

hunsford - 8/4/2010 at 05:15 PM

I should clarify. I believe that you're allowed to supply either the server path or the web-address path to the image directory. My point was that if the server path isn't working, maybe you should try the web-address path.

Back to forum: