473,396 Members | 2,004 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Click anywhere on the form a particular button remains selected

200 100+
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!
Oct 21 '09 #1
7 1998
ismailc
200 100+
Any ideas p please help??
Oct 22 '09 #2
RamananKalirajan
608 512MB
Hi ismailc,

The submit button doesn't receive focus. Browsers highlight the submit button in a form that gets "clicked" automatically when you press ENTER in a text field for instance, when the form is submitted by a user action other than clicking the submit button. It's a visual way of telling the user what the form's default action is. Replace those submit buttons to normal buttons and submit the form via javascript. That will solve the problem. Or in the submit buttom onfocus="this.blur();". I havent tried this but it may help you...

Thanks and Regards
Ramanan Kalirajan
Oct 22 '09 #3
ismailc
200 100+
Works thank You

changed from submit buttons to normal buttons..

great :)
Oct 22 '09 #4
Dormilich
8,658 Expert Mod 8TB
@RamananKalirajan
the drawback of that is, that the form becomes unuseable if Javascript is disabled.
Oct 22 '09 #5
ismailc
200 100+
i got it going, changed from submit buttons to normal buttons

Thank you
Oct 22 '09 #6
RamananKalirajan
608 512MB
Glad to see you got it working. Keep posted if you have any issue. Keep Moving Forward.

Thanks and Regards
Ramanan Kalirajan
Oct 22 '09 #7
acoder
16,027 Expert Mod 8TB
@Dormilich
The solution would be to have the submit buttons displayed by default and replace them with buttons using JavaScript.
Oct 26 '09 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: middletree | last post by:
I have an issue that may or may not be appropriate here, as it has to do with client-side code. Does MS have a better forum than this one for this? (Microsoft forum would be best. I don't have...
1
by: zoltix | last post by:
Hi, I am beginner in JavaScript. I would like to intercept all click events on my document. I use this function for that document.onmousedown=click;. It works well. But I would like to...
3
by: Earthling | last post by:
Any help would be appreciated to solve the following simple problem that I will describe. *** There is a form called "red chocolate form". The form has a particular subform field that has a...
41
by: JohnR | last post by:
In it's simplest form, assume that I have created a usercontrol, WSToolBarButton that contains a button. I would like to eventually create copies of WSToolBarButton dynamically at run time based...
4
by: Greg Scharlemann | last post by:
I'm trying to setup a dyamic dropdown list that displays a number of text fields based on the selected number in the dropdown. The problem I am running into is capturing the data already entered...
5
by: Amoril | last post by:
I've read quite a few different message on various boards and for some reason I'm still having trouble wrapping my head around this viewstate maintenance and trying to get these dynamically created...
2
by: Peted | last post by:
Hi Im using c# express edition 2005 I have an MDI form, where i load multiple child forms from a dll i create, using reflection and late binding The child forms have multiple radio...
7
by: onyris | last post by:
Hi guys, have a form which displays all the records i have in my database , and a search box for the user to search for a specific one . On the search button, i run a macro which opens another...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.