Questions tagged [buttonclick]

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

1042 questions
111
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
  • 50,282
  • 110
  • 242
  • 312
50
votes
6 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
  • 13,002
  • 31
  • 112
  • 214
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
  • 4,254
  • 11
  • 74
  • 135
24
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
  • 4,321
  • 11
  • 44
  • 80
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
9 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
20
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
  • 500
  • 2
  • 8
  • 21
16
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,916
  • 16
  • 50
  • 77
16
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
  • 2,133
  • 7
  • 45
  • 82
14
votes
2 answers

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
  • 267
  • 2
  • 4
  • 10
13
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
  • 2,013
  • 4
  • 25
  • 44
13
votes
5 answers

Click events on overlapping items

I have table row with click event button with click event, that button is on table row and I have problem. When I hit button, row click event execute too, but I don't want this behavior. I want only button click execute, without row click.
MicTech
  • 42,457
  • 14
  • 62
  • 79
12
votes
10 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
  • 4,008
  • 32
  • 90
  • 153
12
votes
1 answer

Blazor Button Onclick function submitting form

I am facing strange issue while working on Blazor. I have a form for creating and editing records, on the same form I have table with rows and columns. In one column I am rendering delete button as shown in the screenshot.When I click on delete…
ZKS
  • 817
  • 3
  • 16
  • 31
1
2 3
69 70