Questions tagged [jquery-triggerhandler]
14 questions
35
votes
4 answers
triggerHandler vs. trigger in jQuery
Out of curiosity -- what is the purpose of / use cases for jQuery's triggerHandler? As far as I can tell, the only "real" differences between trigger and triggerHandler is whether or not the native event fires, and event bubbling behavior (though…

David Eads
- 1,502
- 1
- 11
- 21
17
votes
2 answers
trigger custom event without jQuery
I'm triggering some DOM Events with jQuery triggerHandler()
stackoverflow
…

Christian Haller
- 643
- 1
- 7
- 16
9
votes
1 answer
jQuery: receive extraParameters from triggerHandler()
$('test')
.change(function(e){console.log(e.data);})
.triggerHandler('change',{foobar:1});
I'm doing it wrong or it's bugged?
Thanks ;)

Somebody
- 9,316
- 26
- 94
- 142
8
votes
2 answers
jquery triggerHandler doesn't work while trigger does
I am adding a click event to a checkbox which will show/hide additional fields depending on its checked status. I want the handler to fire on load to set up the initial page structure. For some reason triggerHandler is not working on the field. If…

Rumpleteaser
- 4,142
- 6
- 39
- 52
4
votes
1 answer
triggerHandler causing Error: [$rootScope:inprog] $apply already in progress error - AngularJS
I am trying to trigger the click of a button when a key is pressed. I'm doing this using the triggerHandler function, but this is causing the error above. I'm thinking I must have created some kind of circular reference/loop, but I can't see…

MDalt
- 1,681
- 2
- 24
- 46
3
votes
1 answer
triggerHandler() affects all matched element
Follow w3schools
The triggerHandler() method is similar to the trigger() method. Except that it does not trigger the default behavior of an event (like form submission) and it only affects the first matched element.
But I test with 2 input tag…

Toan Nguyen
- 1,043
- 3
- 13
- 24
2
votes
1 answer
Why jQuery triggerHandler() works but trigger() doesn't?
Click an element using triggerHandler() works:
$element = $('#gwt-debug-location-pill-edit-div:visible');
$element.triggerHandler('click');
But, clicking it using trigger(), doesn't:
$element.trigger('click');
Why is that?
To replicate this (in…

Misha Moroshko
- 166,356
- 226
- 505
- 746
1
vote
0 answers
triggerHandler 'rightnow' not updating on page refresh
I'm no expert on jQuery and javascript but have achieved pretty much what I wanted. On https://wand-op-maat.nl you see a customizer at the top. When entering values in the fields below it the images and wall change. It was quiet a challenge to get…

Philippe
- 11
- 2
1
vote
0 answers
jQuery trigger performance
I have a performance issue with jquery trigger.
My code contains this line
$(ispan).trigger('click','itoc'); //ispan is a img element
Here the total time taken to execute this line of code is almost 3 seconds.
ispan is only one element. I have…

CODE BHAI
- 11
- 1
0
votes
2 answers
Custom event not fired when called from $(document).ready();
I have the following code
$(document).ready(function () {
VerifyCustomerFilter();
$("#ToDateStor").on("DateSet", function () {
...
);
function VerifyCustomerFilter() {
if(toDate != "")
…

Igor
- 3,573
- 4
- 33
- 55
0
votes
2 answers
How can I trigger an angularjs event handler from another handler?
I'm using AngularJS 1.3.0-beta.2, jQuery 2.1.0, Angular UI 0.11, and my custom version of Angular UI's Tooltip widget, and I want buttons within my tooltip to close the tooltip when clicked.
Plunkr
The key part is at crud_tooltip.js:372:
…

Aaron
- 2,049
- 4
- 28
- 35
0
votes
1 answer
Trigger onclick function of input that has been checked automatically with jQuery
I have a form with some checkboxes which go like this:
Conditioned on another input I can have these checkboxes checked automatically but for some reason I…
user2017642
0
votes
2 answers
how to catch delegated events with .triggerhandler
We attach our event handlers using jQuery for DOM elements either
1)directly —
$(#elemId).bind("click",function(){ …//event handler code}); OR
2) by delegation. —
$(document).delegate("#elemId","click",function(){ …//event handler…

Shailesh Vaishampayan
- 1,766
- 5
- 24
- 52
-1
votes
1 answer