This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP + Ajax + combo box

 
sudhakar annapu reddy
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,

i have a JSP page which has two COMBO BOXES on it ,
first combobox is :CourseID second combo box is SemesterID
in this page my main aim is:

in my first combo box if i select one courseID ,the next combo box i.e SemesterID need to updated with out page submitting.
I heard that this feature can get by using AJAX and JAVA SCRIPT in JSP.
Here in my data base in course table for example i have 4 course IDs:MTECH
BTECH
MCA
BCA
and
in semester table i have for particular MTECH courseID i have these semesterIDs:sem1
sem2
sem3 sem4

and for MCA courseID i have these semesterIDs:sem1
sem2
sem3
sem3
sem4
sem5
sem6 etc..

here my problem is in my page,in first combo box if i select courseID as: MTECH, in second combobox
i need to get semesterIDs as:sem1,sem2,sem3,sem4.
else if i select courseID as:MCA, in second combo box
i need to get semesterIDs as:sem1,sem2,sem3,sem4,sem5,sem6.


This is the feature i need .Any body help me please. give me Sample code for this in AJAX+JSP+JAVA SCRIPT.
[ June 27, 2006: Message edited by: Bear Bibeault ]
 
Balasubramani Dharmalingam
Ranch Hand
Posts: 116
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
www.ajaxtags.sourceforge.net

Here you can find the taglibraries for achieving this.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic