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
3 answers

OnClick function is Not firing.

public void onListItemClick(ListView parent, View v, int position, long id) { super.onListItemClick(parent, v, position, id); LayoutInflater inflater = (LayoutInflater) this.getSystemService(Context.LAYOUT_INFLATER_SERVICE); …
lilzz
  • 5,243
  • 14
  • 59
  • 87
2
votes
2 answers

Onclick for imageview created in java, not xml

Question I have created some ImageViews by code in android by in the onCreate() class The class implements the view.onclick().. The ImageView doesn't register that it has been clicked. That's the problem should I use setTag(1) instead, how can I use…
Hello
  • 119
  • 2
  • 11
2
votes
1 answer

Opening listview items with a double click vb.net

I want to open items from a list view with a double click. Imports System.IO Imports System.Xml Public Class cv7import Private Sub cv7import_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim caminho As…
J_Snape
  • 31
  • 1
  • 3
  • 5
2
votes
4 answers

How do I use onFocus, onChange, and onClick events on a field

I have a homework assignment where I am supposed to use the onFocus, onChange and onClick events on each of three form fields. Each event is supposed to pass the field name to the function. The function is supposed to alert that the event has taken…
T Conroy
  • 21
  • 1
  • 2
2
votes
1 answer

onClick takes two clicks to populate results, HighCharts

My issue revolves around having to click a button twice to populate the results desired. I am using HighCharts to draw a chart, but the updateTime3Period() function must be called twice before the chart is properly displayed. Below I have included…
John G
  • 23
  • 2
2
votes
1 answer

How do I change text in another div using OnClick function in jvectormap?

I'm using this map plugin. When I click on each country, I want to change the text in a div called #content, which is invisible by default. I planned to make it by using a different div called #apDiv3. Content after first click should stay visible…
2
votes
3 answers

retain links functionality inside a div that has an onclick event

I have a div that has an onclick that hides the div. If I have a link inside the div, the link does not work, because the onclick steals the click. The desired result: if a click is made anywhere inside the div BUT the link, that the div gets…
Uno Mein Ame
  • 1,060
  • 5
  • 16
  • 29
2
votes
2 answers

Show/Hide Div On Click (numerous Divs)

Scenario: I have a state map of the USA. Over top of the state map, I have manufactured an area map to make each state a clickable link. Over each state, I have a
with absolute position and CSS styling to make the
look like a callout…
CCRaiff
  • 43
  • 1
  • 10
2
votes
1 answer

Resizing body height after iframe change src

So I automatically resize my iframe based on content height as follows: Link1