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

Desktop applications only support the oauth_callback value...

I'm trying to authenticate with OAuth on NodeJS and I'm getting this error: Error getting OAuth request token : { statusCode: 401, data: '\n\n Desktop applications only support the oauth_callback value...

View Article


Javascript: Start setTimeout() only if it hasn't been set already

I have a vibrate function that I want to execute every 3 seconds or so until a button is clicked My way of trying to do this is by having a loop that executes until a condition is false, when the...

View Article


jQuery fadeOut works, fadeIn no error, no change, similarly fadeToggle...

This is driving me batty... this works fine:<div id="box"> <img src="/images/wpgen_box1.jpg"> </div> <script type="text/javascript"> jQuery(document).ready(function(){...

View Article

Named capturing groups in JavaScript regex?

As far as I know there is no such thing as named capturing groups in JavaScript. What is the alternative way to get similar functionality?

View Article

For loop - count, wait with counter, keep counting

The for loop is to go through all elements and call another function.Example: The for loop should call the function 5 times, then wait 20 seconds and then call the next 5 elements. Until all elements...

View Article


How to deal with multiple errors in js

I want to know how can I get multiple errors in js/jQuery. for example:window.onerror = function(error) { console.log(error); }; The code above gets only the first error that happens in the browser,...

View Article

Event Gravity Forms

I'm trying to send a target to Yandex.Metric on successful submission of Gravity Forms form.For Contact Form 7, the code for such a target submission looks like this (and it works correctly):<script...

View Article

Javascript get element by id from a table cell not working

I have a HTML table. In this table I have links in last column (with id="delete_row"). I am trying to extract each link and it is not working. I have seen some posts about it and learned it might be a...

View Article


Js how to add time counter onclick event

I'm using a custom video player with html5. I already got the video lenght contained in custom fields, so it's easy for me to stamp the duration on the player screen.I just need now to stamp a 00:00:00...

View Article


React.js - How to execute function in parent with arguments from child

The question is probably rather unclear, but i did not how to formulate it, maybe that was the reason why i was not able to find solution to this puzzle i have. anyway, here is an example of what i...

View Article

Is there anything faster than setTimeout and requestAnimationFrame?

(I need a process.nextTick equivalent on browser.)I'm trying to get the most out of javascript performance so I made a simple counter ... In a second I make continuous calls to a function that just...

View Article

ReactJS best way to update the state with asynchronous setState

I started working with reactjs recently and I know setState() is asynchronous, but if I have the following code below:// the state is an object const [addressState, setAddress] = useState({...

View Article

Want to send profile id while sending massage ($_GET) vai ajax post method

original id session id...(sender id ) & i want to send profile id.... (receiver id ) store is $_GET['profileid'] but can I need to pass the id in ajax, i have something liI need to pass the id in...

View Article


AJAX can't be handled by chrome.runtime.onMessage

I'm working on a chrome extension, trying to send data to API. While the server respond as expected, I find the chrome.runtime.onMessage method can't send response back to the corresponding...

View Article

Merging 2 filter functions with one If Else statement

I tried number of different combinations put 2 hours of attempts got me nowhere. How can I merge the 2 filter functions in one if .. else .. statement? $('.app-layout .app-co .badge')...

View Article


what is wrong when I define this variable? [duplicate]

This question already has an answer here:Why does jQuery or a DOM method such as getElementById not find the element? 8 answersI have a question when writing js. I define a toys variable in the...

View Article

how to access react inline styling from javascript

I am repurposing an array of react components and I want to change the inline styles that they get generated with. How do I, for instance, console.log the inline styles of a react component?EDIT: code...

View Article


using twitter api to get token

I am trying to use the twitter api, but need to get authentication. There are 2 types , and I only need Application-only authentication aka app only. This is the type of authentication where an...

View Article

Aurelia Build Bundle Locations in HTML File

I'm using Aurelia CLI (v1.2.0) with webpack (v4.41.0). Running the command au build --env prod works well and all necessary files are placed in a dist folder relative to the project's root as expected....

View Article

How to configure websocket?

On the local server, these settings workCHAT_WS_SERVER_HOST = '0.0.0.0' CHAT_WS_SERVER_PORT = 3000 CHAT_WS_SERVER_PROTOCOL = 'ws'And the chat is working fine, but on Heroku there is an...

View Article
Browsing all 138134 articles
Browse latest View live


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