Home All Groups Group Topic Archive Search About

passing values to html document from .Net app

Author
26 Jun 2006 2:16 AM
Bill Nguyen
I would like to invoke the IE browser and pass values (lat and long) to
function GtMap() the html file below from a VB.NET app.
help, please!

Thanks

Bill
------------------------



<html>
   <head>
      <title></title>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <script
src="http://dev.virtualearth.net/mapcontrol/v3/mapcontrol.js"></script>
      <script>
         var map = null;

         function GetMap()
         {
            map = new VEMap('myMap');
            map.LoadMap(new VELatLong(47.6, -122.33), 10 ,'h' ,false);
         }
      </script>
   </head>
   <body onload="GetMap();">
      <div id='myMap' style="position:relative; width:400px;
height:400px;"></div>
   </body>
</html>

Author
26 Jun 2006 3:42 AM
Locke Nash Cole
So... write the html contents to a file and simply insert the values where
they belong then execute the html file?

-L

Show quoteHide quote
"Bill Nguyen" <billn_nospam_please@jaco.com> wrote in message
news:OqlyIaMmGHA.3632@TK2MSFTNGP03.phx.gbl...
>I would like to invoke the IE browser and pass values (lat and long) to
>function GtMap() the html file below from a VB.NET app.
> help, please!
>
> Thanks
>
> Bill
> ------------------------
>
>
>
> <html>
>   <head>
>      <title></title>
>      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
>      <script
> src="http://dev.virtualearth.net/mapcontrol/v3/mapcontrol.js"></script>
>      <script>
>         var map = null;
>
>         function GetMap()
>         {
>            map = new VEMap('myMap');
>            map.LoadMap(new VELatLong(47.6, -122.33), 10 ,'h' ,false);
>         }
>      </script>
>   </head>
>   <body onload="GetMap();">
>      <div id='myMap' style="position:relative; width:400px;
> height:400px;"></div>
>   </body>
> </html>
>
>
>
Author
26 Jun 2006 5:22 AM
Bill nguyen
This is a workable solution. Is there a more efficient way to do it by just
passing the required values?

Thanks

Bill


Show quoteHide quote
"Locke Nash Cole" <junkmau***@hotmail.com> wrote in message
news:eynKBKNmGHA.4168@TK2MSFTNGP04.phx.gbl...
> So... write the html contents to a file and simply insert the values where
> they belong then execute the html file?
>
> -L
>
> "Bill Nguyen" <billn_nospam_please@jaco.com> wrote in message
> news:OqlyIaMmGHA.3632@TK2MSFTNGP03.phx.gbl...
>>I would like to invoke the IE browser and pass values (lat and long) to
>>function GtMap() the html file below from a VB.NET app.
>> help, please!
>>
>> Thanks
>>
>> Bill
>> ------------------------
>>
>>
>>
>> <html>
>>   <head>
>>      <title></title>
>>      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
>>      <script
>> src="http://dev.virtualearth.net/mapcontrol/v3/mapcontrol.js"></script>
>>      <script>
>>         var map = null;
>>
>>         function GetMap()
>>         {
>>            map = new VEMap('myMap');
>>            map.LoadMap(new VELatLong(47.6, -122.33), 10 ,'h' ,false);
>>         }
>>      </script>
>>   </head>
>>   <body onload="GetMap();">
>>      <div id='myMap' style="position:relative; width:400px;
>> height:400px;"></div>
>>   </body>
>> </html>
>>
>>
>>
>
>
Author
26 Jun 2006 6:52 PM
GhostInAK
Hello Bill,

If yer using the IE activeX control or the WebBrowser control in 2.0 then
you can simply use the DOM to assign the values to the elements.  Look at
WebBrowser.Document and ask MSDN about the IE DOM.

-Boo

Show quoteHide quote
> This is a workable solution. Is there a more efficient way to do it by
> just passing the required values?
>
> Thanks
>
> Bill
>
> "Locke Nash Cole" <junkmau***@hotmail.com> wrote in message
> news:eynKBKNmGHA.4168@TK2MSFTNGP04.phx.gbl...
>
>> So... write the html contents to a file and simply insert the values
>> where they belong then execute the html file?
>>
>> -L
>>
>> "Bill Nguyen" <billn_nospam_please@jaco.com> wrote in message
>> news:OqlyIaMmGHA.3632@TK2MSFTNGP03.phx.gbl...
>>
>>> I would like to invoke the IE browser and pass values (lat and long)
>>> to
>>> function GtMap() the html file below from a VB.NET app.
>>> help, please!
>>> Thanks
>>>
>>> Bill
>>> ------------------------
>>> <html>
>>> <head>
>>> <title></title>
>>> <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
>>> <script
>>> src="http://dev.virtualearth.net/mapcontrol/v3/mapcontrol.js"></scri
>>> pt>
>>> <script>
>>> var map = null;
>>> function GetMap()
>>> {
>>> map = new VEMap('myMap');
>>> map.LoadMap(new VELatLong(47.6, -122.33), 10 ,'h' ,false);
>>> }
>>> </script>
>>> </head>
>>> <body onload="GetMap();">
>>> <div id='myMap' style="position:relative; width:400px;
>>> height:400px;"></div>
>>> </body>
>>> </html>