Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Passing array btween VBScript and javascript

 
Logged in as: Guest
arrSession:exec spGetSession 2,3,61544
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> ASP >> Passing array btween VBScript and javascript
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Passing array btween VBScript and javascript - 6/17/2008 11:39:33 PM   
  patrickd123

 

Posts: 1
Score: 0
Joined: 6/17/2008
Status: offline
Hi,

I have an ASP page that should display placemarks stored in my sql database as a set of (latitude,longitude) 
Is it possible to pass an array between VBScript and javascript, because I only know how to invoke google map API from javascript. I then need to pass my set of points as a parameters to a javacript function that I would call from vbscript.

Something like:


<%
@ Page Language="VB"%>
<
script runat="server">
' Select placement from database to an array
showplacemark(???????)

</
script>

 
<html>
<head>
<script  language="javascript" runat="server">
function showplacemark(???????)
{
       for (???????) {
        var point = new GLatLng(?,?);
        map.addOverlay(new GMarker(point));
      }

}
</script>

</head>

<body>

</body>

</html>




Thanks!
 
 
Post #: 1
 
 RE: Passing array btween VBScript and javascript - 6/18/2008 12:37:01 AM   
  TNO


Posts: 1064
Score: 10
Joined: 12/18/2004
From: thenewobjective.com
Status: offline
VBS:

      

JS:

      

Then just call:

VBArrayTest(CreateVBArray());

_____________________________

To iterate is human, to recurse divine. -- L. Peter Deutsch

(in reply to patrickd123)
 
 
Post #: 2
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> ASP >> Passing array btween VBScript and javascript Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts