Hello all,
I have a DotNetNuke Module set up as follows
Facility ID Number Search
Operator Name
Site Name
County Name
Region name
Each submit Query button runs a seperate Query based on what is entered into the text box imediatly left of the button.
The query is then ran and the user is shown the results in a grid view. What I want to be able to do is once I select a text box I want the button imediatly right of the box to get the focus so that the user can enter the information in one of the boxes and then hit enter and run that specific query.
I decided to add javascript to do this. I wrote the following javascript
<
script type ="text/javascript" language = "javascript">
function FacIDSelect(){
document.getElementById('Button3').focus();
} // end FacIDSelect
</script>
this works fine when it is in an asp page, but once I port the asp page over to a module I ge the error Document.GetElementByID(..) is null or not an object.
Upon research of this I found that the error is being caused because DotNetNuke wraps each module in a form tag, and that is causing my control not to be found. Is there a work around to this.
Thanks Mike