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

I am getting Unhandled Rejection (TypeError): Cannot read property 'temp' of...

I am trying to build a weather app usind the open weather api https://openweathermap.org/guide and i am getting this error when clicking the get weather button. This is my main app.js renamed to...

View Article


Google AdSense throwing error - Only one 'enable page level ads allowed per...

I built a WordPress site (Newspaper template) and wanted to add Google AdSense. After approval I added the code, but it gives me the error listed below:Uncaught M {message: "adsbygoogle.push() error:...

View Article


How to merge multiple CSV files into single file which are under different...

I have just started Google Application Script. I have a folder which has different sub folders and every sub folder contains atleast one csv file. Now i want to extract all of those files from these...

View Article

Send POST data using XMLHttpRequest

I'd like to send some data using an XMLHttpRequest in JavaScript.Say I have the following form in HTML:<form name="inputform" action="somewhere" method="post"> <input type="hidden"...

View Article

javascript validate allows submit even if there an error

I have HTML form with javascript validation but whenever i submit the form error message appear even if the form fields are correct(not empty or null)I want the error message to appear only when form...

View Article


Image may be NSFW.
Clik here to view.

JavaScript: Difference between toString and toString()

I'm struggling to understand this JavaScript behaviour (javascript n00b alert!!!). Source of the question is a typo in my code which led to the undesired situation. What I wanted to know is the length...

View Article

How can I create nested fullpagejs structure?

I want to create a nested structure using fullpagejs. When it comes to b it has to slide its contents one by one. But as you can see when it comes to b, it skips 2 content. I can't find anything about...

View Article

How to observe DOM element position changes

I need to observe a DOM element position as I need to show a popup panel relative to it (but not in the same container) and the panel should follow the element. How I should implement such logic?Here...

View Article


How to add dynamically the values to a PostgreSQL query based on columns lenght

I'm building a helper in my NodeJS API where dynamically the quey can be built based on client inputs. The quey right now works in this way:insertOne(table, columns, params) { return query( `INSERT...

View Article


Image may be NSFW.
Clik here to view.

if return data is null alert ajax success

How to show can alert message in the ajax return request if the return request does not contain any data !!!i have tried in the ajax success but nothing is working!This is my script ---<script>...

View Article

How to create a button with the app.setTimeOut function?

Good night, I would need help creating a valid button for the function:app.setTimeOut(myFunction(),3000);if you could lend me a hand I would really appreciate it, thanks

View Article

User Security on Firebase w/ React [duplicate]

So recently I have been really getting into using Firebase with React to develop a side project. I want to be able to write additional user data (such as user type) within the Firestore side. To do...

View Article

Text var to json array

I'm trying to configure header bidding with prebid. I'm loading the ads that I want from database with php + mysql and I create a text variables in javascript with the data from php.The problem comes...

View Article


TypeError: Object(...) is not a function in react-fontawesome

Hellor there, I am working with react-fontawesome and webpack 4.33 version and I have this issue when I use a IconComponent it throws me an error TypeError: Object(...) is not a function.It seems that...

View Article

remove duplication from jQuery array

I have a page that can have the same article twice or more in it i have an ajax search in this page ,when i do the search with the name of article it shows twice if there is two of it in this page , so...

View Article


Javascript 'click' button only works once than have to refresh page

so Im working on this interactive Grid and have it set up so when I clicked a button the grids divs change background color according to the button chosen. My issue is that I can only click each button...

View Article

Edit data InputBox, Html, JavaScript

given that they are in the beginning in using the "html" interface and the Js language.... I'd have a little problem to solve..... I tried to take a look at the sequence of control characters...

View Article


How do I change data of component according to property passed to this component

I am trying to create a table component in vue which will change order according to a property passed to this component :sort: { type: String, default: "desc", description: "Table data order" } if I...

View Article

Image may be NSFW.
Clik here to view.

Detect a frame with squares in corners with OpenCV.js

I have been playing with creating a filled form scanner with Javascript and OpenCV.js. What I basically want to do is to take a photo of a piece of paper with a filled form on it and be able to scan...

View Article

Onscroll toggle failing to add or remove class

I am fairly new to js but I am trying to get this to fire so that my nav div will stick to the top of the screen I am not sure if my window on scroll function is firing correctly....

View Article
Browsing all 140101 articles
Browse latest View live


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