IE8 JavaScript errors, prevents application loading

108 views
Skip to first unread message

donp

unread,
Jun 2, 2012, 2:19:04 PM6/2/12
to cometd-users
I am running a simple server-push application using Cometd.

Application works more or less fine in Chrome and Firefox, but when
launched in IE8 the application does not load, and JavaScript errors
are shown in the browser:



Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; WOW64;
Trident/4.0; GTB7.3; InfoPath.2; .NET CLR 2.0.50727; .NET CLR
3.0.4506.2152; .NET CLR 3.5.30729; MS-RTC LM 8)
Timestamp: Sat, 2 Jun 2012 18:14:18 UTC


Message: 'JSON' is undefined
Line: 20
Char: 5
Code: 0
URI: http://petdo05-gx960.ca.com:8080/webview/jquery/jquery.cometd.js


Message: '$wnd.$.cometd' is null or not an object
Line: 18443
Char: 17
Code: 0
URI: http://petdo05-gx960.ca.com:8080/webview/5DCFF9922D602A6B94A3C0C45A7F35DC.cache.html



Has anyone run into this, or have any suggestions for resolving this?

Thanks,
Don P.

donp

unread,
Jun 2, 2012, 2:22:30 PM6/2/12
to cometd-users
Looks like this is a result of IE8 running in Compatibility View.
When that is turned off, the errors do not occur.

Thanks,
Don P.

Matthew Tyson

unread,
Jun 2, 2012, 8:01:01 PM6/2/12
to cometd...@googlegroups.com
I've never seen that before but it looks like IE8 in compat mode is missing the build-in JSON object.  You could add a third party package that has the JSON support (or just ensure you don't run in compat mode).


Thanks,
Don P.

--
You received this message because you are subscribed to the Google Groups "cometd-users" group.
To post to this group, send email to cometd...@googlegroups.com
To unsubscribe from this group, send email to cometd-users...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cometd-users

Visit the CometD website at http://www.cometd.org

Reply all
Reply to author
Forward
0 new messages