473,387 Members | 1,374 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Javascript array to vb array

Hey guys, I've searched high and low for a way to populate a vb array with
data from a javascript array. I can find 50 ways to do it with ASP but not
one for VB. I appreciate what help you can give.
--
-John
Please rate when your question is answered to help us and others know what
is helpful.
Oct 28 '07 #1
6 2562
What? You want to write a VB .NET program that has JavaScript in the VB?

You can do it with ASP but not VB? What does that mean? ASP is an
architecture, not a language. If you did what you want in an ASP page, then
you wrote it in, most likely VBScript. Can you post that code so we can
understand what it is you are trying to do?

"John Bundy" <jm*****@gmail.com(remove)wrote in message
news:F9**********************************@microsof t.com...
Hey guys, I've searched high and low for a way to populate a vb array with
data from a javascript array. I can find 50 ways to do it with ASP but not
one for VB. I appreciate what help you can give.
--
-John
Please rate when your question is answered to help us and others know what
is helpful.

Oct 29 '07 #2
I am automating a batch download of files from a web page. The url's of the
downloads are built from a combination of values stored in arrays on the
site. I have a windows application program built that navigates to the site,
does some preliminary stuff, and now needs to download the files needed to
complete the process. I have all the code for navigation and even the
downloader built, just need this last piece. This is an example of the issue
posted elsewhere.

http://www.thescripts.com/forum/thread91300.html
--
-John
Please rate when your question is answered to help us and others know what
is helpful.
"Scott M." wrote:
What? You want to write a VB .NET program that has JavaScript in the VB?

You can do it with ASP but not VB? What does that mean? ASP is an
architecture, not a language. If you did what you want in an ASP page, then
you wrote it in, most likely VBScript. Can you post that code so we can
understand what it is you are trying to do?

"John Bundy" <jm*****@gmail.com(remove)wrote in message
news:F9**********************************@microsof t.com...
Hey guys, I've searched high and low for a way to populate a vb array with
data from a javascript array. I can find 50 ways to do it with ASP but not
one for VB. I appreciate what help you can give.
--
-John
Please rate when your question is answered to help us and others know what
is helpful.


Oct 29 '07 #3
Your problem is more complex than you think. It's not just a conversion
between JavaScript and VB .NET. It's the persistence of the client side
JavaScript object into the server-side processing of ASP .NET.

You'll first need to find a way to send the JavaScript array data (not the
array) to the server for the server-side code to extract. The most
straight-forward way would probably be hidden form fields and an automated
form submit function in the client-side code.

"John Bundy" <jm*****@gmail.com(remove)wrote in message
news:10**********************************@microsof t.com...
>I am automating a batch download of files from a web page. The url's of the
downloads are built from a combination of values stored in arrays on the
site. I have a windows application program built that navigates to the
site,
does some preliminary stuff, and now needs to download the files needed to
complete the process. I have all the code for navigation and even the
downloader built, just need this last piece. This is an example of the
issue
posted elsewhere.

http://www.thescripts.com/forum/thread91300.html
--
-John
Please rate when your question is answered to help us and others know what
is helpful.
"Scott M." wrote:
>What? You want to write a VB .NET program that has JavaScript in the VB?

You can do it with ASP but not VB? What does that mean? ASP is an
architecture, not a language. If you did what you want in an ASP page,
then
you wrote it in, most likely VBScript. Can you post that code so we can
understand what it is you are trying to do?

"John Bundy" <jm*****@gmail.com(remove)wrote in message
news:F9**********************************@microso ft.com...
Hey guys, I've searched high and low for a way to populate a vb array
with
data from a javascript array. I can find 50 ways to do it with ASP but
not
one for VB. I appreciate what help you can give.
--
-John
Please rate when your question is answered to help us and others know
what
is helpful.



Oct 29 '07 #4
I was afraid of something like that. There are two javascript functions, one
that selects the rows and one that retrieves them, I have some code that can
run a javascript function but nothing along the lines of passing parameters.
Any ideas for that?
--
-John
Please rate when your question is answered to help us and others know what
is helpful.
"Scott M." wrote:
Your problem is more complex than you think. It's not just a conversion
between JavaScript and VB .NET. It's the persistence of the client side
JavaScript object into the server-side processing of ASP .NET.

