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

Dynamically change jquery contextmenu

I'm using this jquery plugin. The instantiation of the menu looks like this:$.contextMenu({ selector:'.disposition-menu', zIndex: 120, callback: function(key, options) { var stepID =...

View Article


How to get files on one page and send them to another page?

I am creating a music streaming website like soundcloud, spotify, etc and I am wondering how to collect information on page page an upload the info to another. What I want to do is have an upload music...

View Article


Concepts for efficient delivery of "modules" / Add-Ons via JS

imagine having a browser game that can be extended via Userscripts. Now there's the Plan to create some kind of "Super-Script" that contains several smaller modules that can be enabled and disabled...

View Article

Crawl Javascript code referenced in a website

I want to crawl all Javascript codes referenced on a website: https://www.cryptokitties.co/. Of course, we can manually go to each webpage and use the inspection tool embedded like in Chrome to...

View Article

How to prevent parent click event in react native?

onParentClick = () => { console.log('Parent is triggered'); } onChildClick = (event) => { event.stopPropagation(); console.log('Child is triggered'); }<TouchableWithoutFeedback...

View Article


Trying to store input data on json file with Node.js

As I said on title I'm trying to store the inputs the user made on an HTML form using fs from node to store it on a JSON file.What I'm trying to save is a key value pair which would look like this:{...

View Article

Can't access the device camera from appmaker?

I have been able to use the device camera in Javascript as many have illustrated. I have not been able to access the device camera from Google App Maker. If it is possible, could someone share the App...

View Article

Why isn't a class being added to a loaded nav element?

this.loadTemplate = async(currentPage) => { let promise = new Promise((resolve) => { $(() => $("#nav").load("./nav.html")); $(() => $("#footer").load("./footer.html")); resolve("resolved");...

View Article


Inconsistency in javascript date with preceding zeros

When converting a date string in the format "YYYY-mm-dd" to a Date object in JavaScript, I'm seeing an inconsistency in the output that I don't understand. I get different times when a single-digit day...

View Article


Downloading pdf file from flask through react and fetch

I'm trying to download a pdf file from a flask endpoint through react and fetch.Endpoint:@main.route('/uploads', methods=['GET']) def download_file(): return send_from_directory(UPLOAD_FOLDER,...

View Article

How to add proporties to {this.props.children} after async call

I have the following React components:A QueryRenderer component to fire the async call and retrieve results (a Spinner is shown while loading, and an MessageBar in case of error)class AppQueryRenderer...

View Article

How to get value with cheerio on node js

Hello I want to ask how to get these values on cheerioIMVALUEElement/View Source:<div class="e7m mess_bodiyy"> <p style="max-width: 600px"> Hello x7907062441,<br /> <br /> This...

View Article

How to call function after an asynchronous function finishes work in node js

I'm trying to call a function after a function finish work invalue.map((val) => { const data = column.map(v=>{ return encryptData.regularDataEncrypt( val[v])}); const withcote = data.map(x =>...

View Article


React trigger KeyboardEvent

I have a PIN code field component that is just a list of inputs wrapped in a React.Fragment. Each time a key is pressed, it focuses the next input. When I reach the last input, I would like to trigger...

View Article

JavaScript simulate a mouse click not working (Chrome extension)

I'm trying to simulate a mouse click on a website's object in google chrome extension.content.js:function simulatedClickXY(target, x, y) { var event = new MouseEvent("click", { clientX: x + 5, clientY:...

View Article


Can't seem to remove extra whitespace in php or javascript

hey guys =) I'm having a small problem. I have some php code which gets a string stored in a database as favoritegamelist, and in the database, it doesn't appear to have any extra white space. However...

View Article

CORS / Cross-Site API request?

I have a URL for an API method which I do not own. I want to send a JavaScript jQuery AJAX request to it but I can see in the console reply "A cookie associated with a cross-site resource at was set...

View Article


rewriting js code from a GUI to use in webapp

I need a function to calculate an amount of frames in the user input. I have some code from a Electron GUI that does the job, but i'm unsure how to do it in my HTML. I want it to grab the input from...

View Article

How to prevent the double-click select text in Javascript

Say I have an ul (li) list in the page:<ul> <li>xxx<li> <li>xxx<li> </ul> The element li are clickable and double-clickable, they are attached with these events, and...

View Article

Issue with passing data from custom hook in react-native

I've made a custom hook and I'm trying to pass data from it to my profile screen. When i console.log from the hook I get the output, however I never receive the data in my Profile screen. I've been at...

View Article
Browsing all 139893 articles
Browse latest View live


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