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

Image may be NSFW.
Clik here to view.

how to change the cursor on cross domain Iframe

I can't figure this out people HOW DO I DO IT its driving me insane also this is being used in a browser of mine i'm making as a chrome app demo so i need it (app demo for something which the demo is...

View Article


Can I call Yahoo Weather API from local js file? Or do I need a web server?

Yahoo Weather API now requires an OAuth1 signature. Can I do a normal AJAX GET call from a local html file to retrieve Weather data or do I have to call it from a web server? This is for a local HTML...

View Article


Javascript newdate function unexpected output

I am confused by the result of the following script and I don't understand why it is what it is:enddate = '01-02-2020'; //euro format dd-mm-yyyy datesplit = enddate.split("-"); console.log("datesplit:...

View Article

How to get Firebase Cloud Firestore data in one line that returns one value...

I am trying to get data from a firebase cloud firestore database in one line in a Text component in react native. Here is what I am trying to do:... <Text style={styles.name}>...

View Article

Using JavaScript how do I sent JSON from Razor page to Controller in MVC .NET...

I have a razor page with the following JavaScript code that gets the JSON object. From this code, how can I send the JSON object to a controller? (MVC Core.NET 3.0)I now this sounds crazy - the only...

View Article


Button Navigation with React Router

Header: I am trying to navigate to a new page from my Material UI button using the onClick method. I am confused about what to write in my handleClickSignIn function.Code snippet from my Header.tsx...

View Article

Why my dispatch is not working for button click event?

I have built a Trello clone using ReactJS, where I have 4 columns called TODO, DOING, DONE and REJECTED, where I can add a card to any column.In a file I am trying to map over card component and...

View Article

How can I control css transitions and animations with JS?

I have an image that goes from opacity 0 to 1 when a bit of text is hovered. I would like the transition to be smooth, something similar to css transition. Cant really figure out how to make this...

View Article


How do I HTTP GET a .js file and extract 'exports' variables?

I am writing a site in Laravel to complement a game written in Node. It pulls information directly from the game's .js files stored on GitHub and the plan is to use Vue to generate some nice HTML to...

View Article


Image may be NSFW.
Clik here to view.

How to extract only the year from a date string?

Is there a way to grab only the first four characters of a date string from an API in JavaScript?Back storyI am using The Movie Database, which allows me to get the exact release dates of movies. For...

View Article

Image may be NSFW.
Clik here to view.

Modify google calendar based on google spreadsheet data (prevent duplication)

I have the following spreadsheet and I want to send a reminder to the people and also add the events in the calendar. I have written the following code which works but has issues.I have activated...

View Article

How can I deploy Next js app on cpanel hosting

I am trying to deploy next js app on cPanel. I have installed node and npm on it. How can I deploy the next js app on this set up?I am getting the following error while trying to build the app on...

View Article

2D Javascript Arrays Not Returning Correct Length of "Second Dimension Arrays"

I'm trying to dynamically create a "2D" array in Javascript, but it's more of an array of arrays, obviously. Each array in the array (which I will here on call a "second dimension array") is...

View Article


Empty array is returned when attempting to access the fields in the...

I currently have the Prisma datamodel as following:type User { id: ID! @id username: String! email: String! @unique password: String friends: [Friend] @relation(name: "FriendToUser", onDelete: CASCADE)...

View Article

Image may be NSFW.
Clik here to view.

Template not showing in my Laravel 6.6 project with Vue.js

I made the basic installation from Vue.JS in my Laravel project, this is my package.json{ "private": true, "scripts": { "dev": "npm run development", "development": "cross-env NODE_ENV=development...

View Article


How to add different image slideshow in html on the same page?

From API I’m getting array of images and when requesting the API second time I’m getting another array of different images. When press the button I want to add an images array to the bootstrap gallery...

View Article

Object cloning in JavaScript

Actually this is the interview question asked by Deloitte, Question is as followsSuppose you have an object like var obj={foo:"bar"} Create a function cloneObject method to clone the object examplevar...

View Article


How to get the text node of an element?

<div class="title"> I am text node <a class="edit">Edit</a> </div> I wish to get the "I am text node", do not wish to remove the "edit" tag, and need a cross browser solution.

View Article

func.func1 is not a function how to use funcition from function?

function foo(a) { console.log(a); return a; } const fooSpy = spy(foo); fooSpy('test'); // return: test fooSpy.callCount(); // out: 1 fooSpy.calledWith('test'); // out: true...

View Article

Image may be NSFW.
Clik here to view.

Change Legends and Node to an circle image

I'm still new in D3.js , currently I had hand over with the project using D3.js.May I ask about how to change the colour Scale to image ? The Nodes and Legends is related, the Node color is based on...

View Article
Browsing all 138134 articles
Browse latest View live