HTML/XML publishing etc

I have been speaking to Jon, this is what we propose:-

1.  undo current javascript solution - it's pitched at the wrong

level and is confusing (don’t panic christof)

2.  add an option to the xml export to only save published columns

(privacy issue solved)

3.  add a JSON export with the same option.  (this is the *generic*

javascript solution - still don’t panic christof)

4.  extend the template backquote stuff to allow class definitions

for specific td’s, e.g. class, sailno etc (minimal extra text - only
adds class to that spec).

5. extend the template backquote stuff to allow translation of all

fixed text in the template (relax now christof) - this is generic
across all templates then

6. add SXL and JSON as publishing destinations with useful options

to link in javascript/XLT etc.

7.  extend command line options to score, export, save, exit etc. 

this is good for non ui solutions.

the idea is that by providing two solutions, templates and json/xml,

it satisfies everybody. those who are not developers can use the
template backquote solutions and those that are developers can
additionally use the completely generic facilities - which have
limitless potential.

ps: wrt linking the CSS, you can do that now.  just create your own

temp[late without a style backquote and a hard wired link to your
css.

8. add some help about using styles and templates, including tips

like that one.

···

  Cheers,

  Colin J

http://op12no2.me

···

SXL = XML

    Also wanted to say the current javascript solution is pitched

between the two ends and is flexible bit not totally flexible
which is silly for JS. Having two solutions friendly/dev is
better.

    PS: I'm doing 1-8 for Jon. 

  On 16/11/2012 09:56, Colin Jenkins wrote:

Cheers,

    Colin J

http://op12no2.me

I have been speaking to Jon, this is what we propose:-

          1.  undo current javascript solution - it's pitched at the

wrong level and is confusing (don’t panic christof)

          2.  add an option to the xml export to only save published

columns (privacy issue solved)

          3.  add a JSON export with the same option.  (this is the

generic javascript solution - still don’t panic
christof)

          4.  extend the template backquote stuff to allow class

definitions for specific td’s, e.g. class, sailno etc
(minimal extra text - only adds class to that spec).

          5. extend the template backquote stuff to allow

translation of all fixed text in the template (relax now
christof) - this is generic across all templates then

          6. add SXL and JSON as publishing destinations with useful

options to link in javascript/XLT etc.

          7.  extend command line options to score, export, save,

exit etc. this is good for non ui solutions.

          the idea is that by providing two solutions, templates and

json/xml, it satisfies everybody. those who are not
developers can use the template backquote solutions and
those that are developers can additionally use the
completely generic facilities - which have limitless
potential.

          ps: wrt linking the CSS, you can do that now.  just create

your own temp[late without a style backquote and a hard
wired link to your css.

          8. add some help about using styles and templates,

including tips like that one.

    No virus

found in this message.
Checked by AVG - www.avg.com
Version: 2012.0.2221 / Virus Database: 2441/5396 - Release Date:
11/15/12

          Cheers,

          Colin J

http://op12no2.me

Hello Colin and Jon,

thank You very much for Your
extraordinary and extremely flexible scoring program. It is by far
the best I have tested (many programs!).

After using a German program (last
updated in 2004) over 10 years in our racing community WFGB I looked
for a modern replacement. The WFGB (www.wfg-baldeneysee.org) at lake
Baldeneysee in Essen, Germany, consists of 11 Clubs organizing more
then 30 official regattas per year. I am responsible for all software
we use. Our central online entry system including formatted download
for import into the scoring program and upload for automated
presentation of results in the web is developed by me.

A very important point for me is the
layout of paper printouts (competitor lists and results) in the club.
Your javascript solution is exactly I looked for (all informations
put into variables, free choice of styles and layout). I have no
problems to write my own complex scripts including manipulation of
CSS. The dynamic publish menu of Sailwave allows to offer several
selfmade templates for different outputs.

JSON will be a good format for
uploading the results to the web server (e.g. using PHP on the server
to convert) but is too heavy weighted for local printouts. So I ask
You very seriously to offer the javascript output (version 2.5.9
beta) in the future.

Dierk

···

Dierk, I pitched
the javascript solution incorrectly before. It had limitations
and should not have and was OTT for those that just wanted to
translate the user interface - 99% of use. Beta 2.6.0 adds a
more straightforward tyranslation faciity and another beta will
add back a truly generic JSON/Javascript facility.

    NB: Beta 2.6.0 also had the class solution for td's but it's not

documented yet.

  On 18/11/2012 21:25, heppi33 wrote:

    Cheers,

    Colin J

http://op12no2.me

Hello Colin and Jon,

          thank You very much for Your

extraordinary and extremely flexible scoring program. It
is by far
the best I have tested (many programs!).

          After using a German program (last

updated in 2004) over 10 years in our racing community
WFGB I looked
for a modern replacement. The WFGB
() at lake
Baldeneysee in Essen, Germany, consists of 11 Clubs
organizing more
then 30 official regattas per year. I am responsible for
all software
we use. Our central online entry system including
formatted download
for import into the scoring program and upload for
automated
presentation of results in the web is developed by me.

          A very important point for me is the

layout of paper printouts (competitor lists and results)
in the club.
Your javascript solution is exactly I looked for (all
informations
put into variables, free choice of styles and layout). I
have no
problems to write my own complex scripts including
manipulation of
CSS. The dynamic publish menu of Sailwave allows to offer
several
selfmade templates for different outputs.

          JSON will be a good format for

uploading the results to the web server (e.g. using PHP on
the server
to convert) but is too heavy weighted for local printouts.
So I ask
You very seriously to offer the javascript output (version
2.5.9
beta) in the future.

Dierk

    No virus

found in this message.
Checked by AVG - www.avg.com
Version: 2012.0.2221 / Virus Database: 2629/5403 - Release Date:
11/18/12

www.wfg-baldeneysee.org

Hi Colin,
thanks for Your fast answer. I look forward for Your new version. In the
meanwhile I will try to find our future print layout.

I regard Sailwave as a nearly perfect tool kit including a good user
interface, which must be tailored down to our needs and simple to use by
our unskilled scorers (about 20). But Sailwave is an excellent basis for
future wishes of our clubs (which will come!).

There is one problem with the results list:
In Germany the sailors are accustomed to see the place including the
code and not points in the results list. Penalties like ZFP or redress
should also show the resultant place (e.g. ZFP/7), but not DNC, OCS, DSQ
etc. One (temporary) solution is to use Javascript to convert points to
places. But if there are more then two boats with the same place (not by
penalty or redress), it seems to be impossible to find the correct
place. The rank per race is of no meaning for us. A future solution
could be to output code, place and points together in the
JSON/Javascript structure. Then all kinds of lists are possible
including output of place and points.

I plan to introduce Sailwave in March. There will be a lot of work to do
(download from web server for import, templates/CSS for printouts, new
German locale, user manual, upload to the web server and converting to
internal results stucture).

If You are interested what we are doing, go to our web site
(www.wfg-baldeneysee.org), select "Regattatabelle" on the left side, and
click in the 3rd row on "(show English Info Page)".

Dierk

···

Hi Dierk,

    The default formatting for codes is in

Setup+GlobalOptions+CodeDiscardFormattingTab. But, each code
can override that. Scoring system+CodesTab+Edit+PropertiesTab.
This will handle the ZFP format.

  On 19/11/2012 20:25, heppi33 wrote:

Cheers,

    Colin J

http://op12no2.me

Hi Colin,
thanks for Your fast answer. I look forward for Your new
version. In the
meanwhile I will try to find our future print layout.

          I regard Sailwave as a nearly perfect tool kit including a

good user
interface, which must be tailored down to our needs and
simple to use by
our unskilled scorers (about 20). But Sailwave is an
excellent basis for
future wishes of our clubs (which will come!).

          There is one problem with the results list:
          In Germany the sailors are accustomed to see the place

including the
code and not points in the results list. Penalties like
ZFP or redress
should also show the resultant place (e.g. ZFP/7), but not
DNC, OCS, DSQ
etc. One (temporary) solution is to use Javascript to
convert points to
places. But if there are more then two boats with the same
place (not by
penalty or redress), it seems to be impossible to find the
correct
place. The rank per race is of no meaning for us. A future
solution
could be to output code, place and points together in the
JSON/Javascript structure. Then all kinds of lists are
possible
including output of place and points.

          I plan to introduce Sailwave in March. There will be a lot

of work to do
(download from web server for import, templates/CSS for
printouts, new
German locale, user manual, upload to the web server and
converting to
internal results stucture).

          If You are interested what we are doing, go to our web

site
(), select “Regattatabelle” on the
left side, and
click in the 3rd row on “(show English Info Page)”.
Dierk

    No virus

found in this message.
Checked by AVG - www.avg.com
Version: 2012.0.2221 / Virus Database: 2629/5406 - Release Date:
11/19/12

www.wfg-baldeneysee.org

Hi Colin,
I explained my problem not clearly enough. Naturally, I use the
individual formatting of the codes.

I need to convert points back to places (points are derived from places)
in the race columns of the results list. The decimal point and the
following number can be deleted by Javascript. But if three or more
boats without penalties are tied in a race, this conversion produces the
wrong place. It would be very complex to figure out the correct place.

To avoid this problem I made the suggestion to include both (points and
places) in the future JSON/Javascript structure.

Dierk

Hi Dierk,

If you want to see all the information you can publish individual race tables as well as the summary table you will then have place and points for each race.

But I appreciate that you would like both in the JSON/Javascript output

Jon

···

On 20 November 2012 20:12, heppi33 heppi33@yahoo.com wrote:

Hi Colin,
I explained my problem not clearly enough. Naturally, I use the
individual formatting of the codes.

I need to convert points back to places (points are derived from places)
in the race columns of the results list. The decimal point and the
following number can be deleted by Javascript. But if three or more
boats without penalties are tied in a race, this conversion produces the
wrong place. It would be very complex to figure out the correct place.

To avoid this problem I made the suggestion to include both (points and
places) in the future JSON/Javascript structure.

Dierk


Jon Eskdale
07976 709777

Skype “eskdale”

Dierk,

I am slightly curious as to how you are using Javascript to delete the decimal point and following number for the race points. I just cannot see that in the scripts in your HTML code but then I have very limited experience with Javascript.

I see you are using Javascript for navigation despite the recommendations not to do that as some users will have Javascript turned off for security purposes. I also note that the link from the class [2.4mR] to the results doesn't work with Firefox (I have 16.0.2, which I believe is the latest version) but does with IE 8.

Art

···

On 11/20/2012 12:12 PM, heppi33 wrote:

Hi Colin,
I explained my problem not clearly enough. Naturally, I use the
individual formatting of the codes.

I need to convert points back to places (points are derived from places)
in the race columns of the results list. The decimal point and the
following number can be deleted by Javascript. But if three or more
boats without penalties are tied in a race, this conversion produces the
wrong place. It would be very complex to figure out the correct place.

To avoid this problem I made the suggestion to include both (points and
places) in the future JSON/Javascript structure.

Dierk

------------------------------------

-!- http://www.yachtsandyachting.com/ -!- http://www.sailing.org/ -!- http://www.sailwave.com/ -!- On-Line Sailwave help...http://sailwave.com/help/HTML ~ Mark Townsend's Sailwave User Guide is available from http://www.abyc.org/upload/Sailwave_ABYC_User_Guide.pdf ~ Convert to daily digest of emails send blank email to sailwave-digest@yahoogroups.com ~ To unsubscribe from the SUG please send blank email to sailwave-unsubscribe@yahoogroups.com Yahoo! Groups Links

···

ok

  On 20/11/2012 20:12, heppi33 wrote:

Cheers,

    Colin J

http://op12no2.me

Hi Colin,
I explained my problem not clearly enough. Naturally, I
use the
individual formatting of the codes.

          I need to convert points back to places (points are

derived from places)
in the race columns of the results list. The decimal point
and the
following number can be deleted by Javascript. But if
three or more
boats without penalties are tied in a race, this
conversion produces the
wrong place. It would be very complex to figure out the
correct place.

          To avoid this problem I made the suggestion to include

both (points and
places) in the future JSON/Javascript structure.

          Dierk
    No virus

found in this message.
Checked by AVG - www.avg.com
Version: 2012.0.2221 / Virus Database: 2629/5408 - Release Date:
11/20/12

Hi Art, Christof, and Colin

@ Art
As I wrote in my second answer to Colin, I plan to introduce Sailwave in
March next year. The results lists are produced dynamically by PHP
scripts on the web server. There is no need to use Javascript for
formatting. My problem are the local printouts in the clubs.

I see no other means than Javascript to implement the dynamic navigation
we need on our web pages. To rely only on CSS produces endless
dependencies on browser versions (particularly IE).

Reading our pages do not work in Firefox shocked me. Firefox (3.6 and
11.0) is my standard browser. Therefore, I just downloaded Firefox 17.0
(portable, as I do with Sailwave to test different versions). All works
fine. I suppose that this is the same problem as with IE, when I
launched our redesigned pages at the beginning of this year. IE
implements the protection against Cross Site Scripting (XSS) in a wrong
manner. I assume that an add on (NoScript ?) in Firefox causes this
trouble. If you are interested in more explanations send me a mail to
webmaster@wfg-baldeneysee.org. It would be off topic here.

@ Christof
Good news about locale. Saves me a lot of work!

@ Colin
Many thanks for Your patient answers! I'll wait for JSON/Javascript.

Dierk

Hi Art, Christof, and Colin
I sent this message 3 hours ago but did not find it in message list. So
I retry.

@ Art
As I wrote in my second answer to Colin, I plan to introduce Sailwave in
March next year. The results lists are produced dynamically by PHP
scripts on the web server. There is no need to use Javascript for
formatting. My problem are the local printouts in the clubs.

I see no other means than Javascript to implement the dynamic navigation
we need on our web pages. To rely only on CSS produces endless
dependencies on browser versions (particularly IE).

Reading our pages do not work in Firefox shocked me. Firefox (3.6 and
11.0) is my standard browser. Therefore, I just downloaded Firefox 17.0
(portable, as I do with Sailwave to test different versions). All works
fine. I suppose that this is the same problem as with IE, when I
launched our redesigned pages at the beginning of this year. IE
implements the protection against Cross Site Scripting (XSS) in a wrong
manner. I assume that an add on (NoScript ?) in Firefox causes this
trouble. If you are interested in more explanations send me a mail to
webmaster@wfg-baldeneysee.org. It would be off topic here.

@ Christof
Good news about locale. Saves me a lot of work!

@ Colin
Many thanks for Your patient answers! I'll wait for JSON/Javascript.

Dierk

There is a Firefox add-on - IE Tab V2 (Enhanced IE Tab) 4.1.3.1 - which I
have used for a long time problem free, and a version for Chrome, which I
have not used as I don't use that browser. I use it mainly for banking and
M$ sites where they demand the IE version of HTML to display pages
correctly.

Add-on is available at http://www.ietab.net/

Cheers,
Alan

···

-----Original Message-----
From: sailwave@yahoogroups.com [mailto:sailwave@yahoogroups.com] On Behalf
Of heppi33
Sent: Thursday, 22 November 2012 09:40
To: sailwave@yahoogroups.com
Subject: [sailwave] Re: HTML/XML publishing etc

Hi Art, Christof, and Colin
I sent this message 3 hours ago but did not find it in message list. So
I retry.

@ Art
As I wrote in my second answer to Colin, I plan to introduce Sailwave in
March next year. The results lists are produced dynamically by PHP
scripts on the web server. There is no need to use Javascript for
formatting. My problem are the local printouts in the clubs.

I see no other means than Javascript to implement the dynamic navigation
we need on our web pages. To rely only on CSS produces endless
dependencies on browser versions (particularly IE).

Reading our pages do not work in Firefox shocked me. Firefox (3.6 and
11.0) is my standard browser. Therefore, I just downloaded Firefox 17.0
(portable, as I do with Sailwave to test different versions). All works
fine. I suppose that this is the same problem as with IE, when I
launched our redesigned pages at the beginning of this year. IE
implements the protection against Cross Site Scripting (XSS) in a wrong
manner. I assume that an add on (NoScript ?) in Firefox causes this
trouble. If you are interested in more explanations send me a mail to
webmaster@wfg-baldeneysee.org. It would be off topic here.

@ Christof
Good news about locale. Saves me a lot of work!

@ Colin
Many thanks for Your patient answers! I'll wait for JSON/Javascript.

Dierk

------------------------------------

-!- http://www.yachtsandyachting.com/ -!- http://www.sailing.org/ -!-
http://www.sailwave.com/ -!- On-Line Sailwave
help...http://sailwave.com/help/HTML ~ Mark Townsend's Sailwave User Guide
is available from http://www.abyc.org/upload/Sailwave_ABYC_User_Guide.pdf ~
Convert to daily digest of emails send blank email to
sailwave-digest@yahoogroups.com ~ To unsubscribe from the SUG please send
blank email to sailwave-unsubscribe@yahoogroups.com Yahoo! Groups Links

It turns out that what was causing the problem was that I was viewing the pages using Google translation as I don't read German. When I went to the pages without going through Google translator they worked just fine.

Art

PS - I suspect that I may have been using IE without Google translator, which is why they worked with IE. But, I haven't actually checked that.

···

On 11/21/2012 5:15 PM, Al wrote:

There is a Firefox add-on - IE Tab V2 (Enhanced IE Tab) 4.1.3.1 - which I
have used for a long time problem free, and a version for Chrome, which I
have not used as I don't use that browser. I use it mainly for banking and
M$ sites where they demand the IE version of HTML to display pages
correctly.

Add-on is available at http://www.ietab.net/

Cheers,
Alan

-----Original Message-----
From: sailwave@yahoogroups.com [mailto:sailwave@yahoogroups.com] On Behalf
Of heppi33
Sent: Thursday, 22 November 2012 09:40
To: sailwave@yahoogroups.com
Subject: [sailwave] Re: HTML/XML publishing etc

Hi Art, Christof, and Colin
I sent this message 3 hours ago but did not find it in message list. So
I retry.

@ Art
As I wrote in my second answer to Colin, I plan to introduce Sailwave in
March next year. The results lists are produced dynamically by PHP
scripts on the web server. There is no need to use Javascript for
formatting. My problem are the local printouts in the clubs.

I see no other means than Javascript to implement the dynamic navigation
we need on our web pages. To rely only on CSS produces endless
dependencies on browser versions (particularly IE).

Reading our pages do not work in Firefox shocked me. Firefox (3.6 and
11.0) is my standard browser. Therefore, I just downloaded Firefox 17.0
(portable, as I do with Sailwave to test different versions). All works
fine. I suppose that this is the same problem as with IE, when I
launched our redesigned pages at the beginning of this year. IE
implements the protection against Cross Site Scripting (XSS) in a wrong
manner. I assume that an add on (NoScript ?) in Firefox causes this
trouble. If you are interested in more explanations send me a mail to
webmaster@wfg-baldeneysee.org. It would be off topic here.

@ Christof
Good news about locale. Saves me a lot of work!

@ Colin
Many thanks for Your patient answers! I'll wait for JSON/Javascript.

Dierk

------------------------------------

-!- http://www.yachtsandyachting.com/ -!- http://www.sailing.org/ -!-
http://www.sailwave.com/ -!- On-Line Sailwave
help...http://sailwave.com/help/HTML ~ Mark Townsend's Sailwave User Guide
is available from http://www.abyc.org/upload/Sailwave_ABYC_User_Guide.pdf ~
Convert to daily digest of emails send blank email to
sailwave-digest@yahoogroups.com ~ To unsubscribe from the SUG please send
blank email to sailwave-unsubscribe@yahoogroups.com Yahoo! Groups Links

------------------------------------

-!- http://www.yachtsandyachting.com/ -!- http://www.sailing.org/ -!- http://www.sailwave.com/ -!- On-Line Sailwave help...http://sailwave.com/help/HTML ~ Mark Townsend's Sailwave User Guide is available from http://www.abyc.org/upload/Sailwave_ABYC_User_Guide.pdf ~ Convert to daily digest of emails send blank email to sailwave-digest@yahoogroups.com ~ To unsubscribe from the SUG please send blank email to sailwave-unsubscribe@yahoogroups.com Yahoo! Groups Links