/    Sign up×
Community /Pin to ProfileBookmark

In my vb.net from I have

Dim add22 As String = “office | You are in |Medford, MA | Phone: 457-585-5142 “
Dim add23 As String = “office | You are in | Athol, MA | Phone: 457-585-5142 “
Dim add24 As String = “office | You are in | Lexington, MA | Phone: 457-585-5142 “

InvokeMemberWithArgument(“find”, add22)
InvokeMemberWithArgument(“find”, add23)
InvokeMemberWithArgument(“find”, add24)

and in my Javascript form I have:

div.find = function(address)
{

var name = address.split(“|”);
var map = this.proxy;

var address = name[2];

I just wondering how I can change my Arrya “address” in javascript to becomes like this:

var addresses = [
“Medfrod, MA”,
“Athol, MA”,
“Lexington, MA”];

Immediate response highly appreciated!

Shawn

to post a comment
JavaScript

5 Comments(s)

Copy linkTweet thisAlerts:
@mityaJul 11.2008 — Don't quite get you. Post an example of what your existing address array might store. Are you saying you want one array to hold everyone's address?
Copy linkTweet thisAlerts:
@Shawn128authorJul 11.2008 — In my javascript from I have one address per time. For instance whhen I put the

alert(adress); in my javascript from and run the windows VB.NET form I get

Medfrod, MA then I click Ok I get Athol, MA, then I click Ok, I get Lexington MA.

I want to have all these adreeses in my array one time when I run my windows application.
Copy linkTweet thisAlerts:
@Shawn128authorJul 11.2008 — You might look at my Javascript code at here:

http://www.bluecowweb.com/map/
Copy linkTweet thisAlerts:
@mityaJul 11.2008 — Why not just store everything in one global array, then? You can keep adding new elements to an existing array thus:

window.addresses[window.addresses.length] = "new value";
Copy linkTweet thisAlerts:
@Shawn128authorJul 13.2008 — you mean in vb.net form?
×

Success!

Help @Shawn128 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...