Category "javascript"

React native expo web page refresh from chrome browser

ima having a react native web app and when i refresh the page from browser, it navigates to my apps homepage. is there any way that could fix that issue. it ha

React native expo web page refresh from chrome browser

ima having a react native web app and when i refresh the page from browser, it navigates to my apps homepage. is there any way that could fix that issue. it ha

"SyntaxError: Unexpected token < in JSON at position 0"

In a React app component which handles Facebook-like content feeds, I am running into an error: Feed.js:94 undefined "parsererror" "SyntaxError: Unexpected

How would you create a button to format text in a <div> with JS?

I'm trying to make a basic text editor in HTML. I've got an editable div tag so far, and by using keyboard shortcuts, you can format it. However, I want it so t

Hovering over Morris Chart is not working as expected

Hovering is not working for my chart, any suggestions as to what it could be? This is a django template with the Morris Chart within. I've got Morris Chart work

Factory Function JS

Hello, Can someone please explain me this const {r,g,b} = this; Why it has no variable name, if 'this' is the variable name, to what that 'this' pointing to? f

How can I render only once an Alert component in react native?

How can I render only one time an Alert component in react native if my dashboardScreen is being render many times? I'm using Context api, if I dispatch an acti

React native - undefined is not an object (evaluating '_bip.default.generateMnemonic')

I'm building a mobile application and I need to generate a passphrase using bip39. At first, when I installed the package from npm I got missing dependencies er

How can I add animation to Bootstrap dropdowns?

How can I add animation to the dropdown? I assume by modifying popperConfig, but how? At the moment dropdown-menu has a generated inline style, e.g. position: a

JQuery - $ is not defined

I have a simple jquery click event <script type="text/javascript"> $(function() { $('#post').click(function() { alert("test");

Why does fetching a gzipped file not work in localhost (with Javascript)?

I am utterly confused by gzipping ... Situation: I have a json-file with 2mb that I'd like to gzip. It should work on the basic, cheap FTP server that my client

More complicated looping flowchart with rays/branches in Mermaid.js

I am having a problem getting a more complicated flowchart using Mermaid.js library. I would like to have something like this: A --> B --> C ^ | |

search filter in react js

this code is working very well but if a person search a doctor using doctor name this time if any doctor name are not match with this input name this time I wan

Handle movement after collision is detected

I'm making a small platformer in js and I'm having trouble with the collisions. Unfortunately it seems that 90% of the info online is detecting the collisions,

How do I check that a number is float or integer?

How to find that a number is float or integer? 1.25 --> float 1 --> integer 0 --> integer 0.25 --> float

Why my scrollMagic is not working properly?

So basically I have problem wherein I try to make animation in my scroll animation using scrollMagic..My codes are written in reactjs but I don't know why it is

My implementation of Breadth First Search with forEach doesn't work

Here is my code inside a BinarySearchTree class. I don't know if it is because of the behaviour of forEach, or because somewhere in my code is wrong. class Bina

Save react-pdf rendered file to state for sending it to server?

im using react-pdf library i managed to save file localy but now i would also need to save it on server since i am required to do a history display of all the f

Is it possible to use amCharts5: Simple Pie Chart, but not with percentages?

I started using this library, and I liked it. I was wondering if anyone had the need for instead of showing the data in percentage, to show the real data withou

Connect to MetaMask via chrome extension

I am making a chrome extension that requires MetaMask authentication. I started developing it as a web application, but as a chrome extension, it doesn't detect