Hi, I just got the Tigra Calendar to work and I got it to work with the database format which is YYYY/MM/DD
I need the database format since it is good for sorting.
Doing this was not that easy actually and there was a quirk.
I will point out what I had to do and try not to make this too long.
However, I am describing everything because it sounded like the last poster was having troubles.
So maybe making it long will help if he never got it to work.
I also think I need to do this chronologically for it to make sense.
I mention the quirk at the bottom and I have a question at the very end.
Here goes.
Background:
I downloaded from the extension in post #1
http://www.mediafire.com/download/ngznyzm3j0m/Cal.zip
I really am not sure if I installed this or not. Probably not for these reasons.
- I left it in the download directory in the zip file and I copied that zip file to a directory where I store this type of stuff.
I did not put it in the WWB extensions directory below.
C:\Users\MyName\Documents\WYSIWYG Web Builder\system\extensions
I noticed in the above diectory that these files were in there
calendar_us.uwbx
calendar_us.wbx
I did an install of the extension using the WWB install manager (I assuming it grabbed the above 2 files).
Next Day Update: I was correct above. I installed the calendar on my notebook. The calendar source library files do not get installed in your local directory when you install the extension with WWB. Instead they get installed after you have dragged the calendar onto the form in your page then you publish the website to your localhost directory (they they are there).
Okay, however I did read the documentation in the pdf file from the download. It was very helpful.
It explained how this code is needed to be inserted in the "
between <head></head> tags"
Code: Select all
<title>Document's Title</title>
<script language="JavaScript" src="calendar_us.js"></script>
<link rel="stylesheet" href="calendar.css">
The documentation also explained how the extension inserts the code below into the form.
Code: Select all
<form name="testform">
<input type="text" name="testinput" />
<script language="JavaScript">
new tcal ({
'formname': 'testform',
'controlname': 'testinput'
});
</script>
</form>
After publishing the test page I created in WWB I was able to view the source code and verify the code shown above was there.
However it would not work yet (the quick was not fixed).
Okay I went into my LOCALHOST directory where all the WWB publish files go and I noticed the JS directory.
I inspected that directory and I found the file I want "js/calendar_db.js".
So I changed the code in the WWB insertion point "
between <head></head> tags" to the code below.
Code: Select all
<title>Document's Title</title>
<script src="js/calendar_db.js"></script>
<link rel="stylesheet" href="css/calendar.css">
Notice the code above has the "js/calendar_db.js" file I need for the YYYY/MM/DD format calendar.
I checked the published page source code and this is what I am getting.
Code: Select all
</style>
<script language="JavaScript" src="js/calendar_us.js"></script>
<link rel="stylesheet" href="css/calendar.css">
<title>Document's Title</title>
<script src="js/calendar_db.js"></script>
<link rel="stylesheet" href="css/calendar.css">
So you can see from the above the WWB is creating the "js/calendar_us.js" source for the US format MM/DD/YYYY but I am overriding it below to get the database format YYYY/MM/DD with the "js/calendar_db.js" entry. It worked (but only after I found and fixed the quirk.
Here is the quirk.
If I start off with a fresh page and drag in the form area it creates an ID of "Form1".
Next if I drag in the EditBox onto the form it creates an ID for it of "Editbox1"
Now if I drag in the "Tigra Canendar (US Version) from the Toolbox Extension area it creates the default properties this way.
"form1" and "EditBox1"
Notice how there is a problem with the case in both of them. This caused it to not work.
Summary:
I got it to work by 0/ reading a fair bit to try and piece the puzzle together, 1/ getting the form name and text box to match exactly (cut and paste is my best friend - type as little as possible). 2/ overriding the US version source with the Database version source.
Here is the question?
How do I get the database version into the extension toolbox of WWB? I would rather my page source code not have the double source of the U.S. format and the database format.
Thanks,
John