chetto1983 / jsc3d

Automatically exported from code.google.com/p/jsc3d
0 stars 0 forks source link

Not working correctly in IE10 with STL file #22

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. IE10 W7Pro (VS2010 not required)
2. STL file
3. jsc3d 0.9.8

What is the expected output? What do you see instead?
STL file should be loaded but get
Java script error regarding "overrideMimeType" 
Works OK in Firefox etc

Please provide any additional information below.

Seems to give error on "overrideMimeType" 
in the following javascript function - error skipped if tested first but then 
no STL file loaded - error line is remarked out below

JSC3D.StlLoader.prototype.loadFromUrl = function(urlName) {
    var self = this;
    var xhr = new XMLHttpRequest;
    xhr.open('GET', urlName, true);

    if (!!xhr.overrideMimeType) xhr.overrideMimeType('text/plain; charset=x-user-defined');
    /*xhr.overrideMimeType('text/plain; charset=x-user-defined');
    */

Original issue reported on code.google.com by hutchin...@gmail.com on 21 May 2013 at 11:56

GoogleCodeExporter commented 8 years ago
This is a known issue. Current implementation of STL loader just cannot work 
correctly in IEs. Please refer to 
http://code.google.com/p/jsc3d/issues/detail?id=19 for more details.

Fortunately, IE10 introduces more efficient way to deal with binary files. STL 
for IE10 will definitely be supported in next release.

Original comment by Humu2...@gmail.com on 22 May 2013 at 3:56

GoogleCodeExporter commented 8 years ago
Hi
I had read issues 19 but thought it was specific to IE9 - as you say IE10 has a 
different way of dealing with binaries.
I did give the fork download you did for issue 19 and can confirm it worked 
fine for IE10 - currently my STL files are under 100k.

I look forward to the next release - great tool by the way !!

regards
Adrian  

Original comment by hutchin...@gmail.com on 22 May 2013 at 7:21

Attachments:

GoogleCodeExporter commented 8 years ago
This issue has been fixed. Now the STL loader also works fine in IE10.

Original comment by Humu2...@gmail.com on 13 Jul 2013 at 1:24