Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_jsp thread: Dynamically changing the contents of listbox


Message #1 by "Srividhya" <srividhya1977@h...> on Tue, 3 Sep 2002 16:07:00
Thanks for the reply.
But even if I use
<script language="javascript" runat="server">
function populateSec()
{
}
</script>


in the jsp page,Iam getting the same error.
Can I get any suggestions?
Thanks,
sri


> Hi,
I> t will be grateful if someone is able to give a solution.
I>  have two combo boxes in  a JSP page.When a value is selected in the 
f> irst combo box,the second combo box should be populated with data from 
t> he database using the value selected in the first one.
N> ow I wrote a javascript function in the JSP page connecting to database 
u> sing ADODB.Connection.

> So my page is like this

> <HTML>
<> HEAD>
<> /HEAD>
<> BODY>
a> ll the code to create two combo boxes goes here
<> /BODY>
<> /HTML>

> <Script language="javascript">
f> unction populateSec()
{> 
v> ar adoConn=Server.createObject("ADODB.Connection");

> 
c> ode to connect db and fetching data goes here.
}> 
<> /Script>

> 

> after running this jsp page Iam getting an error 'Server' is undefined.
I> t will be good if somebody help me
 > Thanks,
s> ri

  Return to Index