Quantcast
Channel: Active questions tagged javascript - Stack Overflow
Browsing all 138192 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Moving Icon Towards Right in Drawer Navigator Toolbar

I am editing Material UI's drawer navigator example code. I added a notification icon and a checkout icon with the Admin Panel typography within the toolbar. The checkout icon is towards the right end...

View Article


Reservation/booking system node js

does anyone have any recommended JavaScript APIs that can be used for booking things like tables at a restaurant or seats at a movie theater?

View Article


Blob request in different language

Im trying to use a private API and i have a problem im unable to solve. The JavaScript code im trying to recreate is XMLHttpRequest.send(blob); Blob has the type: "image/jpeg" and a size. The blob is...

View Article

Image may be NSFW.
Clik here to view.

dc.js - Chart not rendering (single row bar chart - horizontal row), with the...

ScenarioI want to see my dc.js horizontal row stacked bar chart (single row chart), but to chart appears, except for legend with names, axes with tick marks which do appear. ScreenshotData set below in...

View Article

Is there any solution to get the username from Database using javascipt?

I am trying to get the username from the database and verify it to the input value when submiting on button click, I have created this function but it is not workingfunction validate() { var attempt =...

View Article


crypto-js wrong des-ecb decoding

I need to decrypt base64 string using base64 key with ECB mode and Iso10126 padding using DES. In theory it is simple:const decryptedKeyDes = CryptoJS.DES.decrypt( encryptedData, // QAKH7qnKxZTIta......

View Article

Regex / JavaScript: Split string to separate lines by max characters per line...

This is similar question to How to split a string at every n characters or to nearest previous space, however, on the contrary to what I was expecting based on the title, that solution does not work if...

View Article

Removing duplicates while adding their values in an array [duplicate]

Lets say we have an array also with empty stringsconst arr = [ { value: 1, name: "king" }, { value: 2, name: "master" }, { value: 10, name: "lisa" }, { value: 4, name: "lisa" }, { value: 5, name: "jim"...

View Article


Concat/merge each javascript file in dir with a main file using webpack

I have a folder structure like following:/js /src /main.js /cases /default.js /case1.js /case2.js My goal is to concat all files in "cases" folder with the main.js.Ex. default.js + main.js >...

View Article


How to load images one by one

I have a manga website reader. What i want to do is add a javascript to apply the following rule: don't load image number i until image number i-1 is loaded. That means images will be loaded...

View Article

Changing color of image in fabric.js

Recently I started exploring fabric.js. I want to change the color of an image by selecting a color from color picker. I started by this example. Exploring the documentation of fabric.js I deduced (I...

View Article

onchange function for multiple drop down in not working properly

function subcategory(val) { var value = $('#category_id').val(); //alert(value); var dropdown = ''; $.ajax({ type: "POST", url: "<?=base_url()?>missed_call_campaign/subcategory_checkbox", data:...

View Article

Getting black diamond question mark while reading csv file in node js

I have a csv file with text as: The right curly single quote mark is ’ and right curly double quote mark is ”.I am getting text as: The right curly single quote mark is � and right curly double quote...

View Article


Is it possible to send a JS code to a website from terminal?

I have coded a javascript code that does some stuff in website http://example.com. Now, I would not like to open the console in the webpage every time and paste my JS code there and then execute it. Is...

View Article

Accessing component's "key" prop

I want to update the Counter component to take onIncrement and onDecrement callbacks as props and ensure they update the counter’s values independently. Each callback should takes a single integer as...

View Article


jQuery add class based on parent URL

on my homepage, I currently have a jQuery that adds a class (in this case an underline) to the link element. This works great and is based on comparing the url (url/firstsubmenu) in the browser with...

View Article

How to restrict user to type 10 digit numbers in input element?

I want to create a input field for phone number. I am creating input field using JavaScript dynamically.<input type="text" id="phone" name="phone"> How to restrict users to type only 10 digit...

View Article


Functional Search Bar in TypeScript

I have created a material ui search bar front-end but for now I am unable to type anything into it. How could I fix this?const userSearchPage = () => ( <div>...

View Article

changing inner array object value with outer array value with map

I'm new to full-stack development, specifically to java-script and functional programming. Using high-order function (like map, filter and so) I need to change inner object array values into the outer...

View Article

The 'for' loop only prints the first element of my array

I have a problem that I want to go through an array with a for loop, but for some reason the loop doesn't go through it and just prints the first element of the array everywhere.Here is my array with...

View Article
Browsing all 138192 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>