Questions tagged as 'onclick'

2
answers

How to do a regressive counter with javascript?

Hello folks I do not understand pretty much anything from Javascript, so for weeks I was trying to make a script that would do the following: 00:00:00 1st started a countdown of 20 minutes after clicking on...
asked by 17.05.2016 / 18:59
2
answers

What is the right approach to get the click / position in RecyclerView?

What is the right approach to get the click on RecyclerView? 1 - Within the onBindViewHolder use the position, even within the setOnClickListener methods, which turns the variable position into FINAL; 2 - Within the onBindViewHolder use the h...
asked by 19.10.2016 / 15:22
2
answers

Get id onclick and send values via Ajax

I have a list of tasks, it has the status part, which shows for example 'In Test' and a Approve button. I'm trying to get this Approve button when clicked, grab the Task Id and send an update to it to change its status. But so far I...
asked by 29.08.2016 / 21:28
1
answer

Click event on an SVG

I have a map of Brazil, in an SVG, where I would like to present a div to each state when clicking on it. I managed to work with color change with hover using ID of each state of Brazil: function highlight_map_states(){...
asked by 13.04.2015 / 23:53
1
answer

Button does not call the web service method

I'm having difficulty calling a method from my webservice, this method I send the e-ticket to the user for some reason is not working. I have a listview with all the tickets and the user selects which of them he wants to see the details and in t...
asked by 06.12.2016 / 12:28
1
answer

Link click function is not called

I already had a problem similar to this, and it would be because the function was built before the button was created. Now I have done a little bit after I give an append in my page I call a function on click. This is my code on codepen: lin...
asked by 04.03.2016 / 20:13
4
answers

Onclick call two functions at once Javascript [duplicate]

Good morning, it is possible when you click on a button to run two onclick functions at once, eg two different alerts?     
asked by 04.08.2016 / 17:18
2
answers

How do I refer to the value of onclick ()

I want an "if" that its condition is based on the location of the user click, but I have no idea how to refer to it. I believe that with this basis understand what I want to happen: if (onclick == window) {executar bloco de código} If you'd...
asked by 15.06.2016 / 02:11
6
answers

On Click only works once

I have the following code to show and hide content, but it only works once. When I click again to hide, nothing happens. $(document).ready(function() { $('li[name=music]').off().on('click', function() { if ($(this).children().css('...
asked by 14.12.2015 / 20:51
1
answer

Problem passing parameters to function

I have the following JavaScript code to which I want to pass parameters from a onClick event, but they are not recognized: HTML <a id="addplaylist" href="javascript:void(0);" onclick="Addplayer(true,'', '', '', 'public/playlist/...
asked by 21.12.2014 / 00:07