Select to view content in your preferred language

WMX Javascript Viewer and Compatibility Issues

4888
3
08-30-2012 03:58 PM
FraserHand
Occasional Contributor III
Hi There,
Has anyone had any issues with the wmx javascript viewer and running it in IE 8 compatibility mode? We are on a site where the majority of clients are XP with IE 8. Browser settings are applied by group policy and users cannot change any of their IE settings. One of these settings is to run IE in compatibility mode. When running the js viewer in IE 8 compatibility mode, multiple js errors are thrown and the wmx data nor maps load. The errors are:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.1; .NET4.0C; .NET4.0E)
Timestamp: Thu, 30 Aug 2012 23:51:54 UTC


Message: Expected identifier, string or number
Line: 975
Char: 1
Code: 0
URI: http://.../WorkflowManager/js/WMTasks.js


Message: 'esri.WorkflowManager.WMConfigurationTask' is null or not an object
Line: 25
Char: 1
Code: 0
URI: http://.../WorkflowManager/js/wmjsfunctions.js


Message: 'esri.WorkflowManager.Enum' is null or not an object
Line: 4
Char: 1
Code: 0
URI: http://.../WorkflowManager/js/jobProperty.js


Message: 'esri.WorkflowManager.WMAOILayerTask' is null or not an object
Line: 4
Char: 1
Code: 0
URI: http://.../WorkflowManager/js/MapView.js


Message: Object doesn't support this property or method
Line: 67
Char: 13
Code: 0
URI: http://.../WorkflowManager/

Administration users can change to normal mode, and the site loads and appears to run, but still throws js errors:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.1; .NET4.0C; .NET4.0E)
Timestamp: Thu, 30 Aug 2012 23:53:08 UTC


Message: Expected ';'
Line: 1
Char: 9
Code: 0
URI: http://.../wmrest/services/DownerDevelopment/WMServer/dataWorkspaces/%7B29FB56D0-C5DE-476F-B3B4-CC11...



We have an admin user which has IE 9 - and the results are even worse. IE 9 in compatibility mode produces the same errors:


[ATTACH=CONFIG]17394[/ATTACH]


while in normal mode we get strange artefacts on the map:

[ATTACH=CONFIG]17392[/ATTACH]





Running in IE 8 mode produces the same as an IE 8 client (of course).


[ATTACH=CONFIG]17393[/ATTACH]



We would like to get the JS viewer working to make life easier for deployment to mobile clients.

Help!

Thanks,
Fraser
0 Kudos
3 Replies
by Anonymous User
Not applicable
Original User: fraserhand

EDIT:
Since I last spoke with you I found this:

http://stackoverflow.com/questions/3449286/force-ie-compatibility-mode-off-in-ie-using-tags

http://stackoverflow.com/questions/10975107/force-to-use-internet-explorer-ie9-standards-document-mo...

which talks about *forcing* the site to render in a certain mode - namely IE 8 as IE 9 has those strange map artefacts.

You can add <meta http-equiv="X-UA-Compatible" content="IE=8" /> to your <head> and away you go.

We are still experiencing the other js errors but the site appears to be functioning. Would be keen to hear if anyone else has seen those IE 9 issues though.

F
0 Kudos
LalaineLam
Esri Contributor
Hello Fraser,

Are you using Workflow Manager 10 with the Workflow Manager 10 JavaScript viewer? 

I am able to use the WMX 10 JavaScript viewer fine using the following configurations:
* Windows Server 2008 with IE8 in compatibility mode
* Windows 7 with IE9 in compatibility mode
* Windows XP with IE7

Can you try accessing the online WMX 10 JavaScript viewer below?
http://workflowmanagersample.esri.com/wmjs/

The WMX 10.1 JavaScript viewer doesn't seem to be compatible with IE7 or earlier versions, or with compatibility view in IE8 or IE9.  Looks like a fix will have to be applied to the viewer.
WMX 10.1 JS Viewer Example: http://workflowsample.esri.com/wmjs/
0 Kudos
LalaineLam
Esri Contributor
An updated JavaScript viewer will be available as part of the WMX 10.1 SP1 release that will be compatible with IE7 and earlier versions of IE, and works with IE8 and IE9 in compatibility view.


The WMX 10.1 JavaScript viewer doesn't seem to be compatible with IE7 or earlier versions, or with compatibility view in IE8 or IE9.  Looks like a fix will have to be applied to the viewer.
WMX 10.1 JS Viewer Example: http://workflowsample.esri.com/wmjs/
0 Kudos