Questions tagged [buttonclick]

An event that occurs when a user clicks a button element located within a user interface

960 questions
106
votes
15 answers

How to make a button redirect to another page using jQuery or just Javascript

I am making a prototype and I want the search button to link to a sample search results page. How do I make a button redirect to another page when it is clicked using jQuery or plain JS.
Ankur
  • 47,089
  • 107
  • 237
  • 309
46
votes
5 answers

Change DialogFragment enter/exit transition at just before dismissing

I have a DialogFragment and I set animation for enter/exit in the onActivityCreated method as below: @Override public void onActivityCreated(Bundle arg0) { super.onActivityCreated(arg0); getDialog().getWindow() …
36
votes
5 answers

Get listview item position on button click

This is my listview click event: lv1.setOnItemClickListener(new OnItemClickListener() { @Override public void onItemClick(AdapterView a, View v, int position, long id) { Object o =…
coder
  • 14,595
  • 32
  • 107
  • 213
30
votes
7 answers

How to press/click the button using Selenium if the button does not have the Id?

I have 2 buttons Cancel and Next button on the same page but it has only one id (see the below code). I wanted to press Next but every time it is identifying the cancel button only not Next button. How to resolve this issue? …
ChanGan
  • 3,985
  • 9
  • 62
  • 113
22
votes
3 answers

Button Onclick Listener in included layouts

I come to you on bended knee, question in hand. I am relatively new to Android, so pardon any sacrilegious things I might say. Intro: I have several layouts in the app, that all have to include a common footer. This footer has some essential…
Sreedevi J
  • 673
  • 1
  • 9
  • 15
21
votes
8 answers

How to open number dialer pad programmatically in android?

I want to display Number Dial Keypad (Phone Call) Programmatically on button click in android. Code is available for direct number dialing but I only need to show the dial keypad when I click the Button.
Addon_Android
  • 271
  • 1
  • 2
  • 9
16
votes
5 answers

Using ADB to access a particular UI control on the screen

Is it possible for adb shell console to access an Android app's specific button using its id? or text? I'm trying to automate the button click on the device. This is a web app accessed from a browser. So if I have that button id can I send an…
Siddharthan Asokan
  • 3,832
  • 9
  • 38
  • 75
15
votes
2 answers

ASP.NET button inside bootstrap modal not triggering click event

I'm working in Bootstrap modal in my asp.net site, modal is working fine but the button btnSaveImage inside modal footer is not firing click event, I also have a masterpage and the form tag is in it. Here is my code:
skhurams
  • 1,983
  • 6
  • 40
  • 78
14
votes
6 answers

Immediate play sound on button click in HTML page

In my HTML page I have 9 images for dialing numbers and one text box that shows the pressed numbers. I want each of those images to immediately play beep sound when users click on them. I tried to use embed with hidden property and navigate it's…
firefalcon
  • 420
  • 2
  • 7
  • 21
13
votes
5 answers

How to launch another aspx web page upon button click?

I have an asp.net application, where the user would click a button and launch another page (within the same application). The issue I am facing is that the original page and the newly launched page should both be launched. I tried…
Csharp
  • 2,722
  • 15
  • 46
  • 77
12
votes
9 answers

How to disable a button after 1st click

I have the following onclick event for a button. once this event is ftonired i want to disable the button. Can anyone help me to understand how to do it? Here is the code i execute on buttonclick event. protected void Button3_Click(object sender,…
Ishan
  • 3,818
  • 28
  • 78
  • 149
12
votes
5 answers

RecyclerView onClick for multiple buttons and handling from Activity

I'm using RecyclerView with CardView and inside the CardView have 2 buttons. Now, have implemented the onClick events by implementing View.OnClickListener by the ViewHolder static class and overriding the event (its working )like @Override …
user2695433
  • 1,553
  • 4
  • 18
  • 42
12
votes
4 answers

same function for two buttons in jQuery

I have two buttons: btnAdd and btnUpdate. I have written a jquery function for button btnUpdate to validate some fields in the web page like: $(function() { $('#<%=btnUpdate.ClientID %>').click(function() { code here }); }); I want to do…
ANP
  • 13,969
  • 21
  • 53
  • 78
12
votes
1 answer

How to remove rows from DataGridView?

I have a winform with preloaded DataGridView over it...I want to remove rows from datagridview on selecting or highlighting the rows and clicking over the button... Also want to clear all the columns.... Currently i used foreach (DataGridViewRow…
samj28
  • 237
  • 1
  • 4
  • 9
11
votes
6 answers

handle button clicks in a DialogFragment

I have Fragment that extends DialogFragment and I have a custom layout for it which contains two edittexts and two buttons - ok and cancel. My dialog displays just fine, using the onCreateView method for specifying the layout, but I don't know how…
Sandra
  • 4,209
  • 10
  • 42
  • 76
1
2 3
64 65