IE8 compatibility

68 views
Skip to first unread message

laurent laffont

unread,
Nov 6, 2012, 12:09:36 PM11/6/12
to amber...@googlegroups.com
Hi,

Amber does not load in IE8 because of broken implementation of Object.defineProperty (used in boot.js). Any workaround ?

Cheers,

Laurent

Nicolas Petton

unread,
Nov 6, 2012, 1:54:00 PM11/6/12
to laurent laffont, amber...@googlegroups.com

Yes, the dev version will require es5-shim to work on legacy browsers:
https://github.com/kriskowal/es5-shim

Nico
--
Nicolas Petton
http://nicolas-petton.fr

laurent laffont

unread,
Nov 7, 2012, 5:55:05 AM11/7/12
to amber...@googlegroups.com
Hi Nico,

thanks for the tip. I've managed to make it works (I had to modify es5-sham.js ... strange... but I'm not familiar with shims). 

So now Amber IDE works again even in IE7. I don't know if you want to have this in master. BTW, here are the commits: https://github.com/lolgzs/amber/commits/es5-shim-integration

Cheers,

Laurent (back to Amber for a few days :)

Nicolas Petton

unread,
Nov 7, 2012, 7:56:25 AM11/7/12
to laurent laffont, amber...@googlegroups.com

Glad to know that it works. If you can send me a pull request, I'll
integrat it.

Cheers!

Sean P. DeNigris

unread,
Jul 24, 2014, 11:51:49 PM7/24/14
to amber...@googlegroups.com
Nicolas Petton wrote
> Yes, the dev version will require es5-shim to work on legacy browsers:
> https://github.com/kriskowal/es5-shim

I got a bunch of errors (listed below) when loading my app in IE8. I found
this thread and thought it may be the same problem, but I checked my
bower_components/ and found that es5-shim seems to already be installed.
Although I see that Laurent said he had to apply a fix to integrate...

Any ideas what's going wrong here? And how shall I proceed?

Thanks

Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0;
.NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR
3.0.04506.648; InfoPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729;
.NET4.0C)
Timestamp: Fri, 25 Jul 2014 02:44:15 UTC

Message: 'jQuery' is undefined
bower_components/jquery/jquery-migrate.js

Message: 'jstree' is null or not an object
bower_components/jstree/dist/jstree.min.js

Message: 'jQuery' is undefined
js/splitter.js

Message: 'undefined' is null or not an object
bower_components/jquery-ui/jquery-ui.min.js

Message: 'jQuery' is undefined
bower_components/jquery-tabby/jquery.textarea.js

Message: Load timeout for modules:
amber_lib/codemirror/mode/smalltalk/smalltalk,amber_lib/codemirror/addon/hint/show-hint
http://requirejs.org/docs/errors.html#timeout
bower_components/amber/support/requirejs/require.min.js

Message: Object required
bower_components/amber/support/requirejs/require.min.js

Message: Object required
bower_components/amber/support/requirejs/require.min.js

Message: Object required
bower_components/amber/support/requirejs/require.min.js

Message: Object required
bower_components/amber/support/requirejs/require.min.js



-----
Cheers,
Sean
--
View this message in context: http://forum.world.st/IE8-compatibility-tp4654108p4770019.html
Sent from the Amber Smalltalk mailing list archive at Nabble.com.

laci

unread,
Jul 25, 2014, 2:17:32 AM7/25/14
to amber...@googlegroups.com


View this message in context: RE: IE8 compatibility

Herby Vojčík

unread,
Jul 25, 2014, 4:33:04 AM7/25/14
to Sean P. DeNigris, amber...@googlegroups.com
Aren't you using jQuery 2? It is only aimed at modern browsers, so maybe even es5-shim is not enough for it (if that's the case, add manual constraint to your project's bower.json by running `bower install jquery#^1 --save` to limit jQuery to versions 1.x.y).

"Sean P. DeNigris" <se...@clipperadams.com>napísal/a:

>View this message in context: http://forum.world.st/IE8-compatibility-tp4654108p4770019.html


>Sent from the Amber Smalltalk mailing list archive at Nabble.com.
>

>--
>You received this message because you are subscribed to the Google Groups "amber-lang" group.
>To unsubscribe from this group and stop receiving emails from it, send an email to amber-lang+...@googlegroups.com.
>For more options, visit https://groups.google.com/d/optout.

Sean P. DeNigris

unread,
Jul 25, 2014, 11:45:31 AM7/25/14
to amber...@googlegroups.com
Herby Vojčík wrote
> Aren't you using jQuery 2? It is only aimed at modern browsers, so maybe
> even es5-shim is not enough for it

Ah, after some googling, that seems likely. Thanks.



-----
Cheers,
Sean
--
View this message in context: http://forum.world.st/IE8-compatibility-tp4654108p4770136.html
Reply all
Reply to author
Forward
0 new messages