public Form1()
{
InitializeComponent();
Form1_Load();
}
private void Form1_Load()
{
webBrowser1.DocumentText =
//this works ok
/* "<html>" +
"<head><title>titolo</title></head>" +
"<body>ciao" +
"<img src=\"
http://www.brandsoftheworld.com/brands/0015/1064/brand.gif\">"+
"</body>"+
"<script language='javascript'>alert('test');</script>"+
"</html>";
*/
//this doesn't work
"<html>"+
" <head>"+
" <script src=\"
http://maps.google.com/maps?file=ap...O2i9Jj2IU3u8sZihTpf6isGxxdYNVR7Cz43Z1TdfuU1w\" type=\"text/javascript\"></script>"+
" <script type=\"text/javascript\">"+
" function load() {"+
" if (GBrowserIsCompatible()) {"+
" var map = new GMap2(document.getElementById('map'));"+
" map.setCenter(new GLatLng(44.63,10.95), 16);"+
" }"+
" }"+
" </script>"+
" </head>"+
" <body onload=\"load()\" onunload=\"GUnload()\">"+
" <div id=\"map\" style=\"width: 240px; height: 320px\"></div>"+
" </body>"+
"</html>";
//webBrowser1.Navigate(new Uri("
http://www.google.it"));
}
_________________________________
script is ok, but if source is google maps i have a problem...
the same code in standard html document works ok (i see the map) instead of remaining in the state of loading..