Hi All
Heres a question from outfield. Wanting to include a simileTimeline
calendar in a system. On my laptop have a TW with SimileTimeLine
working. When I put that TW on a pendrive and copy it into my
desktop...it fails. When opening the timeline I get an error message
Error in macro <<Simile Timeliine>>...clicking on that I read
".....TypeError: v1 is null"
Searching through the TW I find that "v1" is a function inside (at
the bottom of the SimileTimelineBundlePlugin) namely -
{{{Timeline.NativeDateUnit=new Object
();Timeline.NativeDateUnit.createLabeller=function(locale,timeZone)
{return new Timeline.GregorianDateLabeller
(locale,timeZone);};Timeline.NativeDateUnit.makeDefaultValue=function()
{return new Date();};Timeline.NativeDateUnit.cloneValue=function(v)
{return new Date(v.getTime
());};Timeline.NativeDateUnit.getParser=function(format){if(typeof
format=="string"){format=format.toLowerCase();}
return(format=="iso8601"||format=="iso 8601")?
Timeline.DateTime.parseIso8601DateTime:Timeline.DateTime.parseGregorianDateTime;};Timeline.NativeDateUnit.parseFromObject=function
(o){return Timeline.DateTime.parseGregorianDateTime
(o);};Timeline.NativeDateUnit.toNumber=function(v){return v.getTime
();};Timeline.NativeDateUnit.fromNumber=function(n){return new Date
(n);};Timeline.NativeDateUnit.compare=function(v1,v2){var n1,n2;if
(typeof v1=="object"){n1=v1.getTime();}else{n1=Number(v1);}
if(typeof v2=="object"){n2=v2.getTime();}else{n2=Number(v2);}
return n1-n2;};Timeline.NativeDateUnit.earlier=function(v1,v2){return
Timeline.NativeDateUnit.compare(v1,v2)<0?
v1:v2;};Timeline.NativeDateUnit.later=function(v1,v2){return
Timeline.NativeDateUnit.compare(v1,v2)>0?
v1:v2;};Timeline.NativeDateUnit.change=function(v,n){return new Date
(v.getTime()+n);};}}}
Can somone tell me what this code is doing...and maybe why it works on
on computer and not the other -both running Windows XP/Professional
2002 - I need this thing to be transferable....so I need to understand
what is hapening.
Thanks
Skye
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/TiddlyWiki?hl=en
-~----------~----~----~----~------~----~------~--~---