473,654 Members | 3,097 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Click anywhere on the form a particular button remains selected

200 New Member
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 2004
ismailc
200 New Member
Any ideas p please help??
Oct 22 '09 #2
RamananKalirajan
608 Contributor
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.b lur();". I havent tried this but it may help you...

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

changed from submit buttons to normal buttons..

great :)
Oct 22 '09 #4
Dormilich
8,658 Recognized Expert Moderator Expert
@RamananKaliraja n
the drawback of that is, that the form becomes unuseable if Javascript is disabled.
Oct 22 '09 #5
ismailc
200 New Member
i got it going, changed from submit buttons to normal buttons

Thank you
Oct 22 '09 #6
RamananKalirajan
608 Contributor
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 Recognized Expert Moderator MVP
@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
1996
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 access to Usenet here at work) Here's the problem: Yesterday, I posted a dilemma I am facing, and got an answer, but wasn't able to try it till today, and it doesn't work. To review: Select box on the left contains all employees. Select box on...
1
4178
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 continue the execution code on a other button or anything else. Example 1) Click anywhere intercept click->Execute the code in function click().
3
1956
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 checkmark box that is selectable as on or off (on if there is a checkmark inside it). The table that contains the data for the form is known as "red chocolate
41
4288
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 on some initialization information obtained elsewhere. Basically, I'm going to create my own dynamic toolbar where the toolbarbuttons can change. I'm not using the VB toolbar because of limitations in changing things like backcolor (I can't get...
4
2625
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 before the list is repopulated. For example, suppose the user selects 3 in the drop down list and 3 text fields are shown. If the user populates the 3 text fields with data and decides to change the drop down to a list of 4 or 5, how do I capture...
5
6755
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 link buttons to stay wired up to their click events. I have what is basically a simply survey question generation page. The page first displays a few static fields and a dropdownlist of various options for the user to select. When the user...
2
2884
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 buttons in a groupbox, and have the appearence set to button
7
4304
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 form with only the records found based on the search. So far so good On the second form, first record found is displayed ( customer and deatils) and u can navigate through the rest . But i also have a listbox which holds only a field ( first_name...
0
8290
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8815
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8707
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8482
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8593
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7306
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6161
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
2714
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1593
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.