How to make a jquery datePicker button image unclickable

I have a jquery UI datePicker in my page. I have a text box on which the date is displayed. The code is: $("#cal").datepicker({ minDate: new Date(), defaultDate: new Date(), ...

Generate a Hash from string in Javascript

I need to convert strings to some form of hash. Is this possible in JavaScript? I'm not utilizing a server-side language so I can't do it that way.

Backbone.js highlighting broken with a lot of data on the page

I am using Backbone.js in an application. I am associating segments to urls. So a segment can contain many urls and a given url can be in any segment. There is a url pane and a segment pane. The...

Is there any way to pause a HTTP request using chrome.webRequest without locking the entire browser?

I'd like to display headers intercepted with chrome.webRequest.onBeforeSendHeaders to the user for editing, preferably using chrome.tabs.executeScript. However, chrome.tabs.executeScript is...

javascript jquery preview image before upload

Refs: https://stackoverflow.com/questions/6870943/how-to-preview-a-image-before-upload-using-javascript-or-jquery https://stackoverflow.com/questions/5594099/javascript-image-preview-before-upload ...

Renaming object keys recursively

I have a recursive function to rename the key names of an object but I'm unable to figure out how to rename 2 of the keys (problem keys are objects) I think the problem is where I'm checking for...

Web Api giving error: 500 internal server error

Scenario: I have an ASP WebAPI service that accept email id to retrieve the previous password. But I am having a problem that If I enter a valid email Id "Internal server error 500" is thrown but...

Streaming microphone through sockets using socket IO and Node JS

I am making an application where I want the user to use their mic (on their phone) and be able to talk to each other in the game lobby. However, this has proven to be more than difficult. I am...

window.open opening new tab instead of new window in IE 11

I have an ASP.NET application which uses window.open. It opens a tab instead of a new window. This happens in IE 11. In IE 8 it works fine. Since we are moving to IE 11 we want this to work on IE...

.getTime() Alternative without milliseconds

Is there a way to use the Date().getTime() function without getting the time in milliseconds? If not is there a substitute for .getTime() which will only give me the precision in minutes? Also I'm...

Can a website detect when you are using Selenium with chromedriver?

I've been testing out Selenium with Chromedriver and I noticed that some pages can detect that you're using Selenium even though there's no automation at all. Even when I'm just browsing manually...

How to get response from S3 getObject in Node.js?

In a Node.js project I am attempting to get data back from S3. When I use getSignedURL, everything works: aws.getSignedUrl('getObject', params, function(err, url){ console.log(url); }); My...

Google picker upload

I am trying to make a picker of Google drive that let me to upload new local files to Google Drive. The picker is working and it is showing me my Google Drive files, but there's only the select...

Cannot read property 'style' of undefined -- Uncaught Type Error

I would like to change the color, fontsize and font weight of the text in a span element of the html page. I am using the following code: if(window.location.href.indexOf("test") > -1){ var...

What does a + before a string means in javascript

There is a line of code in angular2. this.id = +this.route.snapshot.params['id']; What is the "+" means before "this.route.snapshot.params['id']"? I also see "+" added before a folder name such...

Arrays - Javascript - filter array of objects using input search

I am trying to filter a list using react, but surprisingly, for such a common task, cannot find anything online to help me achieve this. I have an array of users which I then want to filter...

time scatter plot w/ chart.js

I'm trying to render a scatter plot in chart.js of (x,y) data where x is a date string. I've seen many examples and tutorials online where the instructor uses a function to generate the time...

Javascript limit the number of digits displayed

Hi I'm struggling to find the right JavaScript code for the following problem. What I'm trying to do is convert metres in to miles, which I have done successfully, the issue is I only want to show...

Pass C# Data Result to JavaScript Variable

I need to pass the SQL results from below to Javascript in ASP.Net? I've tried to declare the two fields in JS but can't get it right. How do I get the results in JS? var Description =...

How do you convert a hexadecimal of type string to number in JS?

Let's say I have a hexadecimal, for example "0xdc", how do I convert this hexadecimal string to a hexadecimal Number type in JS? Literally just losing the quotes. The Number() constructor and...

When does bind and unbind called in custom directives of Vue and how are they related to life-cycle functions (mounted / destroyed)

Say, I created a custom directive to handle window resize event and I wrote Vue.directive('resize', { bind(el, binding, vnode) { el.resizeEvent = function() { ...

almostIncreasingSequence - Javascript

Hi guys I'm using Codefights concurrently while I learn algorithims & data structures and I cant seem to solve this problem. Given a sequence of integers as an array, determine whether it is...

setSinkId does not exist on HTMLMediaElement

I'm creating a WebRTC application using Angular and I'm trying to control audio out using the setSinkId() method found on the HTMLMediaElement. Upon trying to call this method I am told it is not...

cy.wait() timed out waiting 5000ms for the 1st request to the route

I am new to Cypress and i am checking HTML page. I need to test the login authentication and to log XHR body. So, I wrote a test like : describe('Login test', function () { it("Test...

Vuejs equivalent of jquery-cron

does anybody know an equivalent of jquery-cron (https://github.com/shawnchin/jquery-cron) with similar, very simple, text/select interface? I have seen vue-cron and point-vue-cron but they are too...

Deno and Docker how to listen for the SIGTERM signal and close the server

I'm trying to find a way to listen in Deno for the Docker SIGTERM signal to close my Oak server. I got this code from Oak website and it works fine when I call the controller.abort() function,...

Redux Toolkit: state showing as Proxy / undefined within reducer

Solved it, thanks! - For anyone interested, I was trying to access state.tasks.data within the reducer however due to scope, I could access it via state.data as I was already within the tasks...

ModuleNotFoundError: Module not found: Error: Can't resolve '../components/charts/be.js' in '/vercel/workpath0/my-app/pages'

I have stumbled in deploying my next.js app through vercel. It works completely well in local using command 'npm run dev'. But when I tried to deploy it through vercel with Github remote...

How to properly pass headers when using SWR?

I have decided to attempt to move majority of my API function to SWR as it simply allows me to do so much more! Problem However, I am having a huge issue where I cannot figure out how to properly...

How do I get details of a veracode vulnerability report?

How do I get details of a veracode vulnerability report? I'm a maintainer of a popular JS library, Ramda, and we've recently received a report that the library is subject to a prototype pollution...

Relevant tags