dynamic values problem
hi all,
my problem is smthing like this.. say i have a textbox in html and based on the value of that textbox i want to invoke an sql that fetches records into select(html) object.. and i want to do this on onblur on that text box.. can u plz help in doing this
thanx and regards
parimala
you could call a javascript function from your onBlur event which submits a form which will call your servlet with your SQL, then from the servlet, add the result to the request and reload your page
<%
String InputString=request.getParameter("InputString");
if (InputString != null){
// get values depending on InputString
}
%>
// bla bla.. html stuff
<form name .. bla ..bla action="same jsp page" >
<input name="InputString" onChange='this.form.submit()' value="">
<%
if (InputString != null){
%>
<select>
// your for loop here..
</select>
<% };
%>
</form>
Hope U got it
sribk at 2007-6-29 2:44:04 >
