I had to move from api.simile-widgets.org/exhibit/3.0.0rc1/exhibit-api.js 
to https://api.simile-widgets.org/exhibit/STABLE/exhibit-api.js because 
Simile/Babel has disappeared and I don't know how else to turn my Excel 
spreadsheet into Jason -- and the former version does not appear to accept 
txt/tsv that I can get from Excel.  So now I'm using STABLE so I can use 
txt files, and the following code, which worked in the earlier version, 
does not work any more.  Can someone tell me how to update this to work in 
the STABLE version?  Frankly I don't know how I got this to work in the 
first place, and I don't really understand it now at all -- and I can't 
find whatever docs I had to figure this code out in the first place.  So 
I'm afraid I'm pretty ignorant. 

<script type="text/javascript">
    var rowStyler = function (item, database, tr) {
        var TimesPerf = database.getObject(item, "TimesPerf");
        var BackColor = "white";
        var ForeColor = "black";
        switch (TimesPerf) {
            case 0: BackColor = "#CCCCCC"; ForeColor = "white"; break;
        }
        tr.style.background = BackColor;
        tr.style.color = ForeColor;
    };
    </script>

Also, is there any way I can honor special characters like in "Dvořák" and 
"Fauré"? This worked in Babel/Jason but not in DOS txt from Excel.  I can 
output unicode txt from Excel, but Exhibit STABLE doesn't seem to handle 
that very well.

-- 
You received this message because you are subscribed to the Google Groups 
"SIMILE Widgets" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/simile-widgets/b0320c5f-bfe2-4eed-9a34-e82f0cb14b00n%40googlegroups.com.

Reply via email to