Wrox Programmer Forums
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old February 19th, 2005, 05:13 PM
Registered User
Join Date: Feb 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Reference ASP Array in Javascript

This was a question in a previous topic but I didn't quite understand the answer, so here is the question again.

I display radio buttons from an radioArray I built in ASP which contains a code/short desc/long desc. When someone clicks a radio button I want to do invoke a Javascript function to display the short and long desc directly below the list of radio buttons.

1. should I use onClick="return display_desc(this.selectedIndex)"
OR onchange="return display_desc(this.selectedIndex)"

2. How do I get radioArray into a JS array for the JS function?

Any code examples of would be very helpful since I am a novice at JS.

Old February 21st, 2005, 10:09 AM
Friend of Wrox
Join Date: Oct 2004
Posts: 553
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to vinod_yadav1919 Send a message via Yahoo to vinod_yadav1919

Hiii gaetano!!!

For 2nd question --> http://p2p.wrox.com/topic.asp?TOPIC_ID=25863

For 1st question---yes u can use onclick="functionname('<%=description%>','<%=role% >')"

then your javascript function


Hope this will help you

Cheers :)


Similar Threads
Thread Thread Starter Forum Replies Last Post
Javascript reference for download rungss Javascript 3 March 31st, 2006 08:31 AM
ASP/MySql database into JavaScript Array Hazzardusa Classic ASP Databases 1 August 14th, 2005 10:02 PM
Transfer double array from asp to javascript simi Classic ASP Databases 1 May 17th, 2005 06:40 AM
Passing php array values to javascript array gkrishna Pro PHP 0 November 6th, 2004 03:20 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.