[prev in list] [next in list] [prev in thread] [next in thread]
List: japple-dev
Subject: RE: [japple-dev] Form Focus
From: "Lonon, Jonathan B" <Jonathan.B.Lonon () bankofamerica ! com>
Date: 2003-02-04 19:23:16
[Download RAW message or body]
Thanks! That worked.
Jonathan.
-----Original Message-----
From: mdeneen@japple.org [mailto:mdeneen@japple.org]
Sent: Tuesday, February 04, 2003 2:17 PM
To: 'japple-dev@japple.org'
Subject: Re: [japple-dev] Form Focus
You have to use javascript.
What is the name attribute of your form?
I usually do
document.forms['yourformname']['dc.somedataContext.tablecolumnName'].focus()
;
The old-style access method is kindof broken, because it implies that one
can not have a "." in their name attribute.
-M
On Tue, 4 Feb 2003, Lonon, Jonathan B wrote:
> If I do this for my first form field on a form:
>
> <INPUT TYPE="text" NAME="dc.somedataContext.tablecolumnName">
>
> This won't work in the BODY tag:
>
> <BODY onload="document.formName.formFieldName.focus()">
>
> I tried wrapping the formFieldName portion in double-quotes but it still
> doesn't work. Any alternative ideas to get my first form field to have
the
> initial focus?
>
> Jonathan.
>
> _______________________________________________
> japple-dev mailing list
> japple-dev@japple.org
> http://www.japple.org/mailman/listinfo/japple-dev
>
_______________________________________________
japple-dev mailing list
japple-dev@japple.org
http://www.japple.org/mailman/listinfo/japple-dev
_______________________________________________
japple-dev mailing list
japple-dev@japple.org
http://www.japple.org/mailman/listinfo/japple-dev
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic