passing values to html document from .Net app

B

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>
 
L

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
 
B

Bill nguyen

This is a workable solution. Is there a more efficient way to do it by just
passing the required values?

Thanks

Bill
 
G

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
 

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