Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: Trouble getting images to appear in calendar
fuzionman79
Newbie

Posts: 1
Registered: 8/3/2010
Member Is Offline
posted on 8/3/2010 at 01:38 AM Reply With Quote
Trouble getting images to appear in calendar


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:

/Users/sachinhaldipur/Desktop/Projects/Mayza/Site/tigra_calendar/img/cal.gif

Thanks.
View User's Profile View All Posts By User U2U Member
hunsford
Junior Member

Posts: 2
Registered: 8/4/2010
Member Is Offline
posted on 8/4/2010 at 05:07 PM Reply With Quote

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' : 'http://www.example.com/img/' // directory with calendar images

This line of code (for me) is on line 12 of the calendar_us.js file.
View User's Profile View All Posts By User U2U Member
hunsford
Junior Member

Posts: 2
Registered: 8/4/2010
Member Is Offline
posted on 8/4/2010 at 05:15 PM Reply With Quote

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.
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Tigra Calendar
Product Demonstrations Live Demos
Free Download Free Download
Product Documentation Documentation
Support Forum Support Forum
 
Tigra Calendar PRO
Product Demonstrations Live Demos
Popup Calendar
Onpage Calendar
Modal Calendar
Product Documentation Documentation
Documenation Page
Change Log
Support Forum Technical Support
Support Forum
Customer Care System
Order Now ORDER NOW!
Add to Cart
View Cart
 

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004