So, I'm developing a plugin for webpack for hot-reloading the chrome extensions. The biggest problem is, if I call a certain number of times the "chrome.runtime.reload()" this will make Chrome block the extension:      This extension relo...
I have created a bar chart in D3, on selection of radio-button bar chart is shown and I want to sort by ascending or descending order. When clicking the button it is not sorting, so I don't know what wen t wrong but any help would be appreciated:...
I have a string in JS in this format:  http\x3a\x2f\x2fwww.url.com  How can I get the decoded string out of this? I tried unescape(), string.decode but it doesn't decode this. If I display that encoded string in the browser it looks fine (http://...
When browsing through Facebook pages the header and fixed footer section remain visible between page loads AND the URL in the address bar changes accordingly. At least, that's the illusion I get.   How does Facebook achieve that technically speak...
I am documenting my code using jsdoc, so far so good, I have a comment like below  ... * @property {string}  mode -  mode of display 'video' - display video or 'audio' - play only the audio. * @property...   and it comes in html docum...
I'm drawing a WhatsApp conversation on a canvas  PROBLEM  1) I'm able to resize the rectangle that contains the text, but not accurately....this is the step 1  It depends on the number of lines this text has. I'm currently multiplying it...
I want to debug my Angular App with the new Visual Studio Code, but It seems there is a problem with Angular and Visual Studio Code..  This is my launch.json:  {     "version": "0.1.0",     // List of configurations. Add new configura...
Still trying to work Facebook login to my website. I'm trying to add the "Login using Facebook" button that you see on many sites and want to use the methods they outline here and here.  However, I don't think I'm doing this corre...
I have found that I can change series with setData, and I know I can modify Max values with .setExtremes , but I cannot figure out how to set the tooltip formatter from the chart object.  How do I update that field ? If i have a chart object , how do...
I want to use client-sessions module with my Express backend. So I've installed the module and set it up to work with Express like this:  var sessions      = require('client-sessions'); app.use(sessions({     cookieName: Constants.CLIENT_...
I don't understand why I cannot make the following code work. I want to connect with JavaScript to my server console application. And then send data to the server.  Here is the server code:      static void Main(string[] args)     {...
Imagine that I have a List of Cards on my react application. So I will have two components, the <ListCard /> and <Card />. My doubt is that where I work, when we have something like this, we usually declare a variable inside the <ListC...
I'm teaching myself JavaScript using Code Academy and I'm trying to make some simple code so that when prompt asks a question, the user reply gives a response.   example.  prompt says "what's your favourite colour?"  user says ...
I have a jQuery Dialog form and on submit I'm trying to validate the fields. I'm using jQuery Validation plugin to validate. In this I'm facing an issue, the validate function is not being called.  I'm posting some snippet of my code:...
I’m attempting to create custom error objects in Node that use Error as the prototype and then to return these errors to the client via the express res.json() method. I can create an instance of a custom error, set it’s properties but when I call...
I am trying to make a webpage that, when it starts loading, uses an Interval to start a timer.  When the page fully loads, it stops the timer,  but 99% of the time i get time measurements of 0.00 or 0.01 even if it takes longer.  Occasionally, it s...
Okay, so I am just going over some basic programming tenets in JavaScript (I am new to programming, so bear with me please). Below is the code I am having issues with (pay particular attention to the string component of the array).    var name = new...
I have a complicated background image with a lot of small regions that need rollover illustration highlights, along with additional text display and associated links for each one. The final illustration stacks several static images with transparenc...
I am using FineUploaderBasic to integrate uploading to my existing web site. The problem I have is with cancelling current uploading file. This is my code:    <div id="button" class="btn btn-large btn-primary">     <i class=&...
I have created a triangle shaped image mask with the Canvas element. I have a field of text which I want to display at the bottom line of this triangle when mouse over. I can´t figure out how to make the text display only when hovering.   I am a beg...
I have this code for create canvas image from different server urls  function getBase64Image(imageUri) {      var canvas = document.createElement("canvas");     ctx = canvas.getContext("2d");      var img = new Image();     img.src...
I'm trying to figure out how to use r.js. I keep getting errors thrown such a module path does not exist, or files getting dumped where they shouldn't be.   I've got a single page application that is integrated with wordpress. I've ad...
I don't think it matters for the purpose of this question what my exact setup is, but I just noticed this in my React and React Native apps, and suddenly realized they are not actually checking any kind of validity of the JWT that is stored.  Her...
Trying to use $interval from angular to change the currently visible item in a list using ng-show. Inspecting the html, I noticed that angular changes ng-show from true/false, but it doesn't remove the ng-hide class. The html is simple:...
I'm trying to appear a form and focus it, for some reason it only works on Chrome. How can I make it work across browsers?  <script> function SearchCity(evt){     document.getElementById('ciudad-eq').style.display='none';...
I want to create an alert box after an image is loaded, but if the image is saved in the browser cache, the .onload event will not be fired.  How do I trigger an alert when an image has been loaded regardless of whether the image has been cached or...
I have an app in ClojureScript, which uses Google's Closure Compiler as a compiler backend. The resulting bundle using advanced optimizations seems way too big for what it is. I blame the dependencies but how do I find out which modules are takin...
I'm making a simple Chrome extension to add up the length of each video in a YouTube playlist and insert the total length in the page. I've succeeded at that, but my script only works after refreshing a page but not when the site is navigat...
I have add this code to functions.php but startwordpress_scripts() function didn't run.  function startwordpress_scripts() {     wp_enqueue_style( 'bootstrap', get_template_directory_uri() . '/css/bootstrap.min.css', array(), '...
I have two Lat/long tables, 1000 rows each table. I wanted to calculate the distance between two latitude/longitude using Google Map API and store distance in DB. The code is working fine but the catch is how to return calculated distance from javasc...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.