Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help javascript-vbscript

Status
Not open for further replies.

DKL01

Programmer
Sep 14, 2000
233
US
Hello All:
<%

Do While Not RecordSet.EOF
If IsArray(vData) Then
iIndex = iIndex + 1
Redim Preserve vData(3,iIndex)
Else
redim vData(3,iIndex)
End If

vData(0,iIndex) = RecordSet(&quot;DOCUMENT_ID&quot;)
vData(1,iIndex) = RecordSet(&quot;REVISION&quot;)
vData(2,iIndex) = RecordSet(&quot;URL&quot;)
vData(3,iIndex) = RecordSet(&quot;TITLE&quot;)
RecordSet.MoveNext
Loop

%>

<HTML>
<HEAD>
<META NAME=&quot;GENERATOR&quot; Content=&quot;Microsoft Visual Studio 6.0&quot;>
</HEAD>
<BODY>

<form name=form1 >

<SELECT NAME=&quot;links&quot; id=&quot;links&quot; SIZE=1 style=&quot;width=300px&quot;>
<%
for iRow = 0 to ubound(vData, 2)
Response.Write &quot;<option value=&quot;&quot;&quot; & vData(0, iRow) & &quot;&quot;&quot;>&quot; & vData(3, iRow)
next
%>
</SELECT>
<p>
<p>
<p>

<INPUT TYPE=BUTTON VALUE=GO id=BUTTON3 name=BUTTON3 value=&quot;GO&quot; >

<p>
<p>

</form>

I'm having problem getting REVISION and URL for the TITLE select from the combobox. When the uses selects some title from the combobox I need to get corresponding
REVISION and URL from array created in server side. Any suggestions ?

Thanks
 
Dilip,

Create a javascript multi dimensional array on the client written from asp, refer to the document id as the pk and extract the data on the select event.

gettin' jiggy wid' it --
smbure
 
subure,

Thanks for the response. But I'm confused with &quot;dimensional array on the client written from asp&quot;. I appreciate if you provide some example.

Thanks again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top