[OPEN-ILS-DEV] Setting focus to the search box

Dan Scott dan at coffeecode.net
Tue Sep 7 08:43:17 EDT 2010


Good idea, but with Dojo you shouldn't mix onLoad events into the body
element. Just use dojo.addOnLoad to fire the event.

On Sep 7, 2010 8:35 AM, "Ben Ostrowsky" <ben at esilibrary.com> wrote:
> I'm not sure whether this would break anyone's expectations, but I
> suspect it might gratify more than it confuses:
>
>
> Index: Open-ILS/web/opac/skin/default/xml/body.xml
> ===================================================================
> --- Open-ILS/web/opac/skin/default/xml/body.xml (revision 17494)
> +++ Open-ILS/web/opac/skin/default/xml/body.xml (working copy)
> @@ -1,4 +1,4 @@
> -<body class="tundra">
> +<body class="tundra"
onLoad="document.getElementById('search_box').focus()">
> <table width='100%'>
> <tbody>
> <tr>
>
>
> In the words of Joel Robinson, "What do you think, sirs?"
>
> Ben
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://libmail.georgialibraries.org/pipermail/open-ils-dev/attachments/20100907/345713a3/attachment.htm 


More information about the Open-ils-dev mailing list