GenoPro Home
GenoPro Home  |  Get Started With My Genealogy Tree  |  Buy  |  Login  |  Privacy  |  Search  |  Site Map
 

GenoPro Support Forum




personal timeline javascript language problem

Click to view RSS...
Author Showing only the frame, no contents
Posted Saturday, September 22, 2007 - Post #19286
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Customers
FamilyTrees.GenoPro.com
GenoPro version: 3.0.0.5

Last Login: Wednesday, August 8, 2018
Posts: 8, Visits: 62
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?

Posted Saturday, September 22, 2007 - Post #19289
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.1.0.1

Last Login: Friday, July 11, 2025
Posts: 3,428, Visits: 26,569
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"
Posted Saturday, September 22, 2007 - Post #19290
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Customers
FamilyTrees.GenoPro.com
GenoPro version: 3.0.0.5

Last Login: Wednesday, August 8, 2018
Posts: 8, Visits: 62
Thanks, for the quick reply. It is working now.

Ary



Similar Topics

Click to view RSS...
Expand / Collapse
TopicKey_TopicReplies
Friday, July 11, 2025
Last Post: GusMills
TopicKey_TopicReplies
Friday, July 11, 2025
Last Post: Jordi-Albert
TopicKey_TopicReplies
Inadvertent insertion of a separation symbol
Thursday, July 10, 2025
Last Post: Biggles172
TopicKey_TopicReplies
Tuesday, July 8, 2025
Last Post: JGeorge
TopicKey_TopicReplies
Tuesday, July 1, 2025
Last Post: appleshaw
TopicKey_TopicReplies
Selecting digram and pasting is unsuccessful
Monday, June 30, 2025
Last Post: davis02
TopicKey_TopicReplies
Sunday, June 29, 2025
Last Post: StevenBoerger
TopicKey_TopicReplies
Thursday, June 26, 2025
Last Post: nagee
TopicKey_TopicReplies
Thursday, June 26, 2025
Last Post: appleshaw
TopicKey_TopicReplies
Unable to open Family Tree - error: Aug 29th, 20221912th, 2020/EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd\">
Thursday, June 19, 2025
Last Post: 1915681

Reading This Topic

Expand / Collapse
Active: 2 - 1 guest, 0 members, 0 anonymous.
Refresh
No members currently viewing this topic!