pizheng / protobuf-js

Automatically exported from code.google.com/p/protobuf-js
0 stars 0 forks source link

Version that work in InternetExplorer #3

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Revision 12 have following problems in IE:
1. Four trailing commas in object literals;
2. IE does not implement overrideMimeType()

If you comment out overrideMimeType (to remove error) data will be 
transfered in bad encoding in IE. I fix it at server-side in bin/
start_server.rb. I don't know Ruby, so the easiest way I found is http://
microjet.ath.cx/webrickguide/html/Overriding_Default_MIME_Typ.html
Solution is not perfect because you have to correct the path of mime.types 
in your system.

system_mime_table = WEBrick::HTTPUtils::load_mime_types('/usr/local/etc/
apache22/mime.types')

Original issue reported on code.google.com by paul.dovbush on 23 Jun 2009 at 7:33

Attachments:

GoogleCodeExporter commented 9 years ago
Here is the version with prototype.js dependences removed.
(fix XMLHttpRequest for IE; $A() -> []; $ -> document.getElementById)

Original comment by paul.dovbush on 23 Jun 2009 at 8:08

Attachments: