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

Image may be NSFW.
Clik here to view.

Laravel 5: Display the value of my ckeditor textarea in my edit using vue js

This is my first time to apply the vue js in laravel to our project. One of my field in my add / edit is called description and it is a textarea. We implemented the ckeditor in our textarea, now I have...

View Article


Value of Select not updating when changed by modal

Currently, I have an issue where the I am using is not getting updated when the state.value passed in is set by modal. The way it works is we have a Select with a dropdown of searchable items. if they...

View Article


upload/change avatar photo using html5 / javascript and php?

i was looking at this link that allows a user to drag an image over an avatar/profile photo and they can drop the image over it which will change/upload a different image.link:...

View Article

CSS Switch toggle animation do not work when i make it appear or disappear...

I've got a problem. I use a pure css switch toggle button. here is its code : .switch { position: relative; display: inline-block; width: 40px; height: 20px; background-color: rgba(0, 0, 0, 0.25);...

View Article

Unable to change dropdown value in React child component

I have two two components:App component:class App extends Component { constructor(props) { super(props); this.state = { selectedScale: "WholeTone" }; this.handleScaleSelect =...

View Article


How to wait for api call on js export?

I have a Vue app where I initialize my firestore app. My code looks like the following:if (firebase.apps.length) { firebase.app() } else { firebase.initializeApp(config) } export const Firestore =...

View Article

Google Script Failing --- TypeError: Cannot read property "length" from...

I had a google script that was written for me and it has been working for several years, now when I try to run it I get this error "TypeError: Cannot read property "length" from undefined. (line 20,...

View Article

How do i access a large amount of data fastly from Mongodb when the results...

I have a Mongodb database with React based front-end and Node based back-end with approximately 100000 documents in the collection. I have already done indexing and I am already using Redis. I have...

View Article


is there a way to prevent multiple dots html input tag keypress event using...

numberic value worked correctly but i confused to prevent multiple dots input. is there a way to solve this issue?HTML TAG<input type="text" class="form-control num" /> javascript [work only...

View Article


Is there anyway to have a textarea "autofit" height based on the content at...

Is there anyway through CSS or Javascript set the height of the textarea based on the content? I have a hardcoded height in my CSS but i wanted it to default so there is no vertical scroll bar on page...

View Article

getAttribute function in react

How to do a similair thing in react? getAttribute function does not work. and includes() does not work on the element.attributes.name either, even though it is a string...Old code: var parser = new...

View Article

Loop over array with setInterval doesn't work

The problem is that now, loop shows only last value of array which is 'o'const h2 = document.querySelector('h2'); const title = document.querySelector('h1'); const word = ['h', 'e', 'l', 'l', 'o'];...

View Article

Animating parachute movement in threeJS?

I want to do this in Three.JS:I did downward movement, but I don't do the right-left movement.var boxGeometry = new THREE.BoxGeometry(5, 5, 5); var boxMaterial = new THREE.MeshPhongMaterial({color:...

View Article


How to get one single QR CODE of multiple textarea with different IDs?

I am just learning how to code .I want to create a QR code generator that take text in first textarea and show it in the first line after scanning QR code and same with text in textarea number two to...

View Article

CORS Request complete real-life code examples [duplicate]

This question already has an answer here:CORS with php headers 10 answersI've read a lot of contents on how to create a CORS request. I understand the concept and the rules though, but I haven't...

View Article


Counting Children in a firebase Cloud Functions

i'm learing to use firebase and i need some help. I need to take the number of children of a specific node in a Firebase Function but i can't. This is my nodeI would like to write a trigger that after...

View Article

Loop through object of dates and retrieve all the days depending on the...

I'm trying to display some days that are not in the object below along with it. I have a response of array of objects [ {date: "2019-11-7"}, {date: "2019-11-7"}, {date: "2019-11-13"}, {date:...

View Article


Pass data to html table with socket io

I have consume data from API and that data will be displayed realtime in a table using socket io, where it has a data return in the form of an object, like this the examples :"data": [ { "name":...

View Article

Adding element with the splice method

I am trying to Us the javascript splice method to add a "-" before every capital latter in my array but it is not working. I don't know what I am doing wrong. Here is my code below.function...

View Article

Apply z-index to all divs starting from the highest

I have this simple loop which adds z-index to an element in the DOM. let init = () => { let allDivs = document.querySelectorAll(".pa"); let initialIndex = 1; for (let i = 0; i < allDivs.length;...

View Article
Browsing all 138163 articles
Browse latest View live


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