Visual Studio 2008 webbrowser

Joined
Nov 4, 2008
Messages
4
Reaction score
0
hi! when i try to use objectforscripting in visual studio i can't see it: it doesn't exists! why? and msdn guide indicate this way to introduce script in html page o webbwrowser tool..

:(
 
Joined
Jul 3, 2008
Messages
407
Reaction score
0
is it a object that you must reference ?
Without seeing a sample of your code its hard to diagnose.
 
Joined
Nov 4, 2008
Messages
4
Reaction score
0
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..
 
Joined
Nov 4, 2008
Messages
4
Reaction score
0
noone can help me? or do u know a method to import an external html source code in visual studio 08?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top