I have just started learning about Ajax today and was working through some examples online. I have come across a very simple one that I just can't get to work
The
tutorial I have copied the code from.
When I choose from the drop down box nothing happens I get an error icon in the corner. It states:
Code:
Line: 9
Char: 1
Error: Object Expected
Code: 0
The code I used is:
PHP Code:
<html>
<head>
<script src="selectuser.js"></script>
</head>
<body><form>
Select a User:
<select name="users" onchange="showUser(this.value)">
<option value="1">Peter Griffin</option>
<option value="2">Lois Griffin</option>
<option value="3">Glenn Quagmire</option>
<option value="4">Joseph Swanson</option>
</select>
</form><p>
<div id="txtHint"><b>User info will be listed here.</b></div>
</p></body>
</html>
If anyone can point me in the right direction, thanks