Here is a snippet of the code. I messed with it some more and noticed that if I call the putFocusOnField() function twice, it works, but if I only call it once, regardless of location, it doesn't work. I'm baffled.
Code:
<script>
checkMedLink();
resizeScrolling('div1', 'div2');
putFocusOnField('<%=request.getParameter("focusField")%>');
</script>
<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
</div>
<script>
putFocusOnField('<%=request.getParameter("focusField")%>');
</script>
</div>
The putFocusOnField() function exists elsewhere looking like this:
Code:
function putFocusOnField(focusField){
if(focusField != 'null'){
if(document.getElementById(focusField).type != 'hidden'){
document.getElementById(focusField).focus();
}
}
}
Bookmarks