Arg: Illegal input string in Vecetor2d (vml.xd.js)

1166
10
10-04-2011 09:12 AM
AaronConnolly
Regular Contributor
All - I did a quick search on the forum and found the following related thread:

http://forums.arcgis.com/threads/21315-Adding-a-point-amp-change-extent-quot-Arg-Illegal-input-strin...

I'm not sure if this is the exact same issue, but I'm doing essentially the same thing with my app. I've created a sandbox app that demonstrates the issue, and I have attached it to this post. To use this sand box app, you'll need to re-wire the Geocoding service and Geometry service.

Given the attached sandbox, here's how to reproduce the error:

If you're using IE8 proceed to step 1. If you're using IE9 press F12 to open the developer tools. Ensure that your Browser Mode is set to IE9 and the Document Mode is set to IE8. Then proceed to step 1.

1. Type an address in the search box. Click search. Wait for the buffer to draw on the map.
2. Type a second address somewhere else. Click search. Wait for the map to redraw.
3. Notice that only the pin marker is drawn.
4. Move the map with your mouse and the following exception should be thrown in IE:

SCRIPT33426: Arg: Illegal input string in Vector2D
vml.xd.js, line 14 character 24560

This problem does not exist in Firefox, Safari or Chrome. Only IE8 and IE7

Has anyone noticed this issue in IE before? If so, do you know what causes it or how to resolve it?

Thanks,
- Aaron
0 Kudos
10 Replies
JeffPace
MVP Alum
Yes IE uses vml, all other browsers support SVG for graphics.  So since it is a vml related error, it will only occur in IE7/8 (IE9 adds svg support i believe).

if you

alert(dojox.gfx.renderer);

it will tell you vml or svg (and provides a handy switch case for dealing with ie7/8 issues
0 Kudos