![]() |
| ||
| Passing variable value from javascript to jsp page at run time How can we pass the variable value from javascript to jsp page at runtime? I am getting this problem when i want to display the second drop down box according to the selected item in the first drop down. For ex: Lets consider we have a drop down field named Gender(Male,Female). If we select Male then the next Drop Down has to be shown as (Kumar, Mr,...) |
| ||
| Re: Passing variable value from javascript to jsp page at run time You can't. JSP runs on the server, Javascript (which is NOT Java) runs on the client. You might want to look into something like AJAX which will allow your javascript to make a complete connection to the server, receive data, and then update your page, which will make it look like you are doing what you are asking, but it takes longer than a true programmatic connection. P.S. Don't come back and ask for more info concerning AJAX. That is another thing does not belong on this forum. |
| ||
| Re: Passing variable value from javascript to jsp page at run time Request all developer to send codes.... Thanks in advance |
| ||
| Re: Passing variable value from javascript to jsp page at run time Quote:
|
| ||
| Re: Passing variable value from javascript to jsp page at run time Yes u can do it but u hv to speicify from where do u want to display the list of all the the male members if u want that value to be get from the database then u can use ajax from ur current jsp page This is the Demo for ur help <html> but in getAllGender.jsp u hv to get the data from the datebase now it is up to u i gave u the hint no much time for me dear i hope this is very benicifial for u |
| ||
| Re: Passing variable value from javascript to jsp page at run time
|
| All times are GMT -4. The time now is 4:34 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC