Click here to Skip to main content
15,900,110 members
Home / Discussions / Web Development
   

Web Development

 
GeneralOptimization matter?! Pin
benqazou2-Apr-04 4:50
benqazou2-Apr-04 4:50 
GeneralRe: Optimization matter?! Pin
Hesham Amin4-Apr-04 20:54
Hesham Amin4-Apr-04 20:54 
GeneralChanging the value of an image, when uploading to a server Pin
rdewell1-Apr-04 23:29
rdewell1-Apr-04 23:29 
GeneralRe: Changing the value of an image, when uploading to a server Pin
hxxbin2-Apr-04 3:08
hxxbin2-Apr-04 3:08 
GeneralModify Request Object Pin
Vivek Jain31-Mar-04 22:29
Vivek Jain31-Mar-04 22:29 
GeneralRun a javascript by appending to URL Pin
Vivek Jain31-Mar-04 16:47
Vivek Jain31-Mar-04 16:47 
GeneralRe: Run a javascript by appending to URL Pin
alex.barylski1-Apr-04 18:18
alex.barylski1-Apr-04 18:18 
General4 dynamic dependent drop down lists in asp/javascript Pin
Calvin_00730-Mar-04 9:07
Calvin_00730-Mar-04 9:07 
Hi all

I'm using the following code:

<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>


<%
Dim rsDivision
Dim rsDivision_numRows

Set rsDivision = Server.CreateObject("ADODB.Recordset")
rsDivision.ActiveConnection = MM_connOperations_STRING
rsDivision.Source = "Select * from tblDivision"
rsDivision.CursorType = 0
rsDivision.CursorLocation = 2
rsDivision.LockType = 1
rsDivision.Open()

rsDivision_numRows = 0
%>

<%
Dim rsBranch
Dim rsBranch_numRows

Set rsBranch = Server.CreateObject("ADODB.Recordset")
rsBranch.ActiveConnection = MM_connOperations_STRING
rsBranch.Source = "SELECT * FROM tblBranch order by DivisionID"
rsBranch.CursorType = 0
rsBranch.CursorLocation = 2
rsBranch.LockType = 1
rsBranch.Open()

rsBranch_numRows = 0
%>

<%
Dim rsSection
Dim rsSection_numRows

Set rsSection = Server.CreateObject("ADODB.Recordset")
rsSection.ActiveConnection = MM_connOperations_STRING
rsSection.Source = "SELECT BranchID, Section FROM tblSection"
rsSection.CursorType = 0
rsSection.CursorLocation = 2
rsSection.LockType = 1
rsSection.Open()

rsSection_numRows = 0
%>
















<title>Untitled Document






<%
While (NOT rsDivision.EOF)
%>
"><%=(rsDivision.Fields.Item("Division").Value)%>
<%
rsDivision.MoveNext()
Wend
If (rsDivision.CursorType > 0) Then
rsDivision.MoveFirst
Else
rsDivision.Requery
End If
%>


<%
While (NOT rsBranch.EOF)
%>
"><%=(rsBranch.Fields.Item("Branch").Value)%>
<%
rsBranch.MoveNext()
Wend
If (rsBranch.CursorType > 0) Then
rsBranch.MoveFirst
Else
rsBranch.Requery
End If
%>









-----------------------------------------------------

This original code came from http://www.macromedia.com/support/ultradev/ts/documents/client_dynamic_listbox.htm but it doesn't really show an example past two dependent list boxes. After choosing the secod box, I get an error:

Line: 160
char: 6
Error: 'options' is null or not an object

the line in question seems to be for FOR loop part
-------------------------------------------------
function clearDynaList(oList){
for (var i = oList.options.length; i >= 0; i--){
oList.options[i] = null;
}
-------------------------------------------------

I need some help

thanks

James (e-mail me at James.Caravan@gems4.gov.bc.ca)
GeneralDelegate and User web control Pin
Anonymous30-Mar-04 8:34
Anonymous30-Mar-04 8:34 
GeneralSaving Results from Excel OWC Pin
Mike Murphy30-Mar-04 6:33
Mike Murphy30-Mar-04 6:33 
QuestionIP Adresse? Pin
matthias s.30-Mar-04 1:00
matthias s.30-Mar-04 1:00 
AnswerRe: IP Adresse? Pin
Steve Obbayi30-Mar-04 1:43
professionalSteve Obbayi30-Mar-04 1:43 
GeneralADO (not ADO.NET) documentation Pin
matthias s.30-Mar-04 0:14
matthias s.30-Mar-04 0:14 
GeneralRe: ADO (not ADO.NET) documentation Pin
Roger Wright30-Mar-04 4:06
professionalRoger Wright30-Mar-04 4:06 
GeneralThanks Roger! Pin
matthias s.30-Mar-04 21:49
matthias s.30-Mar-04 21:49 
GeneralExport to excel / word application Pin
Sarvesvara (BVKS) Dasa29-Mar-04 21:49
Sarvesvara (BVKS) Dasa29-Mar-04 21:49 
GeneralRe: Export to excel / word application Pin
hxxbin30-Mar-04 4:02
hxxbin30-Mar-04 4:02 
GeneralRe: Export to excel / word application Pin
Sarvesvara (BVKS) Dasa30-Mar-04 17:17
Sarvesvara (BVKS) Dasa30-Mar-04 17:17 
GeneralRe: Export to excel / word application Pin
hxxbin31-Mar-04 6:40
hxxbin31-Mar-04 6:40 
GeneralRe: Export to excel / word application Pin
Sarvesvara (BVKS) Dasa31-Mar-04 17:36
Sarvesvara (BVKS) Dasa31-Mar-04 17:36 
Questionhow do i add my htc to vml ? Pin
nakey_yang29-Mar-04 16:51
nakey_yang29-Mar-04 16:51 
AnswerRe: how do i add my htc to vml ? Pin
nakey_yang30-Mar-04 14:53
nakey_yang30-Mar-04 14:53 
GeneralPHP Blowfish Pin
alex.barylski29-Mar-04 12:12
alex.barylski29-Mar-04 12:12 
GeneralRe: PHP Blowfish Pin
l a u r e n29-Mar-04 12:51
l a u r e n29-Mar-04 12:51 
GeneralRe: PHP Blowfish Pin
alex.barylski1-Apr-04 18:21
alex.barylski1-Apr-04 18:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.