in IE8 point Giving wrong coordinates
|
#1 -
29/05/2009 0:04:10
|
Reporta abuso
|
Link permanente
|
|
in IE8 point Giving wrong coordinates
|
|
|
|
|
I tried on this site server side events (http://en.googlemaps.subgurim.net/ejemplos/ejemplo_993000_Eventos-Servidor.aspx ) when clicking to create marker, in IE8 the marker appears in wrong position (some offset accures), on my site this happens with aspnetpostback allso. But when i turn on compatibility mode on it works fine. I triede some plain htm page, and created a map with pure google map API, and all works fine,mozilla firefox works fine. So if anybody knows what might be the problem is there something to add?
|
|
|
|
|
|
#2 -
03/06/2009 13:32:58
|
Reporta abuso
|
Link permanente
|
|
RE: in IE8 point Giving wrong coordinates
|
|
|
|
It's a problem with IE8, if you force the client to use compatibility mode it will work fine.
If you add this to the header under the <head> tag it should work fine:
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
Using asp.net code in a client page that has a master page you can use this in the page load event:
Dim MetaHead As New System.Web.UI.HtmlControls.HtmlMeta
MetaHead.Attributes.Add("http-equiv", "X-UA-Compatible") MetaHead.Attributes.Add("content", "IE=EmulateIE7")
Me.Page.Header.Controls.AddAt(0, MetaHead)
|
|
|
|
|