All,

Finally I found the solution by preventing the event to bubble up to
the Map API script main.js.
Replace

if(window.event) // IE/Opera/Safari/Chrome
    {
        keynum = e.keyCode
    }
    else if(e.which) // Netscape/Firefox
    {
        keynum = e.which
    }

by

if(window.event) // IE/Opera/Safari/Chrome
    {
        keynum = e.keyCode
        e.cancelBubble = true
    }
    else if(e.which) // Netscape/Firefox
    {
        keynum = e.which
        if (e.stopPropagation) e.stopPropagation();
    }

see http://www.quirksmode.org/js/events_order.html for an explanation.

kind regards,
Erik


On 11 okt, 10:15, GreatErik1 <[email protected]> wrote:
> Try this demohttp://www.verheulconsultants.nl/test/Google-maps-IE8-bug.html
> and enter alpha characters and digits in the name field. Digits should
> be blocked and not appear in the input field. This works fine in
> Opera, Firefox, Safari and Chrome but not in IE8.
> I fixed this in Maps v2 by replacing map.setUIToDefault()
>
> by
>
> map.addMapType(G_PHYSICAL_MAP);
> map.addControl(new GLargeMapControl3D());
> map.addControl(new GScaleControl());
> map.addControl(new GMapTypeControl());
>
> (seehttp://code.google.com/p/gmaps-api-issues/issues/detail?id=1479)
>
> However I find no alternative in v3.
>
> Please give me a hint to tackle this problem,
> Thanks,
> Erik

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to