This topic is locked

mouse focus in specific field

7/13/2006 2:15:45 PM
ASPRunnerPro General questions
S
SteveL author

is it possible to use events to make the mouse pointer point to a specfic field by default on load? I think there should be some way to do this with events but I'm not sure. Thanks

S
SteveL author 7/13/2006

is it possible to use events to make the mouse pointer point to a specfic field by default on load? I think there should be some way to do this with events but I'm not sure. Thanks


more speficially id like to now how to focus on the search box on the list page when it loads too. Any help is greatly appreciated it. thanks
actually i found out I can use java script to default focus to a specific field with this code

<body onLoad="java script:document.forms.editform.fieldname.focus();">

but what is the fieldname for the search function on the list page?

Also another question: is it possible to highlight a particular field if data already exist in the field?
Thanks

J
Jane 7/14/2006

Steve,
to set focus on the search box open ..._list.asp file, locate following line:

if Request.Form<>"" or Request.QueryString<>"" then Response.Write(" onLoad=""if (document.frmAdmin.SearchFor != null) document.frmAdmin.SearchFor.focus();""")



and replace it with this one:

Response.Write(" onLoad=""if (document.frmAdmin.SearchFor != null) document.frmAdmin.SearchFor.focus();""")


To highlight filled records modify looprs function manually in the generated ..._list.asp file.

S
SteveL author 7/14/2006

Steve,

to set focus on the search box open ..._list.asp file, locate following line:
and replace it with this one:
To highlight filled records modify looprs function manually in the generated ..._list.asp file.


thanks!!!