ven. 20 février 2015, 14h09

JpG
France
atoutfox.public.association
Re: Questions avec objet IE
Bonjour Eddy.
Dans le INIT d'une forme ou il y a un objet INTERNET EXPLORER, j'ai ceci :
With ThisForm._web as InternetExplorer.Application
navigate("http://www.one-expert.fr/Maps/AfficPlanSitu1.htm")
visible = .t.
ENDWITH
DO WHILE Thisform._web.ReadyState != 4
DOEVENTS
ENDDO
WAIT CLEAR
A l'exécution IE bloque l'affichage ***
Si au lieu de mettre .navigate("
http://www.one-expert.fr/Maps/AfficPlanSitu1.htm")
je mets .navigate("
http://www.one-expert.fr")
cela fonctionne alors bien. Car ce que je lance n'est alors pas "bloqué" par IE
Enfin, si je lance "
http://www.one-expert.fr/Maps/AfficPlanSitu1.htm" dans mon navigateur IE, pas de soucis.
Si tu veux avoir le contenu du HTML qui est lancé (mais je suis sur que le problème n'est pas là ) :
<!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">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title>Situation Géographique</title>
<style type="text/css">
html, body, #map-canvas { height: 100%; margin: 0; padding: 0;}
</style>
<script type="text/javascript"
src="
https://maps.googleapis.com/maps/api/js?key=<<GoogleToken>>">
</script>
<script type="text/javascript">
var myCenter=new google.maps.LatLng(48.8635675,2.810739);
function initialize()
{
var mapProp = {
center:myCenter,
zoom: 15,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
var map = new google.maps.Map(document.getElementById('googleMap'),mapProp);
var marker=new google.maps.Marker({position:myCenter,});
marker.setMap(map);
}
google.maps.event.addDomListener(window, 'load', initialize);
</script>
</head>
<body>
<div id="googleMap" style="width: 888px; height: 666px"></div>
</body>
</html>
Permalink : http://www.atoutfox.org/nntp.asp?ID=0000015993