Quantcast
Channel: Active questions tagged javascript - Stack Overflow
Browsing index pages (147656 articles)
↧

Next.js always fail at downloading fonts from Google Fonts

I've created a new Next.js project for the first time using create-next-app, and I've successfully run it with npm run dev.The problem is that everytime Next.js starts, it says:FetchError: request to...

View Article


Style centerPadding in slick slider

How can I style the centerPadding in the slick.js slider? I want set the opacity of the padding, but not all items in the track.$('.ourgroup-carousel').slick({ infinite: true, slidesToShow: 4,...

View Article


How do I add individual images into individual popups using the code I have...

I’ve managed to make an interactive map of Martha is Dead, with a little help from Google Gemini and GitHub Copilot for helping me add shareable URLs for markers and filters.I would now like to add...

View Article

"MongoServerError: unknown operator: $expr" when trying to use $expr in...

I have a searchQuery object with field names as keys and strings as values that I would like to use to .findMany() any document matching them in my MongoDb collection (using Node.js). However it isn't...

View Article

How To Solve React Hydration Error in Next

I keep getting an error saying "Hydration failed because the initial UI does not match what was rendered on the server."I have no idea what is causing the error so I was hoping someone else may know...

View Article


MongoDB - MongoError: connect ECONNREFUSED

I keep getting an error when trying to connect mongoDB. I know there are many questions similar to this one and I have checked all of them and haven't found a solution for my issue.Here is the exact...

View Article

JWT verification error: JsonWebTokenError: invalid algorithm

i am trying to implement a single sign on for my web application. I am using gravitee.io for the access managment and token generation.I followed the steps in gravitees quickstart tutorial and i am now...

View Article

Add custom headers to videojs player source

I have a backend api (using express) that handles a streaming video m3u8 file.http://localhost:3000/api/stream.m3u8This endpoint will only work with a proper user token....

View Article


How to get GPS location in react-native-maps?

My react-native app is using react-native-maps to display a Google Maps and a marker. A styled View is used as the location marker that has a fixed position on the device screen.How can we get the GPS...

View Article


How do I randomize the position of bezier vertices?

How do I make random bezier curves using randomized vertex positions on a canvas (above a background image)?.This is the code I'm currently using (I'm only getting a black background, no shapes are...

View Article

PHP equivalent for javascript escape/unescape

Let's say I have a string: somethingWhen I escape it in JS I get this: %73%6F%6D%65%74%68%69%6E%67so I can use this code in JS to decode it: document.write(unescape('%73%6F%6D%65%74%68%69%6E%67'));I...

View Article

jQuery Mobile orientation image

I have a strange problem with my jQuery mobile code on the devices.Example iPad2:When I start the page in the phone in portrait mode the image looks like this (it should not be shrunk like...

View Article

How can I assign the user input from a form to a outfile

I am a new and budding IT student. I recently started a class in HTML, and would like to get some feedback from you guys. My question is how can I take the information the user inputs into an HTML form...

View Article


JavaScript multiple inheritance and instanceof

Possible Duplicate:Javascript multiple inheritanceIs there a way in JavaScript to do this:Foo = function() {};Bar = function() {};Baz = function() { Foo.call(this); Bar.call(this);};Baz.prototype =...

View Article

Variable declaration methods in Javascript

I have seen the following code in a website...what does this mean?.Can i declare variables in the format variableName : value instead of variableName = value.if (!window.Node){ var Node = {...

View Article


What is the purpose of a dollar sign ($) in a JavaScript variable name?

The code in question is here: var $item = $(this).parent().parent().find('input');What is the purpose of the dollar sign in the variable name, why not just exclude it?

View Article

iPad Safari Development toolbar

Is there some kind of developer toolbar that can be used within the iPad/Safari?I am aware of the same on desktop Safari as well as I know there is a Debugger option in iPad/Safari but is there a quick...

View Article


parse json response in Loadrunner

In the loadrunner script i want to parse the json response i received and want to check whether the response is correct. For that i have the following code...

View Article

window.opener.returnValue in Chrome with showModalDialog

I am trying to use window.opener.returnValue with showModalDialog. There are numerous references to a technique which can be used to workaround window.returnValue not working. However it just doesn’t...

View Article

How do I connect my webapp to Google, Facebook, Apple, etc., so users can log...

I've created a webapp using HTML with a homescreen and log in page, where I used the form feature so users can make a username and password. However, I've realized it would probably be better to also...

View Article
Browsing index pages (147656 articles)


Latest Images