You'll first need to find a way to send the JavaScript array data (not the
array) to the server for the server-side code to extract. The most
straight-forward way would probably be hidden form fields and an automated
form submit function in the client-side code.

"John Bundy" <jm*****@gmail.com(remove)wrote in message
news:10**********************************@microsof t.com...
I am automating a batch download of files from a web page. The url's of the
downloads are built from a combination of values stored in arrays on the
site. I have a windows application program built that navigates to the
site,
does some preliminary stuff, and now needs to download the files needed to
complete the process. I have all the code for navigation and even the
downloader built, just need this last piece. This is an example of the
issue
posted elsewhere.

http://www.thescripts.com/forum/thread91300.html
--
-John
Please rate when your question is answered to help us and others know what
is helpful.
"Scott M." wrote:
What? You want to write a VB .NET program that has JavaScript in the VB?

You can do it with ASP but not VB? What does that mean? ASP is an
architecture, not a language. If you did what you want in an ASP page,
then
you wrote it in, most likely VBScript. Can you post that code so we can
understand what it is you are trying to do?

"John Bundy" <jm*****@gmail.com(remove)wrote in message
news:F9**********************************@microsof t.com...
Hey guys, I've searched high and low for a way to populate a vb array
with
data from a javascript array. I can find 50 ways to do it with ASP but
not
one for VB. I appreciate what help you can give.
--
-John
Please rate when your question is answered to help us and others know
what
is helpful.


Oct 29 '07 #5
As I said, I think you'll need to write a new JavaScript function that
gathers the array data and sends it to the server (via a form submit,
perhaps).

I imagine the function would iterate over your array and add hidden form
fields to the DOM, then when done submit the form. The server-side code
would then just pull these submitted form values out of the Request object
as normal.
"John Bundy" <jm*****@gmail.com(remove)wrote in message
news:44**********************************@microsof t.com...
>I was afraid of something like that. There are two javascript functions,
one
that selects the rows and one that retrieves them, I have some code that
can
run a javascript function but nothing along the lines of passing
parameters.
Any ideas for that?
--
-John
Please rate when your question is answered to help us and others know what
is helpful.
"Scott M." wrote:
>Your problem is more complex than you think. It's not just a conversion
between JavaScript and VB .NET. It's the persistence of the client side
JavaScript object into the server-side processing of ASP .NET.

You'll first need to find a way to send the JavaScript array data (not
the
array) to the server for the server-side code to extract. The most
straight-forward way would probably be hidden form fields and an
automated
form submit function in the client-side code.

"John Bundy" <jm*****@gmail.com(remove)wrote in message
news:10**********************************@microso ft.com...
>I am automating a batch download of files from a web page. The url's of
the
downloads are built from a combination of values stored in arrays on
the
site. I have a windows application program built that navigates to the
site,
does some preliminary stuff, and now needs to download the files needed
to
complete the process. I have all the code for navigation and even the
downloader built, just need this last piece. This is an example of the
issue
posted elsewhere.

http://www.thescripts.com/forum/thread91300.html
--
-John
Please rate when your question is answered to help us and others know
what
is helpful.
"Scott M." wrote:

What? You want to write a VB .NET program that has JavaScript in the
VB?

You can do it with ASP but not VB? What does that mean? ASP is an
architecture, not a language. If you did what you want in an ASP
page,
then
you wrote it in, most likely VBScript. Can you post that code so we
can
understand what it is you are trying to do?

"John Bundy" <jm*****@gmail.com(remove)wrote in message
news:F9**********************************@microso ft.com...
Hey guys, I've searched high and low for a way to populate a vb
array
with
data from a javascript array. I can find 50 ways to do it with ASP
but
not
one for VB. I appreciate what help you can give.
--
-John
Please rate when your question is answered to help us and others
know
what
is helpful.



Oct 29 '07 #6
I will try it, thanks
--
-John
Please rate when your question is answered to help us and others know what
is helpful.
"Scott M." wrote:
As I said, I think you'll need to write a new JavaScript function that
gathers the array data and sends it to the server (via a form submit,
perhaps).

