personal timeline javascript language problem
GenoPro Home  |  Get Started With My Genealogy Tree  |  Buy  |  Login  |  Privacy  |  Search  |  Site Map
 
GenoPro Support Forum
Home        Members    Who's On
Welcome Guest ( Login | Register )
        



personal timeline javascript language problem Expand / Collapse
Author
Message
Post #19286 Posted 9/22/2007 6:30:59 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie This user is a contributor to FamilyTrees.GenoPro.com 

Group: Customers
Last Login: 2/19/2008 3:36:21 AM
GenoPro Version: 2.0.1.3
Posts: 4, Visits: 37
In the generate HTML pages within the Javascript it is mentioned:

<script>
var tl, tlParam = new Object();
tlParam.unit = 8; tlParam.pixels=70; tlParam.duration = waar
tlParam.nowTag = ' now';
tlParam.wrapEvents = waar;
tlParam.json0 = {
'events' : [

{ 'start' :

If the code is change manually into

<script>
var tl, tlParam = new Object();
tlParam.unit = 8; tlParam.pixels=70; tlParam.duration = true
tlParam.nowTag = ' now';
tlParam.wrapEvents = true;
tlParam.json0 = {
'events' : [

{ 'start' :

everything works fine.

It looks like the system converts true into waar (which is dutch for true).

How to set things so it will work correctly automatically?

Post #19289 Posted 9/22/2007 11:43:55 AM


Grand Master

Grand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand Master This user is a contributor to FamilyTrees.GenoPro.com This user is an important contributor to the GenoPro community 

Group: Customers
Last Login: Today @ 7:08:51 AM
GenoPro Version: 2.0.1.6
Posts: 1,145, Visits: 5,354
Thanks for reporting this problem, which I assume occurs with other language versions.

The AddHeader function in script Code/TimelineInfo.vbs needs to be changed:

 Function AddHeader(Inline)
  If Inline Then
   Report.WriteLn "<script src=""timeline/timeline-api.js"" type=""text/javascript""></script>"
   Report.WriteLn "<script>"
   Report.WriteLn "var tl, tlParam = new Object();"
   Report.WriteFormattedLn "tlParam.unit = 8; tlParam.pixels=70; tlParam.duration = {}", LCase(g_TimelineShowDuration & "")
   Report.WriteFormattedLn "tlParam.nowTag = ' {&j}';", Dic("TimelineNowTag")
   Report.WriteFormattedLn "tlParam.wrapEvents = {};", LCase(g_TimelineWrapEvents)
   Report.Write "tlParam.json0 = "
  End If
  Report.WriteLn "{"
  Report.WriteLn "'events' : ["
 End function
needs to be changed to
 Function AddHeader(Inline)
  If Inline Then
   Report.WriteLn "<script src=""timeline/timeline-api.js"" type=""text/javascript""></script>"
   Report.WriteLn "<script>"
   Report.WriteLn "var tl, tlParam = new Object();"
   Report.WriteFormattedLn "tlParam.unit = 8; tlParam.pixels=70; tlParam.duration = {}", Util.IfElse(g_TimelineShowDuration, "true", "false")
   Report.WriteFormattedLn "tlParam.nowTag = ' {&j}';", Dic("TimelineNowTag")
   Report.WriteFormattedLn "tlParam.wrapEvents = {};", Util.IfElse(g_TimelineWrapEvents, "true", "false")
   Report.Write "tlParam.json0 = "
  End If
  Report.WriteLn "{"
  Report.WriteLn "'events' : ["
 End function

I will include this change in my next version of the Narrative Report.


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Post #19290 Posted 9/22/2007 12:04:34 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie This user is a contributor to FamilyTrees.GenoPro.com 

Group: Customers
Last Login: 2/19/2008 3:36:21 AM
GenoPro Version: 2.0.1.3
Posts: 4, Visits: 37
Thanks, for the quick reply. It is working now.

Ary

« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: GenoProSupport, JcMorin, Ron

Permissions Expand / Collapse

All times are GMT -5:00, Time now is 9:51 AM

Copyright 1998-2008 GenoPro. All rights reserved. GenoPro and the GenoPro logo are trademarks.