0
votes
0answers
24 views

IE: Why is event.ClientY always negative on some client machines?

We have an application that is installed on an intranet and is accessed with IE. There are certain things that we want to do if the user closes the browser (e.g. using the X in the upper right hand ...
0
votes
1answer
29 views

How to iterate through an unordered list and then select the parent div of the list item

I have a list of radiobox select questions that I need to validate. <ul> <li> <div class="question">Question1 <ul id="choice11"> ...
0
votes
2answers
21 views

Binded event handlers no longer work after AJAX manipulation

I am binding some jQuery event handlers to an element in the page which work fine initially, however if the user selects a radio button on the page, that element gets removed; they can bring it back ...
0
votes
0answers
31 views

Problems with mouseleave/focusout event handlers and user selecting from autocomplete list

Ok, I have binded the jQuery event handler mouseover to an element with the below code: jQuery(document).ready(function(){ jQuery('#buyout_field').mouseleave(function() { alert('Hi!'); ...
0
votes
3answers
21 views

Having trouble getting binded events to fire

I have included the below code in the header of my page: <script type="text/javascript"> jQuery('#start_price').mouseleave(function() { alert('Hi!'); }); </script> I ...
0
votes
3answers
21 views

Catching events for mousewheel when Firefox is autoscrolling

I know there are many questions asking how to prevent the autoscrolling mode that Firefox activates when a page is bigger than the viewport and you press the middle mouse button. But what I actually ...
-1
votes
2answers
63 views

How can I use a jQuery event without binding it to the element?

I need to use thew jQuery event mouseleave and notice you can bind it to an element such as doing the code.. $('#outer').mouseleave(function() { $('#log').append('<div>Handler for ...
-2
votes
0answers
19 views

Tree Structure with checkboxes with pure javascript [on hold]

I need to develop one tree with checkboxes. I know there are lot of plugins available. But i don't want to use any plugins. I just want to use javascript and some helpers in JQuery. Please help me in ...
0
votes
2answers
23 views

Run function once users mouse leaves text field

Ok, I have a text field which users enter data into, once their mouse leaves that text field I want to run a function. I am aware of the onBlur event, but this doesn't run unless the user clicks ...
1
vote
1answer
19 views

Two or more Flexslider2 within Bootstrap tabs

I have a problem creating a gallery page. I am using Bootstrap as a base an get on fine with it. I have looked at various sliders and carousels and have chosen Flexslider2 - it works great and looks ...
3
votes
9answers
80 views

Two functions in javascript onclick event?

<a href="#" type="image" class="topopup" onclick="ShowDIV3();" >Click Here</a> In this code I need to execute another one function like validation if that function is true only the ...
0
votes
4answers
20 views

JavaScript- variable scoping and event handler

Please see the jsfiddle: http://jsfiddle.net/LsNCa/2/ function MyFunc() { for (var i = 0; i < 2; i++) { // i= 0, 1 var myDiv = $('<div>'); myDiv.click(function(e) { ...
0
votes
0answers
8 views

Dreamweaver CS6 Troubles

Why does this code not work? It should cycle through entering an username and password with only 3 attempts before lock out. The correct username is ADMIN and the correct password is PASSWORD. Also ...
4
votes
4answers
39 views

How to pass a variable by reference to an event handler in javascript?

I simulated a class in java script, It's code is here: function myclass() { this.count ; this.init = function(){ $("div.mybtn").click({n:this},function(e){ ...
2
votes
2answers
53 views

Using this inside an event handler

I was trying to find the meaning of this keyword inside event handler function in the DOM level 3 event spec. As per my experiment this refers to the event.currentTarget object. Is this behavior ...
0
votes
2answers
41 views

How can I trigger onblur from a ul li?

I am essentially highlighting each li when clicked, and want to "un-highlight" the clicked li when clicking elsewhere or tabbing out (by effecting the background-color property). This behavior would ...
0
votes
2answers
52 views

On click photo change

I would like to create a function where I can choose from a few photo's and if I click on one, it should change in the big frame which is also shown (photo). I think I might messed up the selectors. ...
3
votes
10answers
164 views

Can someone please explain e = e || x? Why assign e to e?

Can anyone explain what this statement means? e = e || x Specifically, e = e || window.event This appears in a chunk of code I am looking at. I'm not at a complete loss, however My ...
0
votes
2answers
26 views

Javascript onclick fires on page load

Just starting out with front end development here, but despite my assuredly poor practices I've been enjoying things a lot. Basically I'm trying to add an onclick function to an element when the page ...
2
votes
3answers
54 views

object has not method error in javascript

I am using following code but it returns following error Uncaught TypeError: Object [object HTMLAnchorElement] has no method 'userInput' Here is the code jsfiddle var ClickEvent = function ...
0
votes
1answer
21 views

Click on dynamically added link on KeyUp with jQuery

I use jQuery to add some HTML to the DOM. After the insertion I would like to create an eventhandler which is called on keyup and clicks on the link added to el. However, jQuery does not find the a ...
1
vote
2answers
35 views

How to stop propagation of all events

I wonder how to stop the propagation of all types of events when they reach a certain element. I have thought function stop(e){ e.stopPropagation(); } function stopEvents(el){ var events = ...
0
votes
0answers
10 views

Playlist is not getting cleared in embed vlc media player using javascript

Trying to incorporate online radio streaming to one of my client . Playlist is not getting cleared and not able to play next pointed URL. Below is the html code for the same. Let me know where I am ...
3
votes
2answers
55 views

A Javascript event listener's anonymous function keeps returning the same value?

Hey I was writing a code that basically adds event listeners that call a function with the a fragment of their dom object's id, but every time I click an object with the listener It just gives me the ...
0
votes
3answers
37 views

Cannot add click events to list items

This is my first foray into using Javascript with HTML. I'm trying to add click events to the list items in an ordered list, but something about the way I'm doing it isn't working. Can somebody shed ...
0
votes
3answers
44 views

Insert value to input / JavaScript

I have the following JS / HTML code: <input type="text" class="file" name="file_info" id="file_info"> <div class="file_upload"> <input type="file" id="file_upload" ...
1
vote
0answers
35 views

How can I use javascript event handlers in <link> having rel=“author”

I want to use onload() or onerror() or any other javascript event handler with <link rel="author" href="http://something.here" /> For example <link rel="author" ...
1
vote
1answer
33 views

Dynamically Modifying Value of an Existing Event Handler

Quick background: I'm updating existing code to separate event handlers from html objects and, in an onload function I'm then assigning all necessary handlers. ...
0
votes
2answers
35 views

onsubmit not fired when last entry is correct

Everything works fine when there is nothing in the email input. But as soon as I enter a "valid" email address, it doesn't even fire the function because the alert is never triggered. Any help will be ...
0
votes
1answer
23 views

Keyboard hide event in android

Which event triggers when we hide / show the keyboard at the android in Javascript? How can I subscribe? I need to show my block after the keyboard completely hides.
0
votes
1answer
30 views

Where to add onsubmit to a form in Javascript

In my HTML I've got a form without an onsubmit event listener: <form action="contact.php" method="post" id="contact"> ... <input type="submit" value="Send" /> </form> As a ...
1
vote
0answers
49 views

Javascript Body OnLoad Event is not triggered due to missing body tag

I am trying to entegrate 3D Secure payment logic with javascript. As I post the credit card info to bank, I get a reply html.. This html redirects the screen to 3D Password screen of the bank which is ...
0
votes
2answers
50 views

'data' is null or not an object IE8

I am transmitting message from an iframe to its parent page using postMessage. This is my code. In iframe: $(".history_date").click(function(event) { window.top.postMessage($(this).text(), "*"); ...
0
votes
0answers
5 views

X-webkit-speech on Safari ipad

On Chrome we can capture the onwebkitspeechchange, is there any event fired on ipad when using voice input into a text field?
0
votes
1answer
27 views

how to get open window instance from a third window

I have one window (in domain-1) from there I need to open a new window (in another domain say domain-2) . Now in domain-2 I need to open a same window (parent of domain-1) but need to close the ...
0
votes
0answers
17 views

Handling on click except on radiobutton in the first TD of the cell in the repeater Control

I have a repeater with 5 columns. I've used live click on the tr to redirect it to that particular transaction. Header Columns: TranID, TranName, TranType, TranSubType, TranLoc Body of the ...
0
votes
0answers
39 views

Make one element respond to all drag events inside a div

My page is split into three divs (right, center, left), and the first div has multiple other divs inside it. I would like to be able to drag divs from the first main div to the others. This much works ...
3
votes
3answers
478 views

Did windows update 2846071 break break the handling of window.event.clientX clientY?

Did windows update http://support.microsoft.com/?kbid=2846071 break the handling of window.event.clientX and clientY? It seems that Windows 7 machines using IE 9 or 10 now return something that looks ...
-4
votes
0answers
30 views

Not sure why this doesn't work [closed]

<!DOCTYPE html> <html> <head> /* javascript for adding listeners etc*/ <script type="text/javascript"> /* gets the element id and returns it*/ function _(x){ return ...
1
vote
0answers
17 views

Trigger default scroll behavior

I need to trigger the default scroll behavior, like what happens with the scroll wheel. However, I shouldn't just do $("body").scrollTop($("body").scrollTop() - 10) because I don't know that the ...
0
votes
1answer
37 views

Unable to call `change` event for cloned `select` control

I have dynamically added new row by clone the last row. this row contains select picker control. How can i create the change event for newly added control. I have tried by adding below script , but ...
2
votes
0answers
42 views

Elements in <li> in contenteditable sometimes don't receive keypress event

I created a contenteditable div. I want to lock text editing (in the example below, I want to lock "yes") within one of the children. Here's the HTML: <div id="foo" contenteditable="true">this ...
1
vote
0answers
31 views

How to initialize new DOM contents using javascript and keep previous DOM somewhere else?

I have two pages: page1.html page2.html page1.html is : <html> <head>Some CSS and JS goes here</head> <body><a href="page2.html"></a></body> ...
-4
votes
2answers
62 views

Handle Multiple Clicks at Once in JavaScript [closed]

I have a dashboard where a person can bookmark a particular link by clicking a star icon. I need to allow user to click on multiple stars and once user stops clicking then at once collect details of ...
0
votes
1answer
38 views

Javascript link not working in joomla

i'm having problems with a JS link i have the following code window.addEvent('domready', function() { $('province_aw').addEvent('change', function() { var index = ...
0
votes
3answers
61 views

How to fetch the dynamically created element by its ID in jquery

Initially adding the element statically like below: <td valign="top" id="description_div"> *<table class="des_box" id="comment_div"> <tr><td class="head" ...
0
votes
0answers
31 views

Generate classic context menu

I'd like to know if it's possible to generate an event 'contextmenu' on some elements like mails in gmail or hotmail. But I'd like to have a classic menu not the one customized by gmail or hotmail. If ...
-1
votes
3answers
37 views

Using variable in setattribute function in javasscript

displaying NoN instead of city name. I have tried following code- <script type="text/javascript" language="javascript" > function submitcity(c){ ...
1
vote
3answers
32 views

Map enter key to submit while not inside input

I have a form with multiple input boxes that I'm trying to get to submit when I press the enter key, regardless of whether or not one of the inputs is currently highlighted. That is, I want to be able ...
1
vote
1answer
59 views

What happens to event listeners when element is removed?

If, for example, I have series of event listeners created like this: var els = document.getElementyById('myList').getElementsByTagName('li'); for (i=0;i<els.length;i++) { ...

1 2 3 4 5 138
15 30 50 per page