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: Yesterday @ 8:52 PM
Posts: 3,428, Visits: 26,565
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

Reading This Topic

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