|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
passing values to html document from .Net appfunction 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> 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> > > > 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> >> >> >> > > 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>
Resolution in VB.NET
Difference between Class and module interrupting calculations MDI Form Question Big Imagelist Out Of Memory Using an object from a Generically defined class as a variable. Using SOAP with VB.net Mutiple projects under one solution - can't find a class in the first Very strange string problem using ASCIIEncoding flash a tab control |
|||||||||||||||||||||||