ThinkGeo.com    |     Documentation    |     Premium Support

Error in opl_GeoResource.axd

Hello,





I made some tests with the last version and I've got a problem with IE8.


On every refresh (PostBack), i've got an error (Invalide argument) on this line :


style.addRule('olv\\:*',"behavior: url(#default#VML); "+"position: absolute; display: inline-block;");


in this block :


if(!document.namespaces.olv) {


document.namespaces.add("olv",this.xmlns);


var style=document.createStyleSheet();


style.addRule('olv\\:*',"behavior: url(#default#VML); "+"position: absolute; display: inline-block;");


}


I haven't got errors with FIrefox or IE7 (IE8 in browser mode IE7).


Do you have any idea where it may come?



Pierre, 


In Web Edition 3.0, we used VML to draw shapes on the map. However, IE8 doesn’t have a good support on VML now, that’s why “olv\\:*” in IE8 cannot be recognized. You can see from the following link that it is a known issue.(they provide some way to work around, we tried and it brings some other issues)
connect.microsoft.com/IE/feedback/ViewFeedback.aspx?FeedbackID=333905
 
If you still want to use IE8, we recommended removing the following doc type and ignoring the standards.  It removes the strong checking and everything will be fine, one bad thing is that when adding some new stuff, you might bring in some compatibility issues with other platforms (as we don’t have the doctype for the checking). 


 
Let me know if you have any issues.
 
Thanks,
 
Ben


Ben,


 


What doctype should I delete ?


This one :  DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> ?



Yes, should be that one. Sorry I forgot to include it.  
  
 Ben