.focus cannot function

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Nicolas
    New Member
    • Jan 2007
    • 24

    .focus cannot function

    i have 1 textbox... and 1 combobox.
    i want to set after i change the value of combobox, it will reload the page,
    after reload the page, it will check see whether the combobox is blank, if it not a blank, the cursor will focus in next textbox.

    previously, i had done this. but after i change/design my page into frame form. it will occur the cursor lose(don't know focus where). the page i have no modify at all.

    after i face this problem, i try to type the key TAB...the cursor appear again and focus the textbox. why will like that ..??? mayb i can say...i'm sure that my coding is no problem. becos not all pc will face this problem. (e.g. the pc i using to delevep is no problem, some of other pc that operate will face this prblem)

    i'm using internet 7.0 / 6.0. win xp pro.

    can anyone tell me why...??
    thanks...
  • kovik
    Recognized Expert Top Contributor
    • Jun 2007
    • 1044

    #2
    Originally posted by Nicolas
    i have 1 textbox... and 1 combobox.
    i want to set after i change the value of combobox, it will reload the page,
    after reload the page, it will check see whether the combobox is blank, if it not a blank, the cursor will focus in next textbox.
    I think you are after the onChange event.

    Comment

    • Nicolas
      New Member
      • Jan 2007
      • 24

      #3
      Originally posted by volectricity
      I think you are after the onChange event.
      thanks for reply,
      ya i'm using onChange event to reload the page. but my problem is, when i reload the page...i can't get the focus in textbox.

      Comment

      • gits
        Recognized Expert Moderator Expert
        • May 2007
        • 5390

        #4
        hi ...

        do you reload the entire page? or only one (i)frame? when do you try to set the focus? in the onload of the framesource? or from outside the frame?

        kind regards

        Comment

        • Nicolas
          New Member
          • Jan 2007
          • 24

          #5
          Originally posted by gits
          hi ...

          do you reload the entire page? or only one (i)frame? when do you try to set the focus? in the onload of the framesource? or from outside the frame?

          kind regards
          hi,
          only 1 frame. when the frame reload...
          the frame are reload it self...

          Comment

          • acoder
            Recognized Expert MVP
            • Nov 2006
            • 16032

            #6
            Originally posted by Nicolas
            hi,
            only 1 frame. when the frame reload...
            the frame are reload it self...
            Post some code. In the onload event, put the focus on the textbox.

            Comment

            Working...