Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Problems with afh:body onload and javascript file

588803Jul 18 2007 — edited Sep 5 2007
Hi

I have a problem this code below:

<afh:head>
<f:verbatim>
<script src="../scripts/file.js" type="text/javascript"/>
</f:verbatim>
<meta http-equiv="Content-Type"
content="text/html; charset=windows-1252"/>
</afh:head>
<afh:body onload='document.getElementById("formAltera:nuCmc7").focus();'>
...

If I let this way, the onload focus command doesn't work.
But if I comment the Javascript file, the focus goes on.


Thanks in advance for help
Flavio
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 3 2007
Added on Jul 18 2007
4 comments
932 views