User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 397,752 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,534 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting

Javascript Arrays

Join Date: Feb 2005
Posts: 5
Reputation: gaetano is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
gaetano gaetano is offline Offline
Newbie Poster

Help Re: Javascript Arrays

  #5  
May 8th, 2005
The following is my current ASP code;

'Execute Stored Procedure and Load ASP Array
dim varMajCat() ' Array of Major Categories
set rsSub =cmd.execute ‘Executing SQL Server Stored Procedure
do until rsSub.eof
redim preserve varAppArray(3, intCount + 1)
varAppArray(1, intCount) = UCase(rsSub(strField1))
varAppArray(2, intCount) = UCase(rsSub(strField2))
varAppArray(3, intCount) = UCase(rsSub(strField3))
intCount = intCount + 1
rsSub.movenext
loop

'Loop thru the above Array & display the Maj Categories as Radio Buttons

Response.write("<Input Type='Radio' Name='MajCat' Language='_javascript' value='& varLocalArray(1, intCount) & ' onClick='return validate_radio_buttons()'>" & varLocalArray(2, intCount))

I need to figure out how to get the OnClick event to reference the data in the above Array and print the third element in an area that I will define directly below the Radio Buttons.

Thank you
Reply With Quote  
All times are GMT -4. The time now is 3:28 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC