Hi All,

I am calling a page via ajax that sits in a table (simplified below)

index -> <table><td>ajax call goes here to page.php on click </td>/<table>
page.php code below,

now if i access this page by itself the onfocus() works, but when called via ajax it doesn't
any ideas or suggestions on how to fix this?

thanks
Art

Code:

<html>
<head>
   <title>Example of setting focus on an element in a Form</title>
   <link rel="STYLESHEET" type="text/css" href="/style/jsc.css">
</head>

<body >
<FORM name="myform" action="submit-form.php">
Name: <input type="text" name="Name"><br>
Email: <input type="text" name="Email"><br>

<input type="submit" name="Submit" value="Submit">
</FORM>
<SCRIPT language="JavaScript">
document.myform.Name.focus();
</SCRIPT>
</body>
</html>
tanks
Art