473,408 Members | 2,839 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,408 software developers and data experts.

Drop-down selection menu help

gurusarentus
I have a web page that is using drop down menu selections to allow students to make a 4 year academic plan online. My problem is not with the menus themselves, but I would like for another field to reflect the credits alloted by the course they have selected so that I can varify they have selected enough credits. Here is the code from one of the menu choices:

<table>
<tr>
<td width="50%" valign="top">
<p style="margin-left: .10in">English (4 credits)</td>
<td width="50%" valign="top">
<nobr>
<!--#include file="../_fpclass/fpdblib.inc"-->
<%
fp_sQry="SELECT * FROM Courses WHERE (Category = '::Category::') ORDER BY CourseID ASC"
fp_sDefault="Category=English"
fp_sNoRecords="No records returned."
fp_sDataConn="Courses"
fp_iMaxRecords=256
fp_iCommandType=1
fp_iPageSize=0
fp_fTableFormat=False
fp_fMenuFormat=True
fp_sMenuChoice="CourseTitle"
fp_sMenuValue="CourseID"
fp_iDisplayCols=7
fp_fCustomQuery=False
BOTID=0
fp_iRegion=BOTID
%>
<select NAME="English9" SIZE="1">
<!--#include file="../_fpclass/fpdbrgn1.inc"-->
<option VALUE="<%=FP_FieldHTML(fp_rs,"CourseID")%>"><%=FP_ FieldHTML(fp_rs,"CourseTitle")%></option>
<!--#include file="../_fpclass/fpdbrgn2.inc"-->
</select>
</nobr>
</td>
<td width="50%" valign="top">
<input type="text" name="EnglishCredit9" size="2">
</td>
</table>
Feb 26 '07 #1
1 1185
jhardman
3,406 Expert 2GB
I have a web page that is using drop down menu selections to allow students to make a 4 year academic plan online. My problem is not with the menus themselves, but I would like for another field to reflect the credits alloted by the course they have selected so that I can varify they have selected enough credits. Here is the code from one of the menu choices:
So you have a select (drop down box) with a course number or some such, and you just want a second input in the same form to say how many credits have been selected on that drop-down? I think this is best handled with javascript:
Expand|Select|Wrap|Line Numbers
  1. <select name="course" onChange="this.form.credits.value=this.options[selectedIndex].creditNum">
  2. <option value="Eng2020" creditNum="3">English 2020 (3cr)</option>
  3. <option value="Eng2030" creditNum="5">English 2030 (5cr)</option>
  4. <option value="Eng2040" creditNum="2">English 2040 (2cr)</option>
  5. </select>
  6. <input type="text" name="credits" value="3">
  7.  
When the select box changes, the text box value should change correspondingly. I re-read and started answering this question several times, still never convinced I knew what you were asking. Please let me know if this helps.

Jared
Feb 26 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Ian Dobson | last post by:
Hi, I need to drop a schema from a database but it has 400 tables in it. Is there an easy way to do it other than drop table schema1.table1 drop table schema1.table2 etc.. to 400 and then drop...
10
by: BuddhaBuddy | last post by:
Platform is DB2/NT 7.2.9 The table was created like this: CREATE TABLE MYTEST ( MYTESTOID bigint not null primary key, FK_OTHEROID bigint not null references other, FK_ANOTHEROID bigint not...
6
by: jojobar | last post by:
Hello, I look at the asp.net 2.0 web parts tutorial on the asp.net web site. I tried to run it under firefox browser but it did not run. If I want to use this feature in a commercial product...
3
by: VB Programmer | last post by:
In VB.NET 2005 (winform) any sample code to drag & drop items between 2 listboxes? Thanks!
0
by: ViRi | last post by:
I am currently experimenting a bit with AxMicrosoft.MediaPlayer.Intero­p.AxWindowsMediaPlayer and so far, most has gone well. Currently, i would like to add drag-and-drop functionality to the...
5
by: Markus | last post by:
I tried this: ALTER TABLE Dokumente DROP COLUMN docPrioID but I get this errormessage: DB2 SQL error: SQLCODE: -104, SQLSTATE: 42601, SQLERRMC: COLUMN;ABLE Dokumente DROP;CONSTRAINT
1
by: Darren | last post by:
I'm trying to create a file using drag and drop. I want to be able to select a listview item drag it to the shell and create a file. Each icon in the listview represents a blob in a database. When...
0
by: joey.powell | last post by:
I have a Windows Forms application where I need to be able to drag and then drop onto a datagridview control. I already have the code necessary to make the drag part work. I am having problems,...
15
by: uwcssa | last post by:
I try to drop a table as: I got: During SQL processing it returned: SQL0478N The object type "TABLE" cannot be dropped because there is an object "sch.SQL070515104729271", of type "FUNCTION",...
5
by: Romulo NF | last post by:
Greetings, I´m back here to show the new version of the drag & drop table columns (original script ). I´ve found some issues with the old script, specially when trying to use 2 tables with...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.