That's interesting ! I've made further testing and found out that the sequence
of file loading can trigger an error with the cml file !
- reloading the page and :
1. load estron.cml
2. load vasp.xml
3. load water.xodydata
causes no error
- reloading the page and :
1. load vasp.xml or load water.xodydata
2 load estron.cml
triggers the error reading XML message
That's MacOs 10.6.8 with Chrome 23.0.1271.95
Le 10 déc. 2012 à 14:16, Otis Rothenberger a écrit :
> Paul,
>
> That loads for me on Mac 10.7.5 with Chrome 23.0.1271.95.
>
> Otis
>
>
> --
> Otis Rothenberger
> [email protected]
> http://chemagic.com
>
>
>
>
> On Dec 10, 2012, at 7:58 AM, Paul Pillot 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
>>> [email protected]
>>> 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
>> [email protected]
>> 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
> [email protected]
> 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users