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

Image may be NSFW.
Clik here to view.

Apply styles to parent document from child document [duplicate]

I have a script of chat widget application and want to apply styles to parents documents body from child document(chat widget application). So if you look in the image I want to apply styles to parents...

View Article


Convert NaN to 0 in javascript

Is there a way to convert NaN values to 0 without an if statement:if (isNaN(a)) a = 0; It is very annoying to check my variables every time.

View Article


How to receive information from a form and submit with jQuery and AJAX

I'm currently stuck on how to retrieve information from a form and submit it using jQueryI thought using serialize() would work but it doesn't place the info where I need it. Here is the API structure...

View Article

Image may be NSFW.
Clik here to view.

How do you make the fields read-only in a Django form when a specific...

Based on the following image, I am trying to make the fields category and current points non-editable when the status of the task is Finalized or Cancelled, otherwise the fields should be editable....

View Article

Why does the reconnect function not trigger on manual reconnect Socket.IO

When the node server disconnects the client using socket.disconnect(true); I manually open the connection again on the client side using socket.open().The problem is that when the socket.open() is...

View Article


How to refactor and call a refactored hook properly?

I'm currently using Apollo's React hooks for GraphQL authentication. I want to refactor a mutation so that I can use for all different logins like Google, Facebook, Twitter OAuth, etc. import {...

View Article

Button> random image> if new image-special>remove previous in paragraph2 and...

The title might sound a bit confusing since I tried to make it as short and simple as possible but this is hard to do since the problem is not that simple. I am currently making a website using...

View Article

Image may be NSFW.
Clik here to view.

ClickTale like implementation on Google Analytics

I would like to implement something like this in Google Analytic or any JavaScript The Time Report reveals how long visitors interact with each individual field and with the entire online form. A long...

View Article


How to pass js variable with ajax to django?

I'm passing an array in json format with ajax to my django views. I receive status 200 so the POST has been made. The problem is when i try to display the data passed in another template. I receive...

View Article


Unable to redirect to reset password link without being logged

I'm new to react router and implementing a log in system, however, since i didn't build the whole app i'm not quite sure why all the Routes redirect to /#/ if the user is not logged in.. I'm using...

View Article

Google sheet / javascript not evaluating dates as expected

I have a PHP script that records a timestamp in a Google Sheet. When I tried to see if this timestamp is between two other timestamps that I have entered manually into the same sheet, I discovered some...

View Article

Updating page content except one div using Ajax

I am trying to make a website that loads all pages using AJAX. Here's a simple piece of JS that does that:$.ajax({ url: url, type: 'GET', success: function(html) { document.open();...

View Article

Convert plain li texts to clickable links with pure javascript, randomly

I have a dynamic list of things. How to select only 3 items (that has 2 words or less) randomly, and convert it to clickable links. So everytimes the page is reloaded, random 3 links are created. Im...

View Article


Seemingly odd JSON.parse behaviour in node with double backslashes

A colleague was attempting to parse a json string generated in another system and ran into behavior we were not able to explain. I've replicated the problem with a very small code example here://...

View Article

Merge Results from Two GET Requests into Single Iterable Object in Angular 8/...

I'm using a forkJoin to get results from two separate endpoints. I can iterate on results[0] and results[1] however, I cannot go a level down to the values. IE: I cannot do results[0].amiiboId it...

View Article


when I use "useCallback " I get a TypeError error

I have const experience that creates 6 experiences with there popover. I am supposed to add useCallback to it but when I go I get and error.This is my component experienceimport React, { memo,...

View Article

Firebase call does not update value

I'm having a problem on updating a value in firebase. Here is the scenario and code: I'm running a forEach loop on some data, about 300 records. I update state locally and in the callback I have a...

View Article


How-to display a .gif as background image?

I have a javascript "loading" function like this:function splashScreen() { var div = document.createElement('div'); div.appendChild(document.createTextNode("some text")); div.style.position = "fixed";...

View Article

Objects naming style on GeoGebra

GeoGebra developers/programmers: Please, which method or style do you use to naming the GeoGebra objects, so you can to differentiate these of the JavaScript variables?

View Article

Shopify getJSON('/cart.js') custom values of liquids

Good time of day. Trying to improve the pop-up cart was stuck on the possibility of using custom values instead of existing ones. This example works as expected:$.getJSON('/cart.js').then(...

View Article
Browsing all 140734 articles
Browse latest View live


Latest Images

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