field - focus() makes it active but no cursor..

Discussion in 'Javascript' started by Robert Mark Bram, Aug 15, 2007.

  1. Hi All,

    I have a text field and I use Javascript to focus() on it.. but no
    cursor appears in the field and when you type, no text appears in the
    field.

    I can tell via document.activeElement that field I want is the active
    one.

    Any ideas on this?

    Rob
    :)
     
    Robert Mark Bram, Aug 15, 2007
    #1
    1. Advertising

  2. Robert Mark Bram wrote:
    > I have a text field and I use Javascript to focus() on it.. but no
    > cursor appears in the field and when you type, no text appears in the
    > field.
    >
    > I can tell via document.activeElement that field I want is the active
    > one.
    >
    > Any ideas on this?


    A) Error on OSI Layer 8.
    B) The field is read-only.
    C) The UA is borken.

    Although frequent top-posting might indicate that, this isn't a quiz show.
    Show some code or a URL.


    PointedEars
    --
    Anyone who slaps a 'this page is best viewed with Browser X' label on
    a Web page appears to be yearning for the bad old days, before the Web,
    when you had very little chance of reading a document written on another
    computer, another word processor, or another network. -- Tim Berners-Lee
     
    Thomas 'PointedEars' Lahn, Aug 15, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?VG9tYXMgS2VwaWM=?=

    Changing DEFAULT cursor to WAIT cursor in ASP

    =?Utf-8?B?VG9tYXMgS2VwaWM=?=, Apr 5, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    2,378
    Bruce Barker
    Apr 5, 2005
  2. dmaziuk
    Replies:
    3
    Views:
    631
    Chris Gonnerman
    Jan 25, 2011
  3. Rune Runnestø
    Replies:
    4
    Views:
    199
    Thomas 'PointedEars' Lahn
    May 8, 2005
  4. Zvonko
    Replies:
    1
    Views:
    126
  5. Roger
    Replies:
    3
    Views:
    381
Loading...

Share This Page