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

how to clear JavaScript variable value after few minutes / seconds / times

I have set a value in JavaScript local variable which is given below: document.getElementById("class").value = getSavedValue("class"); // set the value to this input...

View Article


Image may be NSFW.
Clik here to view.

How do I disable the sign up link for the aws amplify vue authenticator?

I'm using the amplify-authenticator component from the aws-amplify-vue library to enable authentication for my app. I'm trying to figure out how to disable the "Create Account" link on the front end...

View Article


Run python script with args in javascript with exec

I have inputs such as latitude, longitude and frequency. I would like to run this command on a JS file :exec(`python test.py...

View Article

Trying to create a callback function to get ID's of 3 different img elements...

I'm trying to create a callback function that will retrieve the specific id from 1 of 3 different clicked images. The images correlate to either rock, paper, or scissors. I want to be able to grab the...

View Article

Trying to write function that takes a data object, accesses a property,...

I have a React component that's receiving a data object returned from an API response.I'm trying to write a function that accepts a field from that data response, checks an element inside of that field...

View Article


How can i extract values from promise and send them to client via node.js...

I have a promise that returns data and I want to pass values of the promise as a response to client(web browser). I know i should probably use asynchronous js, but I'm not sure how to do that. Could...

View Article

Why is my unfinished javascript game crashing after the 3rd death?

// Commented because does not work in Sandbox // window.localStorage; //Ignore this line // Where all my variables have been assigned var c = document.getElementById("GameScreen"); var ctx =...

View Article

How to set Vuetify Navigation Drawer always on top of all other app components

I'd like to know how I could do this.With some components it appears to be on top, but then other components, such like a Leaflet (Map) component, they overlaps my SideDrawer so I can't use it...

View Article


Want to render react components with data in server side inside an existing...

I have an existing .net core MVC (Which also includes CMS) App which renders all the html in the server-side and return it to the clients or browsers. Right now I am trying to build widgets in react...

View Article


Why does this function throw an error when using the includes method?

I'm having trouble figuring out why this function throws an error when it reaches the 'includes' method, when console logging whitelist, it shows that it is an array, when i use the includes method, it...

View Article

Method should wait until window.open close

Am developing application in JSF. I have created t:commandlink that calls JavaScript method in onclick event, I have an action in same t:commandlink. That will trigger once onclick event complete....

View Article

How to remove Header in functional component React Native

I'm setting up a navigation in react-native using only functional component. How do i remove the header on the Screen?const AppScreen = ({ navigation }) => { //Desc => removing header...

View Article

Javascript find index of word in string (not part of word)

I am currently using str.indexOf("word") to find a word in a string. But the problem is that it is also returning parts of other words.Example: "I went to the foobar and ordered foo." I want the first...

View Article


How do I make Google AppsScript work on a form?

I'm writing a script in Google AppScript where I'm intending to take an uploaded photo on a Google Form, changing it's name to the email address of the person who uploaded the form (which they entered...

View Article

Converting code from functional React hooks to class components

I'm currently trying to convert some hooks over to being inside class components in React. I'm attempting to recreate the code that allows for session storage so that the app doesn't need to fetch from...

View Article


DOMContentLoaded not firing after navigation but fires on page reload when...

I'm working with a Rails 6 rc1 project with React and Webpacker.I'm currently using javascript_pack_tag to render React components in my Rails app. I'm trying not to use a gem like react-rails just to...

View Article

Duplicate Function Implementation

I have one file, app.ts under my scripts folder, that gets copied to wwwroot/scripts by a gulp task. After the gulp task runs, I now also have a wwwroot/scripts/app.ts file, in which the sole function...

View Article


how can I post data into an array of objects in react with an input? using...

I've 2 inputs and i want to post data in my api. how can I do with hooks? I can post information of a single fields, but not in an array of objectsthese are my inputs:<TextField name="material"...

View Article

add attribute to all documents in a collection, with same data of another...

I've seen this question and it could be useful, but I need some extra steps.I have a collection of Sites filled with name, data and a field called infoBox that is an object.infoBox: { coordX: { type:...

View Article

Reverse engineer graphql query from network tab in safari/chrome

I'm trying to reverse engineer a query that a website fires to a graphQL endpoint, which I can see in the network tab of Safari/Chrome. I know the graphq schema, and can see the full request, which...

View Article
Browsing all 138134 articles
Browse latest View live


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