Log in

View Full Version : Resolved Click anywhere on the form a particular button remains selected



ismailc
10-21-2009, 02:35 PM
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!

ismailc
10-22-2009, 08:35 AM
Any ideas?

jscheuer1
10-22-2009, 03:11 PM
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.

ismailc
10-22-2009, 07:34 PM
Thank You I got it going.
I had to change from a Submit button to a normal button.

Thank You :)