Hi All
I am creating the front end of a database. I want to be able run a command that update a table when the user ckick a button.
The format would be like
<html>
<head>
<script type="text/javascript">
function Update_database()
{
---Code to update database goes here
document.all("myButton").focus()
}
</script>
</head>
<body>
<form>
<input type="button" value="Click me!" name="myButton" onClick="update_database()" />
</form>
</body>
</html>
I am having trouble with the code that updates the database. In fact, I don't even know if it can work this way as I am new to Javascript.
Any help will be highly appreciated.
Vic88
I am creating the front end of a database. I want to be able run a command that update a table when the user ckick a button.
The format would be like
<html>
<head>
<script type="text/javascript">
function Update_database()
{
---Code to update database goes here
document.all("myButton").focus()
}
</script>
</head>
<body>
<form>
<input type="button" value="Click me!" name="myButton" onClick="update_database()" />
</form>
</body>
</html>
I am having trouble with the code that updates the database. In fact, I don't even know if it can work this way as I am new to Javascript.
Any help will be highly appreciated.
Vic88