Forums Register Login

how to fetch values of elements on same page

+Pie Number of slices to send: Send
guys i am trying to make a date system
in which when user selects year from a drop down list then according to the year selected the
month drop down list is activated
then if the month selected is a 31 days month then the disabled days drop down is activated with 31 days
or for February with 28 days or 29 days..

so how to get the value of the selection of the year and month on the same jsp page
so can you tell me
+Pie Number of slices to send: Send
You can do it either through client side(java script) where you control months and days from the script or from server side where you can redirect to same JSP when user selects a particular month and populate the days as per the month selected, also look into AJAX ideal for loading only partial data.
+Pie Number of slices to send: Send
yes but my course does not has javascript so can you tell me just HTML functions or normal java scriplets !! ???
+Pie Number of slices to send: Send
There are no such things as "HTML functions".

The proper way to do this is with JavaScript on the page, Without that you are forced to re-write the entire page making the changes that are needed.
+Pie Number of slices to send: Send
 

Bear Bibeault wrote:There are no such things as "HTML functions".

The proper way to do this is with JavaScript on the page, Without that you are forced to re-write the entire page making the changes that are needed.



ya my bad. I am not aware with the terms much. :P

still isn't there another way using java but not the javascripts.
+Pie Number of slices to send: Send
I repeat:

Bear Bibeault wrote:you are forced to re-write the entire page making the changes that are needed.

 
Listen. That's my theme music. That's how I know I'm a super hero. That, and this tiny ad told me:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1302 times.
Similar Threads
Drop down list value
how to handle the mouse scroll in javascript?
Ajax: how to achieve
retrive data from db2 as month and year wise
How to automatically change the page contents with change in drop down list option selection
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 08:48:29.