473,385 Members | 1,813 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,385 software developers and data experts.

STOPPED WORKING

Hello all. Admitedly I am not a Javascript guy. Several months ago
someone helped me put together a a script which up unitl now worked
just fine. Now, I did not change anything and yet it no longer works.
The code is as follows:

************************************************** *****************************************
function populate(val){
var itemArray = new Array()
<%
dim iNo
iNo = 0
While Not rsMod.EOF
Response.Write "itemArray[" & iNo & "] = {value: '" & rsMod("vName")
& "',category: '" & rsMod("vCat") & "',modcat: '" & rsMod("vNo") &
"'}" & vbNewLine
iNo = iNo + 1
rsMod.MoveNext
WEND
%>

document.form.selectMod.options.length = 0;

var amount = 0;

for(i=0;i<itemArray.length;i++){
if(itemArray[i].category == val){
eval("document.form.selectMod.options[amount]=" + "new Option('" +
itemArray[i].value + "','" + itemArray[i].modcat + "')")
amount = amount+1
}
}//for loop one closer

}//function closer

************************************************** ************************************************** **

Essentially, there is a drop down that when selected populates another
drop down based on the first selection. The vbscript above is pulling
values from my database. Again, this has all worked just fine and now
does not. But I have not changed anything. Any thoughts? Thank you.

Apr 24 '07 #1
3 1300
Lee
Window Frog said:
>
Hello all. Admitedly I am not a Javascript guy. Several months ago
someone helped me put together a a script which up unitl now worked
just fine. Now, I did not change anything and yet it no longer works.
The code is as follows:
>Essentially, there is a drop down that when selected populates another
drop down based on the first selection. The vbscript above is pulling
values from my database. Again, this has all worked just fine and now
does not. But I have not changed anything. Any thoughts? Thank you.
What does "does not" work mean?
Do you see error messages? Unexpected results?
Show us the code that appears in the web page, without the vbscript.
--

Apr 24 '07 #2
On Apr 24, 10:31 am, Window Frog <m...@deepskystudio.comwrote:
Hello all. Admitedly I am not a Javascript guy. Several months ago
someone helped me put together a a script which up unitl now worked
just fine. Now, I did not change anything and yet it no longer works.
The code is as follows:

************************************************** *****************************************
function populate(val){
var itemArray = new Array()
<%
dim iNo
iNo = 0
While Not rsMod.EOF
Response.Write "itemArray[" & iNo & "] = {value: '" & rsMod("vName")
& "',category: '" & rsMod("vCat") & "',modcat: '" & rsMod("vNo") &
"'}" & vbNewLine
iNo = iNo + 1
rsMod.MoveNext
WEND
%>

document.form.selectMod.options.length = 0;

var amount = 0;

for(i=0;i<itemArray.length;i++){
if(itemArray[i].category == val){
eval("document.form.selectMod.options[amount]=" + "new Option('" +
itemArray[i].value + "','" + itemArray[i].modcat + "')")
amount = amount+1
}
}//for loop one closer

}//function closer

************************************************** ************************************************** **

Essentially, there is a drop down that when selected populates another
drop down based on the first selection. The vbscript above is pulling
values from my database. Again, this has all worked just fine and now
does not. But I have not changed anything. Any thoughts? Thank you.
Computers are amazingly resilient. they keep doing things over and
over again with 100% accuracy. Something changed. Perhaps data?

Apr 25 '07 #3
On Apr 25, 7:45 pm, dave <dave.wa...@gmail.comwrote:
On Apr 24, 10:31 am, Window Frog <m...@deepskystudio.comwrote:
Hello all. Admitedly I am not a Javascript guy. Several months ago
someone helped me put together a a script which up unitl now worked
just fine. Now, I did not change anything and yet it no longer works.
The code is as follows:
************************************************** ************************* ****************
function populate(val){
var itemArray = new Array()
<%
dim iNo
iNo = 0
While Not rsMod.EOF
Response.Write "itemArray[" & iNo & "] = {value: '" & rsMod("vName")
& "',category: '" & rsMod("vCat") & "',modcat: '" & rsMod("vNo") &
"'}" & vbNewLine
iNo = iNo + 1
rsMod.MoveNext
WEND
%>
document.form.selectMod.options.length = 0;
var amount = 0;
for(i=0;i<itemArray.length;i++){
if(itemArray[i].category == val){
eval("document.form.selectMod.options[amount]=" + "new Option('" +
itemArray[i].value + "','" + itemArray[i].modcat + "')")
amount = amount+1
}
}//for loop one closer
}//function closer
************************************************** ************************* ***************************
Essentially, there is a drop down that when selected populates another
drop down based on the first selection. The vbscript above is pulling
values from my database. Again, this has all worked just fine and now
does not. But I have not changed anything. Any thoughts? Thank you.

Computers are amazingly resilient. they keep doing things over and
over again with 100% accuracy. Something changed. Perhaps data?
My apologies, I have been on vacation and did not get this response. I
completely agree and would not have posted had I not been thoroughly
stumped by it. To my knowledge I in no way changed the page. The data
has remained consistent as well. I am completely willing to use a
different solution for the script and not just a fix for the current
one. Thank you.

May 2 '07 #4

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

Similar topics

5
by: Bill | last post by:
I used to be able to run the following ASP code on our corp machine (W2K Server Edition and IIS-5) and successfully send a net-msg to anyone on our intranet. Last week it stopped working... and...
4
by: Niel | last post by:
Hello friends, I am not sure if i am posting to the correct group but if anyone has an idea about this and the possible solution or the link to that solution then please let me know We have out...
12
by: Beer | last post by:
Hello Everyone, We have been getting the EventID 7031 errors ever since we installed SP 3. We have been searching for any possible solution, but not much luck. We are running Windows 2000...
4
by: Dag Sunde | last post by:
I've been working on a system that have been running for the last couple of years, but stopped working on my dev. machine after reinstalling WinXP yesterday. To my knowledge, it have been set up...
2
by: Dag Sunde | last post by:
I have the following code fragment in one of my pages: if (typeof document.getElementById('myApplet').getTableAsSDV != 'undefined') { rowBuffer =...
6
by: Susan Bricker | last post by:
Hi. Does anyone have a clue why my mouse wheel stopped working while I was working on the VB behind a form in MS/Access? I would swear that the mouse wheel was working a short time ago. I've...
4
by: vzaffiro | last post by:
Our Development Server (windows 2003, framework 1.1) was working great for months, then one day all the client side validators stopped working. Only the server side validation is working. Our code...
4
by: JohnB111 | last post by:
Hi Environment: Windows XPPRO SP2 IIS 5.1 AVG Anti Virus (Not script Blocking) The following code used to work perfectly on my local development machine and still does on my web server.
2
by: Rico | last post by:
Hello, I have an ASP.net application, it's a third party forum software running on an SQL Server back end. This application was working fine with no issues. Then yesterday, without being...
1
by: rickcasey | last post by:
I wonder if anyone has experienced something like this, as it seems truly bizarre and is causing me to tear out my hair (what little there is left of it).... The exec() function just suddenly...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.