[Jmol-users] Question about JavaScript reader.readAsText(buFile, "UTF-8")

2017-03-31 Thread Otis Rothenberger
Bob or Anyone Else Who Might Know,

I'm reading the HTML in a local text file directly into a page JavaScript 
variable using reader.readAsText(buFile, "UTF-8"). When this process reads an 
html SMILES (e.g. C(=C\C)/C), it sure looks like the back slashes are 
automatically escaped for the JavaScript variable. While this is a txt file, it 
has HTML structure. The SMILES is inside a span tag.

When the HTML in the JavaScript variable is rendered as HTML via JavaScript (or 
JQuery), the C(=C\C)/C) is good to go without explicitly doing the character 
escaping.

Does anyone know if this is the cross browser standard for this type of 
operation?

Otis

--
Otis Rothenberger
o...@chemagic.org
http://chemagic.org


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


[Jmol-users] ACS National Meeting call for papers

2017-03-31 Thread Robert Hanson
I would like anyone on this list who utilizes NCI/CADD or PubChem to
consider representing the Jmol community and making a presentation in this
symposium at the upcoming Fall ACS National Meeting to be held in
Washington, D.C., August 20-24, 2017.  Deadline for abstract submission is
April 10.

I, unfortunately, cannot make it, as I am making a presentation at the IUCr
Congress meeting in Hyderabad at exactly that time.

https://callforpapers.acs.org/dc2017/CINF

Symposium:  Government(-Funded) Chemical Databases & Open Chemistry

Description:  Governments, including the federal government of the United
States, develop and fund many chemical databases. They represent a
cornerstone of scientific infrastructure that, if not available, would
dramatically slow the rate of scientific discovery. This symposium will
explore the various government (funded) chemical databases and related open
chemistry technologies we, as a chemical community, depend on for
information.




-- 
Robert M. Hanson
Larson-Anderson Professor of Chemistry
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr


If nature does not answer first what we want,
it is better to take what answer we get.

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users