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

GenoPro Support Forum




New report skin without frames

Click to view RSS...
Author no frames, more css dependent and using AJAX
Posted Wednesday, September 22, 2010 - Post #26530
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

Customers

Last Login: Friday, June 15, 2018
Posts: 28, Visits: 231
The current abstraction layer just copies GenoPro's structure. Would it be unreasonable to just say "Use GenoPro as the abstraction layer"? We can obviously create a report on anything GenoPro can import, including GEDCOM, so why write new code to provide this translation? I still don't see the value of having this abstraction layer in the Skin.
Posted Saturday, September 25, 2010 - Post #26554
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

Customers
GenoPro version: 2.5.4.1

Last Login: Friday, September 23, 2022
Posts: 39, Visits: 1,789
Hurray! Finally, I managed to upload files on git. Smile

edanite (9/22/2010)
The current abstraction layer just copies GenoPro's structure. Would it be unreasonable to just say "Use GenoPro as the abstraction layer"? We can obviously create a report on anything GenoPro can import, including GEDCOM, so why write new code to provide this translation? I still don't see the value of having this abstraction layer in the Skin.


Ok. I agree: "Person" doesn't do anything new for now. But if you want it to do something new in it... You can. And that's the point. Smile Of course it's possible to write function which gets as an argument "Individual" object, and do the same thing, as the method inside class. But for me, code is more readable when I write: person.do_something(), than: do_something(person). Additionally you can change default appearence of methods like: e.g.: name_nick(), to do additional grammar, or other things which couldn't be achieved in Dictionary, NameDictionary etc... Whatever you can imagine. My native language has so much grammar rules exceptions... No matter how I try, my report when reading looks poor. I want to make something that let me achieve grammar more... Customizable? Wink

If I'll have any other ideas with using it I'll tell you. Smile But if you still do not like my solution, why don't you start your own project to let your own idea grow? Smile More us, more skins, more everything, the better. Smile (I don't now if it's a correct sentence, but I hope it's understandable.. :/ ) It's always healthy if there are more options/alternatives. Isn't it? Wink


Edited: Saturday, September 25, 2010 by Quayle
Posted Saturday, October 9, 2010 - Post #26679
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

Customers
GenoPro version: 2.5.4.1

Last Login: Friday, September 23, 2022
Posts: 39, Visits: 1,789
If anybody wants to check any progress, here is a new skin pack. Dictionary.xml is not included so you have to copy your own.

Repository where my code is available:
http://github.com/quayle/narrativeredux

Working example at:
http://familytrees.genopro.com/Quayle/dev/index.html

Edit:
Uploaded newer version.


quayle-narrativeredux-303bc47.zip (28 views, 73.14 KB)
quayle-narrativeredux-332f3af.zip (25 views, 73.20 KB)


Edited: Sunday, October 10, 2010 by Quayle
Posted Saturday, October 9, 2010 - Post #26683
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

Customers

Last Login: Friday, June 15, 2018
Posts: 28, Visits: 231
I've discovered two Caveats regarding the new report.

1) creating Code/abstraction/lib.js doesn't take effect until the next time the report generator is run. i.e. if you delete Code/abstraction/lib.js and then run the report generator it will fail complaining that it can't find Code/abstraction/lib.js. If you run it again, it works fine.

2) Due to origin restrictions regarding file: URLs, the dynamic menu may not work properly if the report is local. (Tried in Chrome on Windows)
Posted Sunday, October 10, 2010 - Post #26687
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

Customers
GenoPro version: 2.5.4.1

Last Login: Friday, September 23, 2022
Posts: 39, Visits: 1,789
2) According to: http://forum.jquery.com/topic/load-and-ajax-not-working-on-google-chrome
and: http://api.jquery.com/load/
The problem is with load() function in jquery. I'll try to replace it with $.ajax().

Edited: Sunday, October 10, 2010 by Quayle
Posted Sunday, October 10, 2010 - Post #26689
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

Customers

Last Login: Friday, June 15, 2018
Posts: 28, Visits: 231
The way I read the docs indicate that <thing>.load() is implemented in terms of $.ajax(), so changing from .load() to $.ajax() won't fix the problem. I personally consider Chrome's behavior to be a feature, not a bug. It's therefore a "caveat": something of which you should be aware.
Posted Tuesday, November 8, 2011 - Post #29347
Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

Customers
FamilyTrees.GenoPro.com
GenoPro version: 2.5.4.1

Last Login: Wednesday, June 2, 2021
Posts: 220, Visits: 14,736
Is this project active?
Posted Tuesday, November 8, 2011 - Post #29348
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

Customers

Last Login: Friday, June 15, 2018
Posts: 28, Visits: 231
I'm afraid I haven't done any "real work" on it recently.  I have done some thinking, though.  With the context that my web host uses a FreeBSD-Apache-PHP stack, here are my new thoughts:
  • We have the report generator generate fragments for each object.  There's a server-side script that builds complete pages from the fragments, but we also fetch the fragments with AJAX calls and the HTML5 History API once we have the page in the browser.
  • We should use "clean" URLs (like /individual/Potter-Harry) whenever possible.  Preferably, these should be "smart" to some extent with one canonical form and several alternate forms, though this would seem to require a database of some sort to handle the lookups in a scalable manner.
  • The URL canonical form should be human readable, though it may be difficult to guarantee uniqueness of URLs in a single pass.  During development, we can use something like /individual/ind00001 as the canonical form because it's guaranteed unique, but this isn't friendly.
  • I realized that the current SVG code is written in VBScript, but our new report will be written in JScript.  This leads to a question: is it possible to have a mixture of scripting languages in the same report?
Posted Monday, November 14, 2011 - Post #29410
Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

Customers
FamilyTrees.GenoPro.com
GenoPro version: 2.5.4.1

Last Login: Wednesday, June 2, 2021
Posts: 220, Visits: 14,736
I realized that the current SVG code is written in VBScript, but our new report will be written in JScript.  This leads to a question: is it possible to have a mixture of scripting languages in the same report?


I think, it is no problem generaly http://msdn.microsoft.com/en-us/library/aa260861(v=vs.60).aspx


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!