Focus OnLoad for ajax panel refresh

Discussion in 'JavaScript' started by AstarothSolutions, Nov 16, 2007.

  1. #1
    Obviously the OnLoad wont work with a reloaded ajax panel so how do you give focus to a textbox when it becomes visible in an ajax panel?

    Many thanks
     
    AstarothSolutions, Nov 16, 2007 IP
  2. Techno_EG

    Techno_EG Peon

    Messages:
    12
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    put this code after the code of ajax done

    textbox.focus();
     
    Techno_EG, Nov 16, 2007 IP
  3. williamjr

    williamjr Banned

    Messages:
    215
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks Techno_EG your suggestion it works, i was also suffering in same problem.
     
    williamjr, Apr 27, 2008 IP
  4. reza_24

    reza_24 Member

    Messages:
    98
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #4
    thanks techno
     
    reza_24, Apr 29, 2008 IP
  5. kineticdc

    kineticdc Peon

    Messages:
    347
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thanks Techno
     
    kineticdc, Sep 1, 2008 IP
  6. BtSEO

    BtSEO Peon

    Messages:
    111
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    seems simple, thanks
     
    BtSEO, Sep 1, 2008 IP
  7. infomalaya

    infomalaya Banned

    Messages:
    103
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    This is a very simple one, thanks!
     
    infomalaya, Mar 31, 2009 IP
  8. cobilass

    cobilass Peon

    Messages:
    52
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    thanks techno
     
    cobilass, Apr 5, 2009 IP