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> 3 1450
So... write the html contents to a file and simply insert the values where
they belong then execute the html file?
-L
"Bill Nguyen" <bi*****************@jaco.com> wrote in message
news:Oq**************@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
"Locke Nash Cole" <ju********@hotmail.com> wrote in message
news:ey**************@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" <bi*****************@jaco.com> wrote in message news:Oq**************@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 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" <ju********@hotmail.com> wrote in message news:ey**************@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" <bi*****************@jaco.com> wrote in message news:Oq**************@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> This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Andy R. |
last post by:
Hello everyone,
I've spent quite some time now, looking for some information on how to
get this done, sadly none has helped me much, though.
I have a bit of java scrpt on a webpage (.php) to...
|
by: kie |
last post by:
hello,
when i create elements and want to assign events to them, i have
realised that if the function assigned to that element has no
parameters, then the parent node values can be attained.
...
|
by: Kevin Lyons |
last post by:
Hello,
I am trying to get my select options (courses) passed correctly from
the following URL: http://www.dslextreme.com/users/kevinlyons/selectBoxes.html
I am having difficulty getting the...
|
by: domeceo |
last post by:
can anyone tell me why I cannot pass values in a setTimeout function
whenever I use this function it says "menu is undefined" after th
alert.
function imgOff(menu, num) {
if (document.images) {...
|
by: cirillo_curiosone |
last post by:
Hi,
i'm new to javascript. I started studing it on the web few weeks ago,
but still haven't been able to solve one big problem: HOT TO PASS VALUES
FROM A SCRIPT VARIABLE TO A CHILD HTML...
|
by: |
last post by:
Hi,
1st, I did a search and could not find any info on this, the Google results
were good, but I'm still have issues...So any help will be great.
I have a frame page, which contains 3 frames...
|
by: Peter |
last post by:
Hello
I have the following tag
<select name="cat" id="cat"
onchange="popUpWin('cmPhaseReload.php?category='+document.getElementById('cat').options.value
,600,600,'yes')" class="tbl_result"...
|
by: vncntj |
last post by:
I have this home.js file and I'm trying to collect the values on the
other at "emplist.aspx"
function poponload()
{
testwindow= window.open ("emplist.aspx", "mywindow",...
|
by: mbcode |
last post by:
I am trying to use a Javascript picklist box and then echo the chosen values back to the screen (and insert in the db later) but I am getting the Button value rather than the list values. I have...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
| |