Hi all,
I have an index.jsp page with a function calling a javascript page:
<script language="JavaScript">
BuildPanel();
</script>
In the javascript page I have:
var users = new Array();
users[0] = new Array("guest","staff","staff.jsp");
users[1] = new Array "guest1","customer","customer.jsp");
What I would like to do is to replace the usernames and passwords from the js file and retrieve them from mysql database, anyone could tell me how to do that?
Regards,
Vero
I have an index.jsp page with a function calling a javascript page:
<script language="JavaScript">
BuildPanel();
</script>
In the javascript page I have:
var users = new Array();
users[0] = new Array("guest","staff","staff.jsp");
users[1] = new Array "guest1","customer","customer.jsp");
What I would like to do is to replace the usernames and passwords from the js file and retrieve them from mysql database, anyone could tell me how to do that?
Regards,
Vero