Results 1 to 5 of 5

Thread: focus()

  1. #1
    bob Guest

    focus()

    I am using custom forms to display, add, edit and delete
    When in edit mode how can i set the focus to the first field selected without having to click the mouse.


  2. #2
    Frank Kwong Guest

    focus() (reply)

    <BODY onLoad=f1.fld1.focus()>
    <FORM id=f1 name=f1>
    <INPUT id=fld0 name=fld0>
    <INPUT id=fld1 name=fld1>
    <INPUT id=fld2 name=fld2>
    <INPUT id=fld3 name=fld3>
    </FORM>
    </BODY>


    FK


    ------------
    bob at 6/9/01 9:34:46 AM

    I am using custom forms to display, add, edit and delete
    When in edit mode how can i set the focus to the first field selected without having to click the mouse.


  3. #3
    bob Guest

    focus() (reply)

    Frank ... This works fine if all im using is a standard html form
    but the form im using is called from an ASPdb page, and the form tag
    is inclosed in double barckets [[FORMTAG]] I can&#39;t seem to be able to assign
    a form name or id to it. Any suggestions ?



    ------------
    Frank Kwong at 6/9/01 10:52:42 AM

    <BODY onLoad=f1.fld1.focus()>
    <FORM id=f1 name=f1>
    <INPUT id=fld0 name=fld0>
    <INPUT id=fld1 name=fld1>
    <INPUT id=fld2 name=fld2>
    <INPUT id=fld3 name=fld3>
    </FORM>
    </BODY>


    FK


    ------------
    bob at 6/9/01 9:34:46 AM

    I am using custom forms to display, add, edit and delete
    When in edit mode how can i set the focus to the first field selected without having to click the mouse.


  4. #4
    Frank Kwong Guest

    focus() (reply)

    asp-db form name is fixed. goto the view source and pick that out (FRFORM). Goto the designer option screen. PLace your cursor on the Filter/Edit input box and the popped up box will even recommend this OnLoad tag.


    FK

    ------------
    bob at 6/12/01 7:06:45 AM

    Frank ... This works fine if all im using is a standard html form
    but the form im using is called from an ASPdb page, and the form tag
    is inclosed in double barckets [[FORMTAG]] I can&#39;t seem to be able to assign
    a form name or id to it. Any suggestions ?



    ------------
    Frank Kwong at 6/9/01 10:52:42 AM

    <BODY onLoad=f1.fld1.focus()>
    <FORM id=f1 name=f1>
    <INPUT id=fld0 name=fld0>
    <INPUT id=fld1 name=fld1>
    <INPUT id=fld2 name=fld2>
    <INPUT id=fld3 name=fld3>
    </FORM>
    </BODY>


    FK


    ------------
    bob at 6/9/01 9:34:46 AM

    I am using custom forms to display, add, edit and delete
    When in edit mode how can i set the focus to the first field selected without having to click the mouse.


  5. #5
    bob Guest

    focus() (reply)

    Thanks Frank.... that was TOO easy..


    ------------
    bob at 6/9/01 9:34:46 AM

    I am using custom forms to display, add, edit and delete
    When in edit mode how can i set the focus to the first field selected without having to click the mouse.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •