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: Idea
daveinsurgent
Newbie

Posts: 1
Registered: 2/1/2010
Location: Canada
Member Is Offline
posted on 2/1/2010 at 06:05 PM Reply With Quote
Idea


I needed to use a different directory for images. I specified the optional parameter, and I started getting undefined errors (months was undefined).

I modified/added this block to the constructor

Code:

if (!a_tpl)
a_tpl = A_TCALDEF;
else {
for (var key in A_TCALDEF) {
if (!a_tpl[key]) {
a_tpl[key] = A_TCALDEF[key];
}
}
}

So if I specify a_tpl but not all the customizations (e.g. just the imgpath) it will still pull the defaults from A_TECALDEF.

Hope this helps.
View User's Profile View All Posts By User U2U Member
paladin
Junior Member

Posts: 3
Registered: 5/5/2010
Location: Indianapolis IN USA
Member Is Offline
posted on 5/6/2010 at 08:05 AM Reply With Quote
Re: Idea


I needed to set the image directory in my project as well. This is how I did it - preset A_TCALDEF.imgpath.


<SCRIPT type="text/javaScript" src="$SCR_PATH/calendar_dbx.js"></script>
:
:
<script...>

A_TCALDEF.imgpath = '../../img/';

var oSTARTDATE; // to hold date object ref when created...
</script>
:
:
<td>
<input class="dateInput" type="text" name="startdate" id="startdate" value="" />
<script type="text/javascript" language="javascript">
oSTARTDATE = new tcal ( { 'formname': 'PAGEFORM'
, 'controlname': 'startdate'} );
</script>
</td>
:
:
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