Community
All Communities
Products
ArcGIS Pro
ArcGIS Survey123
ArcGIS Online
ArcGIS Enterprise
Data Management
Geoprocessing
ArcGIS Web AppBuilder
ArcGIS Experience Builder
ArcGIS Dashboards
ArcGIS CityEngine
ArcGIS Spatial Analyst
All Products Communities
Industries
Education
Water Resources
State & Local Government
Transportation
Gas and Pipeline
Water Utilities
Roads and Highways
Telecommunications
Natural Resources
Electric
Public Safety
All Industries Communities
Developers
Python
JavaScript Maps SDK
Native Maps SDKs
ArcGIS API for Python
ArcObjects SDK
ArcGIS Pro SDK
Developers - General
ArcGIS REST APIs and Services
ArcGIS Online Developers
File Geodatabase API
Game Engine Maps SDKs
All Developers Communities
Worldwide
Comunidad Esri Colombia - Ecuador - Panamá
ArcGIS 開発者コミュニティ
Czech GIS
ArcNesia
Esri India
GeoDev Germany
ArcGIS Content - Esri Nederland
Esri Italia Community
Comunidad GEOTEC
Esri Ireland
Používatelia ArcGIS
All Worldwide Communities
All Communities
Developers
User Groups
Industries
Services
Community Resources
Worldwide
Events
Learning
ArcGIS Topics
Networks
GIS Life
View All Communities
ArcGIS Ideas
GIS Life
Community Resources
Community Help Documents
Community Blog
Community Feedback
Member Introductions
Community Ideas
All Community Resources
Sign In
cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
Show
only
|
Search instead for
Did you mean:
Cancel
Home
:
All Communities
:
Developers
:
JavaScript Maps SDK
:
JavaScript Maps SDK Questions
:
VML, createSurface issue, Unexpected call to metho...
Options
Subscribe to RSS Feed
Mark Topic as New
Mark Topic as Read
Float this Topic for Current User
Bookmark
Subscribe
Mute
Printer Friendly Page
VML, createSurface issue, Unexpected call to method or property access
Subscribe
655
1
06-28-2011 11:20 AM
by
CoreyAlix
Occasional Contributor
06-28-2011
11:20 AM
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
Report Inappropriate Content
Using IE 9 in compatibility mode results in VML loading instead of SVG. When VML loads, about 1/2 the time I get a failure in createSurface. The failure is in the createSurface method in vml.js. The code which fails is the first appendChild:
r.appendChild(b);
The content of r and b are as follows:
b.outerHTML "<V:RECT style="WIDTH: 540px; HEIGHT: 498px; TOP: 0px; LEFT: 0px" stroked="f" filled="f">"
r.outerHTML "<V:GROUP style="POSITION: absolute; WIDTH: 540px; HEIGHT: 498px" coordsize="540 498" coordorigin="0 0">"
The result of the call to appendChild:
r.appendChild(b) Unexpected call to method or property access.
I've found reference to this error on the dojotookit bug list but not sure if it's related:
http://bugs.dojotoolkit.org/ticket/11240
Any insight much appreciated. I've been struggling with this compressed API for too many months!
Tags
(2)
Tags:
javascript
web_developers
Reply
0
Kudos
All Posts
Previous Topic
Next Topic
1 Reply
by
CoreyAlix
Occasional Contributor
06-30-2011
05:10 AM
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
Report Inappropriate Content
In my case, adding the following seemed to do the trick:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd
">
<html xmlns="
http://www.w3.org/1999/xhtml
" xmlns:v="urn:schemas-microsoft-com:vml">
It was based on this advice:
http://code.google.com/apis/maps/documentation/javascript/v2/basics.html#XHTML_and_VML
Reply
0
Kudos
Post Reply