I imagine the function would iterate over your array and add hidden form
fields to the DOM, then when done submit the form. The server-side code
would then just pull these submitted form values out of the Request object
as normal.
"John Bundy" <jm*****@gmail.com(remove)wrote in message
news:44**********************************@microsof t.com...
I was afraid of something like that. There are two javascript functions,
one
that selects the rows and one that retrieves them, I have some code that
can
run a javascript function but nothing along the lines of passing
parameters.
Any ideas for that?
--
-John
Please rate when your question is answered to help us and others know what
is helpful.
"Scott M." wrote:
Your problem is more complex than you think. It's not just a conversion
between JavaScript and VB .NET. It's the persistence of the client side
JavaScript object into the server-side processing of ASP .NET.

You'll first need to find a way to send the JavaScript array data (not
the
array) to the server for the server-side code to extract. The most
straight-forward way would probably be hidden form fields and an
automated
form submit function in the client-side code.

"John Bundy" <jm*****@gmail.com(remove)wrote in message
news:10**********************************@microsof t.com...
I am automating a batch download of files from a web page. The url's of
the
downloads are built from a combination of values stored in arrays on
the
site. I have a windows application program built that navigates to the
site,
does some preliminary stuff, and now needs to download the files needed
to
complete the process. I have all the code for navigation and even the
downloader built, just need this last piece. This is an example of the
issue
posted elsewhere.

http://www.thescripts.com/forum/thread91300.html
--
-John
Please rate when your question is answered to help us and others know
what
is helpful.
"Scott M." wrote:

What? You want to write a VB .NET program that has JavaScript in the
VB?

You can do it with ASP but not VB? What does that mean? ASP is an
architecture, not a language. If you did what you want in an ASP
page,
then
you wrote it in, most likely VBScript. Can you post that code so we
can
understand what it is you are trying to do?

"John Bundy" <jm*****@gmail.com(remove)wrote in message
news:F9**********************************@microsof t.com...
Hey guys, I've searched high and low for a way to populate a vb
array
with
data from a javascript array. I can find 50 ways to do it with ASP
but
not
one for VB. I appreciate what help you can give.
--
-John
Please rate when your question is answered to help us and others
know
what
is helpful.



Oct 29 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: JesusFreak | last post by:
From: us_traveller@yahoo.com (JesusFreak) Newsgroups: microsoft.public.scripting.jscript Subject: toolbar script problem NNTP-Posting-Host: 192.92.126.136 Recently, I downloaded the following...
13
by: Kevin | last post by:
Help! Why are none of these valid? var arrayName = new Array(); arrayName = new Array('alpha_val', 1); arrayName = ; I'm creating/writing the array on the server side from Perl, but I
10
by: John Ortt | last post by:
Hi Everyone, I have created a Javascript menu for my site which uses frames. The first stage loads fine but I want two drill down menus ("About Me Menu" and "Projects Menu"). The pages load...
22
by: VK | last post by:
A while ago I proposed to update info in the group FAQ section, but I dropped the discussion using the approach "No matter what color the cat is as long as it still hounts the mice". Over the last...
2
by: BrianP | last post by:
Hi, I have had to invent a work-around to get past what looks like a JavaScript bug, the malfunctioning Perl-like JavaScript array functions including SPLICE() and UNSHIFT(). I have boiled it...
104
by: Leszek | last post by:
Hi. Is it possible in javascript to operate on an array without knowing how mamy elements it has? What i want to do is sending an array to a script, and this script should add all values from...
41
by: Rene Nyffenegger | last post by:
Hello everyone. I am not fluent in JavaScript, so I might overlook the obvious. But in all other programming languages that I know and that have associative arrays, or hashes, the elements in...
9
by: paul | last post by:
Hi All, We have a small dilemma. We have the following page: http://giggsey.com/m00Cow.php (don't ask about the content) that we want to turn into an interactive application for some new intake...
1
by: jianxin9 | last post by:
Hi, I have an ajax powered tabs box that has a javascript drop-down search menu in the first tab. When I click on another tab, and go back to the first tab I have to refresh the page to get the...
2
by: sorobor | last post by:
dear sir .. i am using cakephp freamwork ..By the way i m begener in php and javascript .. My probs r bellow I made a javascript calender ..there is a close button ..when i press close button...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.