jquery-events Questions

4

Solved

I am trying to save the form onkeyup action. I am new to jQuery. Is this possible? I appreciate any help. edit 1: Save the form means save to server. Is there a way to add 0.2 seconds delay.
Wolverhampton asked 1/11, 2010 at 13:35

4

Sometimes the users bind the events on $('body') and sometimes on $(document) $(document).on('click', someAction); $('body').on('click', someAction); Is there some reason to prefer one to another...
Slaby asked 3/12, 2012 at 16:13

27

Solved

So I currently use something like: $(window).resize(function(){resizedw();}); But this gets called many times while resizing process goes on. Is it possible to catch an event when it ends?
Whitefly asked 30/3, 2011 at 17:37

11

Solved

We are working on a JavaScript tool that has older code in it, so we cannot re-write the whole tool. Now, a menu was added position fixed to the bottom and the client would very much like it to ha...
Fielder asked 8/11, 2011 at 17:16

6

Solved

I'm trying to show up a container if a input field gets the focus and - that's the actual problem - hide the container if focus is lost. Is there an opposite event for jQuery's focus? Some example...
Derna asked 14/9, 2009 at 19:53

10

Solved

I am trying to style a checkbox list. I've added my styles and they appear correctly when rendered. I want to add a class when the label for the checkbox is clicked. This is my markup and here is t...
Diedra asked 11/6, 2015 at 14:27

16

Solved

I'm trying to accurately detect when the browser goes offline, using the HTML5 online and offline events. Here's my code: <script> // FIREFOX $(window).bind("online", applicationBackOnlin...
Bootstrap asked 5/7, 2010 at 16:53

20

Solved

I would like to detect whether the user has pressed Enter using jQuery. How is this possible? Does it require a plugin? It looks like I need to use the keypress() method. Are there browser issues w...
Appointive asked 11/6, 2009 at 6:39

11

Solved

How to detect escape key press in IE, Firefox and Chrome? Below code works in IE and alerts 27, but in Firefox it alerts 0 $('body').keypress(function(e){ alert(e.which); if(e.which == 27){ // C...
Monopoly asked 30/7, 2010 at 7:54

6

Solved

When the user goes history-back-1...how do I detect that? And then, alert "the user clicked back!" Using binds (and jQuery preferably)
Cheesecake asked 5/1, 2010 at 20:21

21

Solved

The thing I want to achieve is whenever the <select> dropdown is changed I want the value of the dropdown before change. I am using 1.3.2 version of jQuery and using on change event but the v...
Protoplast asked 2/11, 2010 at 10:27

5

Solved

I would like to prevent the default event from a focusOut (or blur) event and keep the focus set to the specific input field. This is what I have already tried: using event.preventDefault() at t...
Odoriferous asked 30/1, 2013 at 21:7

6

Solved

function bubble(content, triggerElm){ this.element = $('<div class="bubble" />').html(content); this.element.css(.....) // here is positioned based on triggerElm } bubble.prototype.show = ...
Crowned asked 2/3, 2015 at 0:7

17

Solved

I want to hold an event until I am ready to fire it e.g $('.button').live('click', function(e){ e.preventDefault(); // do lots of stuff e.run() //this proceeds with the normal event } I...
Table asked 30/9, 2011 at 13:12

41

The problem I'm having is that the dragleave event of an element is fired when hovering a child element of that element. Also, dragenter is not fired when hovering back the parent element again. I...
Dewclaw asked 18/8, 2011 at 15:53

10

Solved

I have the following function: $(document).ready(function() { $("#dSuggest").keypress(function() { var dInput = $('input:text[name=dSuggest]').val(); console.log(dInput); $(".dDimension:contai...
Isomerism asked 9/1, 2012 at 21:15

4

Solved

This is my view code I used jQuery it works and I didn't have any problem until I have changed the screen resolution it stops working. I know where is the problem but I can't solve it look at the c...
Seclusive asked 17/5, 2011 at 6:53

8

Solved

I have a draggable <div> with a click event and without any event for drag, but after I drag <div> the click event is apply to <div>. How can prevent of click event after drag? $(...
Kwon asked 3/8, 2013 at 11:2

9

Solved

I'd like to do some fancy jQuery stuff when the user scrolls the page. But I have no idea how to tackle this problem, since there is only the scroll() method. Any ideas?
Wickman asked 13/9, 2010 at 14:25

22

Solved

I have a single button in li with id "my_id". I attached two jQuery events with this element 1. $("#my_id").click(function() { alert('single click'); }); 2. $("#my_id").dblclick(function() {...
Hyla asked 31/3, 2011 at 8:24

4

Solved

I'm trying to debug a web page that makes heavy use of events, and so I need to monitor all events that are fired. Most of the events are bound using jQuery. Hence, it would be particularly useful...

13

Solved

Is there a way to have keyup, keypress, blur, and change events call the same function in one line or do I have to do them separately? The problem I have is that I need to validate some data with ...
Tailpiece asked 28/3, 2010 at 18:53

5

Solved

I am trying to Simulate a scroll event using Javascript for Mobile Safari. I am using the following code var evt = document.createEvent("MouseEvents"); evt.initMouseEvent("scroll&qu...
Importunate asked 20/7, 2011 at 12:10

8

Solved

is there anyway to get the class when click event is fired. My code as below, it only work for id but not class. $(document).ready(function() { $("a").click(function(event) { alert(event.t...
Andreandrea asked 14/6, 2012 at 2:56

11

Solved

Is there any event in Jquery that's triggered only if the user hits the enter button in a textbox? Or any plugin that can be added to include this? If not, how would I write a quick plugin that wou...
Continuation asked 29/6, 2011 at 16:48

© 2022 - 2025 — McMap. All rights reserved.