Chris: Are the input boxes automatically getting the focus when a page loads? I added a little chunk of javascript to my circ-top.inc to give the focus to the first input box on a page to make barcode scanner entry easier. The focusinput() function should probably check to make sure that document.forms[0].elements[0] exists first to avoid any possible errors... function focusinput() { document.forms[0].elements[0].select(); document.forms[0].elements[0].focus(); document.forms[0].elements[0].focus(); } . . . . . <body text="black" bgcolor="white" link="#0000ff" vlink="#0000ff" "3366cc" Alink="#cc3300" marginheight=0 marginwidth=0 leftmargin=0 topmargin=0 onLoad=focusinput()>
On Thu, Feb 01, 2001 at 08:36:38AM -0800, Tonnesen Steve said:
Chris:
Are the input boxes automatically getting the focus when a page loads? I added a little chunk of javascript to my circ-top.inc to give the focus to the first input box on a page to make barcode scanner entry easier. The focusinput() function should probably check to make sure that document.forms[0].elements[0] exists first to avoid any possible errors...
Yep thanks Steve I added the code that you had posted for cat-top.inc a while back to circ-top.inc and it works like a dream. I think one branch of the Horowhenua library did a batch of its returns yesterday afternoon with the web circulation module. Without a hitch. Chris
participants (2)
-
Chris Cormack -
Tonnesen Steve