Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_jsp thread: Re: Server Side Scripting / Remote Scripting


Message #1 by oguclu@s... on Thu, 3 May 2001 00:22:03
Hai,
   i can understnd what u r trying to say but thats purely client side 
scripting.What u r saying is depending upon the selection of first combo i 
have to to get the valus and keep it in the hidden frame and make the 
second one visible, by having the values in the array.

But this is fine as far as the data is small but i want it for a huge data 
which is varying day by day.So i can't hard code it and get it in an array.
I want to  execute a SQL query when i select the first combo.

can u get what i say? please find a solution for remote scripting and help 
me

thanks
dhivya




> hi,
> 
> I face this problem and found a solution like that;
> 
> - make your page two frames 1-your form 2-invisible frame for temp 
> - create a java script function (pageload()) which excute with onChange 
of 
> your first listbox
> - with in this function make second frame location to your new  jsp page 
> (new.jsp)
> - send a request (new.jsp?option=listboxvalue)
> - in new.jsp create new javascript array and load with data depend on 
> option
> - make onload event to javascript function which updates second list box.
> 
> I hope it solve your question.
> 
> Omer
> 
> > Hai,
> > 
> >   I have 2 drop down boxes and while loading the page, i populate the 
> > firstdrop down using JSP.Depending upon the selection of the First 
drop 
> > down,the request should go to the server and run a SQL query and the 
> > Result set should be manipulated so as to diaplay it in the second  
drop 
> > down.I can manage the SQL part but the problem is with the call to 
> server 
> > script.
> > 
> > How can i achieve server side scripting using JSP?How can i integrate 
> > Client side scripting and with which method should i call the Server 
> side 
> > script.
> > 
> > Note: In ASP, they use RS Execute(parameters) method in the client 
side 
> > script and this call goes to server side scipt which returns a 
String.we 
> > have to collect the string here again in the Client side and 
manipulate 
> > and display.
> > 
> > But i am not sure how to do this in JSP.Please help me sort this out.
> > 
> > Thx

  Return to Index