Tagged Questions
3
votes
0answers
118 views
.change() handler make form require two clicks to submit
I have a text area that has a .change() handler bound to it. Upon change, it forces an ajax call to save some data. In another part of the page, there is also a form with a submit button.
The desired ...
2
votes
0answers
35 views
Executing a function on initial page load (and user refreshes) but not back button
I'd like to execute a javascript (or jQuery) initialization function -- let's call it myPageInit() after a page is fully loaded.
Here's the catch: myPageInit() should run only when the page is ...
2
votes
0answers
361 views
How to create time zone with jQuery?
How do I create a local time(time zone -> UTC + 3:30) that would show seconds with jQuery?
I do not want to use a plugin, and prefer a short code.
I do not use the following example because it ...
1
vote
0answers
182 views
Jquery Dynamic Window Resize
I am trying to resize the window from a given array of integers. Here is my current incorrect code:
$(window).load(function() {
var group = [0, 1, 2];
var global_i = 0;
$.each(group,function(i){
...
1
vote
0answers
798 views
jQuery slickgrid events
I am trying to implement a "drill in/out" in a slickgrid grid. I am doing that based on this example:
http://mleibman.github.com/SlickGrid/examples/example5-collapsing.html
The example naturally ...
1
vote
0answers
327 views
Creating Auto-Scrolling Gallery with JQuery; Need advice on correct code
I'm trying to create an auto-scrolling image gallery from scratch. Right now, I've written the images to change when a hover occurs.
My theory was that I could use '.ready' and create a loop of these ...
1
vote
0answers
141 views
jQuery.Event('keydown') not working on an input field
I'm trying to simulate keydown event on input field, the code is running but I don't see the chars in the text field, here is my code:
$el.focus();
var keyCodes = _process.value.toCharCode(); // ...
1
vote
0answers
476 views
How to capture mouse wheel(Middle Button) click event in Java Script
I want to know how to capture mouse wheel click event which shows
following image I want to capture the event of auto scroll down/up on moving mouse , to right left top bottom buttons ...
0
votes
0answers
33 views
treemap: choose div content by mouseover, and select and set by click
In http://jsfiddle.net/ppeer/7wJ7j/ I've put my treemap code.
At the center of it, is the mouseover and select (click) function:
google.visualization.events.addListener(TreeMapVisualization, ...
0
votes
0answers
42 views
how to disable the persistent navbar to show on click
I have a mobile app, and within [data-role="content"] div contains a clickable element with function i.e. div, and when I click the said div the navbar toggles on show/hide...
How do I disable on ...
0
votes
0answers
31 views
How do jQuery custom event triggers work? Are they quick and light?
I'm looking at something like this: http://jsbin.com/uradod/1/edit
So, my question is, how do they exactly work in lower level and can I depend on them to be fast and light enough to manage my custom ...
0
votes
0answers
33 views
jquery.data API and event binding[Unable to understand]
Please explain the following snippet [read on the internet and also couldn't understand]:
var $this = $(this);
$this.data('key', $this);
$this.on('click.key', function(e) {
// do something
});
...
0
votes
0answers
74 views
callback function in jquery - stop after X seconds
I make a game. The character must go onmouseclick to the mouse pointer. But i need him to stay on the screen in same Xposition- only decorations move.
Here is my function.
As you see, it check the ...
0
votes
0answers
62 views
How can I pass the event.currentTarget.id inside $().css?
The purpose of this object is to display a popup if clicked on a div. Within the popup I want to display the css attributes from the div clicked. My question is how I would place the current.target.id ...
0
votes
0answers
199 views
switching e.preventDefault() on and off so swipe works on android
Here's a snippet of code that triggers events on swipe left and swipe right.
the problem is with androids then need e.preventDefault() to be called to ensure this can happen according to ...