The point is that these are actually Java functions of an applet in our
case (JSpecView) -- nothing to do with JavaScript. We had never called the
function from JavaScript so had never noticed the issue. When I wrote
JmolJSV.js, I added all the public methods of JSpecView into the
JavaScript, and that's when we found this. Then it turns out that
"export()" is not an allowed function of an object -- any object, not just
an applet -- specifically within MSIE. That was the surprise.
Bob
On Fri, Jun 15, 2012 at 12:25 PM, Michael Evans <evan...@illinois.edu>wrote:
> Not sure what you were going for here Bob, but import() and export() were
> deprecated ages ago, it seems. Unpredictable behavior should be expected.
>
>
> http://stackoverflow.com/questions/3963881/javascript-import-and-export-function-usage
>
> Cheers, Mike
>
> ---
> Mike Evans
> Organic Chemistry Graduate Student, Moore Group
> University of Illinois, Urbana-Champaign
>
>
>
> On Fri, Jun 15, 2012 at 12:04 PM, Robert Hanson <hans...@stolaf.edu>wrote:
>
>> Oh JavaScript whizzes,
>>
>> Why do you suppose this is the case?
>>
>> <script>
>>
>> test = function() {}
>>
>> test.prototype.test1 = function() {
>>
>> this.eexport() // ok in Firefox and MSIE
>>
>> this.export() // ok in Firefox; fails in MSIE: "SCRIPT1010: Expected
>> identifier"
>> }
>>
>> alert("OK") // only gets here in Firefox
>>
>> </script>
>>
>>
>> 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
>>
>>
>>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Jmol-developers mailing list
> Jmol-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-developers
>
>
--
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
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Jmol-developers mailing list
Jmol-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-developers