Tagged Questions
0
votes
1answer
19 views
Handling several .one on same event and element
I have a custom animation framework that uses css transitions.
In order to allow for callbacks i attach
$element.one('webkitTransitionEnd transitionend',function(){
$element.css({
...
1
vote
3answers
32 views
Dynamic content is not working with javascript
I have view where I am adding dynamic content. I have added link on them (dynamic link). When click on it, not displaying alert.
I tried
$("a.reset_ebook").on("click", function() { alert("test") })
...
0
votes
1answer
13 views
Binding a event listener on document vs binding event listener on multiple elements
This is kind of related to my previous Q where I had this code: http://jsfiddle.net/NQQL6/
There I'm attaching an event listener for dragstart and dragend on document. The alternative would be:
var ...
0
votes
1answer
18 views
Handling and waiting for previous JavaScript calls to complete
I have a function that is bound to mouse click events on a Google Map. Due to the nature of the function it can take a few moments for processing to complete (.1sec - 2sec depending on connection ...
0
votes
0answers
24 views
imagemapster conditional altImage
Image map is about condo units floor plan.
Everything is functional when the requirements changes.
For some area, altImage:'images/unit.png' is used by default.
New Requirement:
Show only the ...
0
votes
0answers
30 views
Modern JavaScript idle timeout
Is there an updated idle timeout library for JavaScript. I want users to be redirected back to the homepage if they are taking too long entering info in a form (with an appropriate dialog box asking ...
1
vote
1answer
16 views
Knockout - keyCode property not being passed through wrapped function
I've set up my Knockout bindings to have a keypress event because I wish to detect <Enter> on an input field.
If I have the following:
data-bind="event: { keypress: KeyPress }"
and my ...
4
votes
1answer
87 views
var a = function() vs function a() for event listener?
I'm trying to understand the difference when adding a function to an event listener and what implications it has.
var buttons = document.getElementsByTagName('button');
for (i = 0, len = 3; i < ...
0
votes
2answers
44 views
How to get response from webservice URL using JavaScript
I am new to Java scripting.
I have http webservice URL which results in xml respose. how do I get the response xml from the URL. I tried using the followinf using XMLHttpRequest but no luck.
function ...
0
votes
1answer
24 views
javascript logging stack for debug purpose
I'm trying to create a runtime snapshot of all the javascript function calls. for that i stumble upon stacktrace.js. it seems to find and log about my custom events but i can't find any other function ...
0
votes
1answer
30 views
Javascript - Event for highlighting the hovered element?
I'm currently using this code to bind events in a google chrome extension:
var bindEvent = function(elem ,evt,cb) {
//see if the addEventListener function exists on the element
if ( ...
0
votes
1answer
77 views
Javascript code not working on Chrome
I have this javascript on a separated file:
function calcularPontos_a()
{
var totala = 0
var a1 = parseFloat(document.getElementById("a1").value) || parseFloat("0")
var a2 = ...
1
vote
1answer
55 views
incorrect input value retrieved during bound event
I am performing some filter operation based on input keyed into a text box in the following manner.
$("#search").on('change keyup', function () {
var search = $.trim($(this).val());
...
-1
votes
1answer
38 views
Changing an onclick() inside onclick()
I have a TABLE and each TABLEROW has a div in it with the onclick 'deleteRow(rowIndex)', where rowIndex is the index of the row that was supposedly clicked on.
The problem is that any time I try to ...
1
vote
1answer
32 views
Remove event listener with d3js not working
I have an svg structure where there are some shapes inside. I want to fire an event when a shape is clicked and another one when is clicked over the svg. The problem is the SVG event is always fired.
...