Results 1 to 4 of 4

Thread: Click anywhere on the form a particular button remains selected

  1. #1
    Join Date
    Dec 2007
    Posts
    88
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Question Click anywhere on the form a particular button remains selected

    Good day;

    When I click anywhere on the form a particular button remains selected & focused.

    Even while i'm busy typing in another textbox the button looks as if it's being selected with a dark border around it.

    Please help on not alowing the button to have the focused / selected when clicking anywhere.

    I'm coding in xslt file which has no form where i can find an onload event & the button gets generetad.

    Please Assist!

  2. #2
    Join Date
    Dec 2007
    Posts
    88
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Question

    Any ideas?

  3. #3
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    I'm a bit rusty on xslt and xml, but you must also have an xml document, right? If I remember correctly, javascript events may be hard coded in there (the xml document) to elements, just the same (or at least fairly much the same) way other attributes can be, though putting an actual script in the xml document can be at the very least somewhat tricky. But you may not need anything more than an event.

    However, this sounds a bit odd to begin with. Ordinarily (regardless of how it is generated) a button will only be selected if clicked. It may (in some browsers) persist in having an altered appearance even after it loses focus, but that appearance will still be different than the full on active, selected, focused state's appearance. Each browser does these things a little differently, and it can sometimes be hard for a designer to accept that. But the users of the browsers are accustomed to how their browser renders such things, so it is usually of no real consequence.

    In any case, to be of any more help, we would need a link to the live page so that we could see this in action and go over the code in detail.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  4. #4
    Join Date
    Dec 2007
    Posts
    88
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Wink

    Thank You I got it going.
    I had to change from a Submit button to a normal button.

    Thank You

Bookmarks

Posting Permissions

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