The following binding worked prior to 1.9:  ko.bindingHandlers.accordion = {     init: function(element, valueAccessor) {         var options = valueAccessor() || {};         setTimeout(function() {             $(element).accordion(options);...
I am using Google Maps API V3 in javascript.  I have multiple markers that are in a close proximity to each other.  I want to make it so that when a user clicks a marker the infowindow of that marker and any markers overlapping it will open (I need t...
I have come across several methods for handling click events in jquery:  bind:  $('#mydiv').bind('click', function() {     ... });   click:  $('#mydiv').click(function() {    ... }   on:  $('mydiv').on('click',...
I have a web page. When this web page is loaded, I want to execute some JavaScript. This JavaScript uses JQuery. However, it appears that when the page is loaded, the jQuery library has not been fully loaded. Because of this, my JavaScript does not e...
I use GoogleMap v3 AutoComplete and I need to completely remove it and unbind all event listeners. My code for initializing and binding to events looks like the following:  var autocomplete = new google.maps.places.Autocomplete($("input").get...
Let's say I have the namespace,  var Namespace = {     A : function() {         alert('Hello!');     },     B : function() {         // Call A() from here, do other stuff     } }   In this namespace, I intend for A to be a helper function...
In the documentation about the new HttpClientModule included in the new version of Angular 4.3, the mechanism to intercept requests is explained very well. There is also mention of the response interceptor mechanism however I cannot find anything abo...
I have created a stacked bar chart and i have to hide first dataset's label and its box in legend which is "Total Line", Is there anyway to hide first or any dataset's label. i have read the documentation there is a filter in options...
How can I convert a string in javascript/jquery to a function?  I am trying to use a JSON parameter list to initialize a function.  However, one of the parameters is a function, which I store as a string, and I get an error when I try to use eval() t...
is possible in mongo db to select collection's documents like in SQL :  SELECT * FROM collection WHERE _id IN (1,2,3,4);   or if i have a _id array i must select one by one and then recompose the array/object of results?...
I have some code that is working, however it has a memory leak in it.   What are some good strategies for tracking memory leaks in node.js?  What steps should I follow when looking for such leaks?  How can I track the leak in my code?  Thanks...
I am using a WebSocket connection to update a candlestick chart with live data.  Creating the initial candlestick chart is relatively easy:  var candleDiv = document.getElementById('candle-chart'); var data = {     x: x, //Each of these is a...
Is it possible to refresh a page on browser size change? I use some styles that create areas on a page and if the browser is scaled down the layout break.  Perhaps I can detect the document size change with jQuery?...
In an angular 7 app, I have created a list of managers. When a user clicks on an item, a view with a populated form should be displayed where the user can then update the manager details. While my view is shown, the manager details doesn't show i...
I am looking for some way to elegantly inspect XmlHttpRequests in IE8. I wouldn't mind a plugin or an external program. I have yet to find anything that works nearly as well as Firebug.  I have already tried Julien Couvreur's bookmark debugg...
NodeJS 0.11 as well as io.js and the Node 0.12 branch all ship with native promises.  Native promises have a .then method which always executes on a future event loop cycle.   So far I've been using setImmediate to queue things to the next iterat...
Don't even know the proper terminology to explain this problem  so, imagine this scenario...  There is a form-input-component and capturing some attributes and passing it down to the markup inside  <form-input placeholder="Enter your name&...
Note: I encounter this specific problem using React Native, but I guess this goes for React in general as well.  I have a react component built using React.Component.  I don't need to set state, but I do have props. My proposed syntax was as foll...
I'm having trouble in getting the mouse position w.r.t canvas.  There are two cases:  1) If there is no div element surrounding the canvas div then I was able to get the mouse position.  2) When the canvas is wrapped in a div then offsetLeft and...
I would like to create a custom event emitter in my client-side programs. I am referencing this (sparse) documentation for EventTarget  My implementation attempt  var Emitter = function Emitter() {   EventTarget.call(this); };  Emitter.prototype = Ob...
I have 10 different urls that I want to feed into an iframe src attribute that I would also like to rotate say every 5 seconds between all the 10 urls within the iframe.  Unsure how to do this using javascript/best approach?  Sorry, should've men...
If I have an array that I want to be of fixed size N for the purpose of caching the most recent of N items, then once limit N is reached, I'll have to get rid of the oldest item while adding the newest item.  Note: I don't care if the newest...
I'd like to be able to extract frames from YouTube videos at various points within them (not just at the thumbnails), and do some processing on them. I can embed the video in my website using the iframe API, but I am struggling to find a way to c...
I am using an open source javascript library timeline.verite.co  It's a timeline library which works great on page load. But when I try to repaint the timeline on certain condition, it starts giving out weird errors  I would like to modify the in...
I have searched over the web can can't find anything to help me. I want to make the first letter of each word upper case within a variable.  So far i have tried:  toUpperCase();   And had no luck, as it uppercases all letters....
My menu looks like this . I have a worker menu which specifies the list of menu items .just the names alone.I would like to add a checkbox for selection before the menu text.I would like to add a checkbox in menu      Any help is much appreciated  &l...
I'm having trouble understanding/using the scopes for an angular UI modal.   While not immediately apparent here, I have the modules and everything set up correctly (as far as I can tell), but these code samples in particular are where I'm fi...
Trying to get tag-it to work with an ajax call.  Everything works so far. Except, I am unable to assign a tagSource via an ajax call.  In firebug, the 'data' is returning:  ["Ruby","Ruby On Rails"]   But its not showing up as...
I am working with jquery autocomplete .  I am trying following code  Html  <textarea class="search-element"></textarea>   Script  var data = [                "ActionScript",                "AppleScript",...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us Javascript

©2020 All rights reserved.