0
votes
1answer
20 views

Modal popup open while calling a function

I am using the below code to show the login modal popup. Its working well. But i need another one function to show the model popup without button click. If i call that function means the same popup ...
0
votes
0answers
21 views

How to declare a function call inside an Info Box

I'm trying to call a function from within a Google Maps InfoBox. The InfoBox html is populated from a string, so I'm confused about how to pass the function call. Code: var message = "hello"; ...
0
votes
0answers
15 views

How do I reload the form with the results from the Javascript?

I installed a javascript multiple choice quiz. Everything works correctly with the script, however what I need to do is to pass the score, (total correct) back to the form that called the script on ...
1
vote
2answers
27 views

Firefox addon: new tab extension

I need to do some actions when new tab in Firefox is opened. I'm using addon-sdk and I'm totally new to firefox extensions development. I downloaded some new tab extensions in store, unpack them and ...
0
votes
2answers
19 views

Can't open new tab or window with javascript/jquery

Note that this is not for a live website; it's just some experimentation for my own enrichment. I'm running Chrome Version 35.0.1916.153 (latest) on Mac OSX 10.9.3. As many others have tried to do, ...
0
votes
3answers
69 views

Is it possible to use an onclick on a div?

I'm trying to activate "onclick" on a div. for some reason it's not working. example: <html> <head> <style> .box{ border: 1px solid ...
3
votes
2answers
34 views

Image doesn't display after changing src attribute

Like the title says after I change the src to the value during the rollEvent function, the image doesn't change. When I print the value of display.src to console it is correct. But the actual ...
0
votes
1answer
25 views

Javascript Jquery Event Performance mvc

I was reviewing a javascript application for performance, the application is built with spine.js and underscore js (acting as template engine). There is one common EventManager.js which handles all ...
1
vote
2answers
32 views

Module pattern usage with event handlers

My query is regarding efficient usage of Javascript Module Patterns. Below is a simplified module from my code. I want to re-factor it into modules. The modules would have a few 100 LOC each. ...
0
votes
1answer
11 views

Rails Live: Dynamically send resut from method to browser

I am trying to notify the browser of the user of a change of the status of the model. I am trying to use the live-module of Rails for that. Here is what I have got so far: require 'json' class ...
0
votes
2answers
28 views

Event handler function out of scope in for

The handler inside of my for loop might be out of scope and only prints "Last Event added" in console but doesn't loop through each element in the array. No sure where I'm going wrong here, but I need ...
-2
votes
1answer
31 views

Greasemonkey script no longer works during a click on a button/link

I have a greasemonkey script that does some associating between JIRA and a ticket app. When you associate an item to a JIRA ticket, it makes some API posts to JIRA to add the other ticket to the JIRA ...
1
vote
3answers
25 views

How to add multiple event(mouseover/mouseout) into one selector

If I mouseover/mouseout very fast more than one time during animation times (here 900). Button is animating more than one time; even when I stopped mouse activity. I want that It will take only one ...
-1
votes
1answer
11 views

how to abort android back button to call window.history.back() in cordova application?

I created an application with help of http://coenraets.org/blog/cordova-phonegap-3-tutorial/ . When i click on the SMS link in the Employee details view it opens native message composer because the ...
1
vote
1answer
30 views

Clear local storage when user closes window [duplicate]

How Do I clear local storage when my website is closed in all the tabs in a browser? means If my user is open my website in multiple tabs, and when user is close browser or close tabs one by one, I ...
0
votes
1answer
19 views

Meteor AutoForm - Is it possible to manually call the onSuccess or onError hooks?

I have this form that checks for the user's CAPTCHA input. When the CAPTCHA is valid, it should send an e-mail, otherwise it should display an error. AutoForm.addHooks(["form1", "form2", "form3"], { ...
0
votes
1answer
21 views

onChange event handler with select element that can show hidden element

This is my code below what I'm trying to do is only if I select "NO" the table row should be shown. I tried this onchange event and DOM so I can get hidden table should shown. But I don't know why ...
0
votes
0answers
27 views

Google Script not properly accepting event input

I'm relatively new to this and may come off as really dumb, so please bare with me. I've been using Google Scripts trying to write a script that, when a new response is added from the Google Form ...
0
votes
1answer
25 views

javascript Custom prompt box help needed

So i have made a custom prompt box for javascript so i dont have to use the stock ones, however i cannot figure out how to return the value from the directly from the cPrompt() function. I want to be ...
-1
votes
5answers
45 views

.on event not working on new added button jquery

I have a div that contain sample table with one TR <div> <table id="sample_row" style="width:300px"> <tr> <td> <select id="employer"> <option value="1">Employer ...
0
votes
0answers
15 views

onFocus exhibits weird behavior

i'm a little confused by the behavior of onFocus. i have a form with several textarea's and i want them to perform much the same as input[:text] fields, that is, when a user tabs into or clicks the ...
-2
votes
2answers
26 views

Disable (or) Prevent cursor placement in ASP Read Only textbox

In my solution, there's one ASP.NET ReadOnly textbox . When clicking on it, the blinking cursor is inserted which causes the user to believe that they can edit. Could anybody please suggest me the ...
1
vote
0answers
14 views

How to make Jqplot-cursor respond to 'touchmove' event in touch-phone using jqplot library?

Jqplot cursor works fine in a desktop. It follows the mouse, but i want to make it follow the virtual mouse in phone. The event for this would be vmouseover.Jqplot cursor by default doesn't seem to ...
0
votes
1answer
26 views

What is theForm.onsubmit()?

can someone explain this function for me. What do !theForm.onsubmit() and theForm.onsubmit() != false mean? //<![CDATA[ var theForm = document.forms['Form']; if (!theForm) { theForm = ...
0
votes
2answers
61 views

JQuery: issue with calling parent of object onClick

Having a problem with this one-page site where the idea is you click on the links and a box slides down but it also needs a close function to bring it back up. Problem is the close button is in the ...
0
votes
1answer
29 views

mouseover doesn't work when mouse doesn't move over a dynamic element

I'm trying to fire an event when the mouse touches a dynamic element on the site regardless of whether the mouse is moving or not. The problem I'm facing is that I don't manage to fire the event ...
2
votes
0answers
28 views

Trigger change of image after dropping three objects

After dropping the top three boxes onto the car, I would like to change the car image. Does anyone know a way where I can specify after all the boxes are dropped it triggers an event to change the ...
3
votes
2answers
33 views

jQuery trigger mousedown registered by addEventListener

I want to simulate fake mousedown event by jQuery trigger() method, and I register mousedown event by native javascript method - addEventListener(). And I found it can't be triggered... ...
0
votes
1answer
28 views

Trigger then handle JavaScript events?

How do I trigger then handle an event in vanilla JavaScript? What I have tried: var fireOffAnEvent = function () { // Dispatch the event. var custom_event; // The custom event that will be ...
-2
votes
2answers
27 views

How to implement a complete event system with javascript?

I'm creating a client-side dynamic blog engine. Now I need a event system to handle many actions from DOM elements and the engine. Such as the engine is loading a article,user is switching a theme... ...
-1
votes
0answers
11 views

I want to close html5lightbox popup on click on BACK (BACK is new button. it is display on the popup page)

I have a page ex. info.php info.php page shows in html5lightbox pop-up. info.php has a BACK button. when user clicks on BACK button the pop-up should close.
-1
votes
0answers
12 views

How to call two different event handlers from one form element?

How to call two different event handlers from one form element? What i want is the first event handler to be onkeypress() and second to be onblur(). <td> <input type="text" ...
0
votes
1answer
14 views

Receive events with Angular in order

I have some trouble managing events in AngularJs. In a service I dispatch events with the following line of code : $rootScope.$emit("FNH."+this.status, flowNodeHelper); In a service "S1" I receive ...
0
votes
0answers
8 views

QUnit remove dblclick event

In our web application project we can select the testscripts that need to be run in the browser UI. The scripts are loaded dynamically when clicking the 'test' button. The tests are run in the same ...
0
votes
1answer
17 views

How can I force an image link bind by JavaScript to download instead of opening in the same tab?

I use this to bind a href to a click event on a li element: $(".attachment_file", "#ADlist").each(function() { $(this).click(function() { document.location.href = ...
0
votes
0answers
29 views

Where is the mouse handling code in notch's minecraft js code?

When I look at Notch's minecraft demo here - I can drag on the viewport with my trackpad and have the perspective shift. When I look at David Nolen's ClojureScript version of the demo here - this ...
0
votes
0answers
15 views

jquery custom event, interrupt function on event

I am trying to create an event (see code below). In my example I have 2 events that are fired one before clearing a div and one after its text is updated. My question is how can I stop function from ...
0
votes
0answers
14 views

How to handle flow of different events in nested buttons of jQuery mobile listview elements?

In jQuery Mobile I have a listview with button-functionality. Inside every single list-button I have different additional buttons like in this JSBin or code: <ul data-role="listview"> ...
0
votes
2answers
25 views

onunload event of JAVASCRIPT not work in Linux Firefox

Can you help me with this problem . I am using Modzilla Firefox in Linux . When I close the window or reload the page the onunload event sees not work <html> <head> ...
0
votes
1answer
31 views

Calling jQuery callback to manipulate Meteor collection

I'm having issues discerning the fine line between client and server in my Meteor application. Basically, I'm using a tag plug-in built atop jQuery that fires onAddTag and onRemoveTag functions ...
-6
votes
1answer
86 views

Add onmousedown event to a document in pure JavaScript?

What is the difference between: $(document).mousedown( someFunction ); and... document.addEventListener('mousedown', someFunction, false);
0
votes
1answer
23 views

Omniture link tracking in Chrome and Safari

We recently upgraded to the newest version of the Omniture code, AppMeasurement 1.2.3. We're trying to use the s.tl function to record when the user clicks on different links in our site. ...
1
vote
1answer
46 views

lateral communication in Polymer

Here is the problem: Any two Polymer elements may need to communicate. No assumption is made as to where these elements might be in the DOM (or shadow DOM), this means one event cannot simply ...
2
votes
1answer
40 views

stopImmediatePropagation has different result in “document” and “p” element

when i use stopImmediatePropagation in document : document.addEventListener('click', function (e) { console.log('bubble'); }); document.addEventListener('click', function (e) { ...
1
vote
0answers
25 views

onBeforeRequest not run every time something is clicked

Update 1: Now thanks to Xan I no longer get to the start page, adding ["main_frame", "sub_frame", "script", "xmlhttprequest"]. What is still annoying is, if you reached your profile page and now ...
1
vote
1answer
37 views

JS onClick return false and jQuery global .click

I'm debuging my library in someone elses code: Part of it it's vanilla JS and my library is wirtten in jQuery. It have tabs tabber.js (code from 2006) and it have tabs onclick event attached to DOM ...
1
vote
1answer
14 views

Cancel scrolling from event on Mobile IE 11

This construct lets users draw on a html5 canvas. On other browsers such as mobile Safari and Chrome, .preventDefault() and .stopPropagation() successfully cancel any scrolling while moving the finger ...
0
votes
4answers
58 views

How do i disable the click event in jquery

I have implemented Fileupload drag and drop in jquery php using ajax posting. Im using html input file tag with id upload_btn and a div with id total for drag and drop the files. In order to remove ...
0
votes
1answer
40 views

Nokia Here hijacks window's DOMMouseScroll events

Nokia Here hijacks window's DOMMouseScroll events. I register the event like this: window.addEventListener('DOMMouseScroll', function(){console.log('mouse wheel')}, ...
1
vote
1answer
43 views

How to access textbox inside grid view of parent page in popup page?

I have a pop up page where i want to get the textbox value which is inside gridview of main page. and pupolate value in that textbox. I have tried: var Emp = ...