Listing 2: JavaScript Function for Downloading a Record Set and Populating a Page

<SCRIPT LANGUAGE="Javascript">
function getData()
{
   sql = "select employeeID, lastName from Employees";
   rds.Server = "http://expoware";   
   rds.Connect = "DSN=Northwind";   
   rds.Sql = sql;
   rds.Refresh();
}
</SCRIPT>