Questions tagged [onclick]

An event which occurs when user clicked an object. It is a combination of two events, that is, "onmousedown" and "onmouseup".

Tag Usage

This tag is used frequently on questions surrounding Javascript event handling. It is worth noting that virtually every conceivable question has been asked on this topic so before you hit that post your question button, have you had a quick look to see if your question has already been covered?

14616 questions
2
votes
2 answers

fire OnItemClick on listview when button is clicked

I have a ListView that contains button on each item. I want that the item click will cause the OnItemClick event of the list to fire, as that event contains more info (id,position) than the OnClick event of the button. This is an important action on…
Shlomi
  • 343
  • 5
  • 23
2
votes
1 answer

Android Menu Listener

I am new to Java and Android development and I am trying to use event handlers for menus. I had no problems setting up the menus in xml, but now I am confused on how to use handlers. I am using onOptionsItemSelected(MenuItem item) and I only know…
drum
  • 5,416
  • 7
  • 57
  • 91
2
votes
1 answer
2
votes
2 answers

C# onClick Event on ASP.NET Button not initially fired but postsbacks... and eventually fired after multiple clicks

I'm having a weird issue and i'm not sure where to look or how to debug. I have a Parent Page A which has a Combo box control with 7 provinces; Each Province has a User Control ( View ). By default , the selected index is province "SK" which loads…
Gotcha
  • 1,039
  • 1
  • 16
  • 24
2
votes
1 answer

Get which Link button has been clicked

I am working on an ASP.NET/C# Application. I have Link buttons like this Link1
Y2theZ
  • 10,162
  • 38
  • 131
  • 200
2
votes
4 answers

Replacing an image with a video on click

I've got a nice image on my website that has a play button on it. What I'd like to do is replace that image with a video (longtail video player) when a user clicks on the image. The image can be wrapped in a link or whatever. Usually, people just…
jon
  • 5,961
  • 8
  • 35
  • 43
2
votes
5 answers

how to get Id of the button in listview?

In my application I am using a List Activity in which I have passed an ArrayAdapter the getView() method is like this @Override public View getView(final int position, View convertView, ViewGroup parent) { mPosition= position; …
Sandroid
  • 328
  • 1
  • 10
  • 19
2
votes
2 answers

OnClick event in 1.5?

I just changed my application's(2.2) version into 1.5. After, that i've an error in my XML files like this error: No resource identifier found for attribute 'onClick' in package 'android' Why i can't use that method. Otherwise, is there any…
Praveenkumar
  • 24,084
  • 23
  • 95
  • 173
2
votes
2 answers

How do you re-enable a jQuery tab after you consumed the 'onclick'?

This might be a newbie question... but here goes... I set up some tabs using jQuery:
codenamezero
  • 2,724
  • 29
  • 64
2
votes
3 answers

Salesforce JavaScript

I'm constructing a button that a user can click once they've opened a case to take ownership and set the status to active. Although I had the code pretty close, but I'm getting an error I'm not familiar with. Here's my…
Havoc783
  • 157
  • 4
  • 6
  • 19
2
votes
2 answers

Android Development play multiple sound files on button click

I am using the following to play a sound on a button click: final MediaPlayer buttonSound = MediaPlayer.create(menu.this, R.raw.button_sound); info.setOnClickListener(new View.OnClickListener() { public void onClick(View…
2
votes
2 answers

Which javascript method will be called first?

If I have to calls to javascript functions (ProcessingOne and ProcessingTwo for example), and I associate them both with a button's onclick event: - one is linked to the button's onclick in the document ready call - the other is directly entered in…
finoutlook
  • 2,523
  • 5
  • 29
  • 43
2
votes
2 answers

Javascript: Onclick event not working in IE

I have tried to google this to no avail and have tried multiple options. All of which work in firefox but none have worked in IE. I have 2 onclick events on one page and neither are working in IE. The javascript file for both events is called…
2
votes
1 answer

OnClickListeners not consistently firing

I have a listview where each list item can contain 1 or more clickable images. Clicking them starts an activity that shows a full screen version of the image. The following code (slightly simplified) sets up the OnClickListeners within my GetView()…
Goat
  • 193
  • 10
2
votes
4 answers

Javascript - onclick

first time posting here, but god know's I use this site to search for problems all the time :P Well, I'm having a problem of my own now that I can't seem to figure out easily searching around Google, and after playing with it for about 2 hours, I've…
Jeremy
  • 160
  • 1
  • 1
  • 11
1 2 3
99
100