Category "javascript"

Fill PayPal order script using onOpen() function

I'm trying to implement the PayPal SDK on my site, and thought this should work: <body onload="writeOrderCode()"> The JS file with this function was load

Button onclick not Working Till Page Reload

I have A Very Small Application That add tasks to the page and save it to local storage so if i reload the page or close it everything will be at its place, the

How do I make a command in Discord bot in js that insert data in a database with Sequelize?

I'm working on a Discord bot using node.js modules and Sequelize to database, and I want to add a command that users type and the bot registers them in database

How to use react-router-dom v6 navigate in class component

I installed react-router-dom v6 and I want to use a class based component, in previous version of react-router-dom v5 this.props.history() worked for redirect p

Java returns cannont invoke ScriptEngine error

I am running Java's ScriptEngine class to run to some code. I use IntelliJ with maven dependencies when I run the code it says Cannot invoke "javax.script.Scrip

TypeError: (0 , _expressGraphql2.default) is not a function

Trying to create a server for my application using graphQL server, but keep getting the error below. I have tried debugging with similar issues on this site but

How to fix 400 error bad request in socket io?

I have a frontend application(VUE JS) I have a backend (Nest JS) Vue JS app get data from backend via websockets using vue-socket.io-extended library When Vue J

Angular ngIf condition breaking javascript logic

I have the following nested dropdown list. The child items are initially hidden and clicking on the parent toggles an "open" class to display the children. I am

React scroll with antd tabs (scrollIntoView) working for some tabs only

I'm building a multi tab chat like UI using react and antd, it looks like image below. On the left side you can see multiple tabs showing last names using antd

Access context outside render tree

I have an app in React Native that uses many context. I want to access one of them within a non rendering function e.g. : const DataContext = React.createContex

jQuery Datatable Show / hide columns dynamically

I am trying to show/hide datatable columns dynamically. For this, here I am going with the example which is given by the official datatable website. This is the

Rotate text around a pivot

I'm simply trying to rotate the text having the center of the circle as pivot. I'm not clear how rotate(degrees, cx, cy) works (https://svgjs.dev/docs/3.0/manip

React Background Image Change Animation

I'm working on a weather app with ReactJS, what i'm trying to do is have a slideshow of images for my background, the images will be full screen, fading from on

I am not able to run yarn export command even I have updated my packages.json file - A next.js related question

PS C:\Users\sujee\Desktop\Next App\panda> yarn export yarn run v1.22.18 $ next build && next export info - Checking validity of types Failed to com

How to change the font size of the bullets of an unordered list item in draftjs?

I have a rich text editor built using draftjs. I implemented the functions for changing the font size, font family, and color of the text in the editor. I also

Can't use dotenv with ES6 modules

I am moving an Express app across from CommonJS require syntax to the ES6 module import syntax. This is fine until I try and use dotenv to load my environment v

How do I set the border-weight of an Inline Image in app script?

How do I set the border-weight of an InlineImage in app script? The reference pages only show how to change the border width for a cell in table,

Is there any way in JavaScript, to convert image source url to file such that it can be accepted in input of type file or by API endpoint?

It's easy to change file type input to image source url for preview.. but.. Considering a scenario where you're trying to edit a blog, so you fetch a blog and f

How to make Intellisense Quick Info for JavaScript and CSS files to appear in Visual Studio 2017?

In Microsoft Visual Studio Professional 2017, when I edit a JavaScript or CSS file, the Intellisense Quick Info for Members, Objects and other keywords don't ap

getTokenIdMetadata function in Moralis is not showing anything on HTML card MUI. How do I fix it?

I am trying to use getTokenIdMetadata from Moralis to get detailed information about an NFT. So far, I am able to get the data as you can see below in the json