Renjian found the compiler bug, and I've made a change to the VASP reader.
That should be fixed now. No errors when loading vasp.xml first, then the
others? Maybe?
On Mon, Dec 10, 2012 at 6:58 AM, Paul Pillot <
paul.pil...@ac-orleans-tours.fr> wrote:
>
>
>
> On Chrome MacOSX.6
> no error with vasp.xml and water.xodydata.
> estron.cml reports the following error :
> FileManager.getAtomSetCollectionFromFile(estron.cml)
> starting HoverWatcher_7
> FileManager opening http://chemapps.stolaf.edu/jmol/jsmol/estron.cml
> The Resolver thinks XmlCml
> call loadScript org\jmol\adapter\readers\xml\XmlCmlReader.js
> call loadScript org\jmol\adapter\readers\cifpdb\CifReader.js
> call loadScript org\jmol\api\JmolLineReader.js -- required by
> org.jmol.adapter.readers.cifpdb.CifReader
> call loadScript org\jmol\adapter\smarter\Structure.js
> Time for openFile(estron.cml): 2361 ms
> File Error:Error reading XML: Cannot call method 'clear' of null
> for file http://chemapps.stolaf.edu/jmol/jsmol/estron.cml
> type xml
> starting HoverWatcher_8
> script ERROR: Error reading XML: Cannot call method 'clear' of null
> for file http://chemapps.stolaf.edu/jmol/jsmol/estron.cml
> type xml
> ----
> load >> "estron.cml" <<
> Script completed
> Jmol script terminated
>
> Paul
>
> PS: (this may help) jQuery offers possibilities for parsing XML documents
> with the $() function.
> Here is a code example I've made to fetch pubmed abstracts from a PDB ID :
> $.ajax({
> url: "http://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi",
> data: {
> db: "pubmed",
> id: pId,
> retmode: "xml",
> rettype: "abstract"
> },
> success: function(t){
> var $xml = $(t);
> var txt = '';
> var pmc = $xml.find("ArticleId[IdType='pmc']").text();
> var volume = $xml.find("Volume").text();
> var revue = $xml.find("Title").text();
> var pages = $xml.find("MedlinePgn").text();
> var annee = $xml.find("Year:first").text();
> var doi = $xml.find("ArticleId[IdType='doi']").text();
> var abstract = $xml.find("AbstractText").text();
>
> txt += '<br /><span class="label label-info">in</span> '+revue+'
> '+annee+' n°'+volume+ ' p'+pages+' ';
> ...
> });
> Le 10 déc. 2012 à 13:22, Robert Hanson a écrit :
>
> I'd appreciate people testing
> http://chemapps.stolaf.edu/jmol/jsmol/test2.htm?USE=HTML5 for those top
> middle links involving loading of XML files (vasp.xml, estron.cml, and
> water.xodydata). This uses the browser's own HTML document object model to
> parse the XML files. It seems to be working on Firefox and MSIE under
> Windows.
>
> If you get a file loading error, please click "show" to see the console,
> clip that, and send it to me off-list.
>
> I know about the "this.atts is null" error that arises when you first load
> vasp.xml and then load estron.cml. Trying to track that one down.
>
> Thanks,
>
> Bob
>
> --
> Robert M. Hanson
> Larson-Anderson Professor of Chemistry
> Chair, Chemistry Department
> 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
>
>
>
> ------------------------------------------------------------------------------
> LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
> Remotely access PCs and mobile devices and provide instant support
> Improve your efficiency, and focus on delivering more value-add services
> Discover what IT Professionals Know. Rescue delivers
>
> http://p.sf.net/sfu/logmein_12329d2d_______________________________________________
> Jmol-users mailing list
> Jmol-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
>
>
>
>
> ------------------------------------------------------------------------------
> LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
> Remotely access PCs and mobile devices and provide instant support
> Improve your efficiency, and focus on delivering more value-add services
> Discover what IT Professionals Know. Rescue delivers
> http://p.sf.net/sfu/logmein_12329d2d
> _______________________________________________
> Jmol-users mailing list
> Jmol-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
>
--
Robert M. Hanson
Larson-Anderson Professor of Chemistry
Chair, Chemistry Department
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
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users