i want to passing value in the same page. i want the user to choose the data from the combo box in the page, after the user select the data will directly retrieve out from the database depend on the information selected and display out in the same page. is it posible to do it?
if can please provide me suggestion and comment. thank you for the help.
i really cannot get what the ajax talking about. i want to get the value that user select in the combo box and pass it to the same page for doing data retrieving from database. but i no idea to do it. i also go through the xmlHttpRequest but i still donno how to create it. AJAX really hard to learn lah. any one here please give me the solution and enlighten me in this problem . thank you.
Hi all, I am not sure if I understand the situation, but shouldn't a submit on the onchange of the dropdown work? Should we opt for AJAX in such a situation also?
my situation is like this, i have 1 jsp page. in the jsp page i have 2 combo box for user to select. what i want is after the user do the selection in 2 combo box, the page will directly retrieve out the data depend on the combo box value selected by user. so the main key is the value in combo box. how i gotta to write this code to make it can retrieve the database after user select and without reload the page. please provide me the relevent example. i also go through many AJAX material but i don't understand what the usage of the coding. i want the page write in jsp and java code.
if yiou want to do anything related to the database then you have got to go to the server. there are two ways of doing it in javascript which i am aware of. One is to post the whole page to a second JSP which will act on the values recived and prepare the html that you want. Another is to use AJAX which will fetch the data from the server without refereshing the whole page.
you need to do this onchange of the second select box. Please do not ask for code, you can write it on your own. Ultimately code is not that important, understanding the concept is important because that is what you remember and not the code. just a friendly advice.
Life called,so here I am.<br />Cheers<br />Niki.:-)
i request to close this topic. i think i need to understand more about the ajax, so i make decision to close this topic and open a new topic to understand the ajax from the beginning. thank you for the co operation .
JAVA the only can called technology
For my next trick, I'll need the help of a tiny ad ...
Gift giving made easy with the permaculture playing cards