Category "javascript"

How do I make the user go to a new page (with the post description) when an individual post is clicked?

example posts on my site I have a list of posts on my homepage, and when a user clicks on it, I want to show the detailed post (on a new page). I am not looking

react and react-dom not working, please help out

I do not know why react and react-dom isn't working with my code. you can see the color of the react and react-dom text isn't even bright/clear what can be the

html5-qrcode Reverse Camera Scanner Video

I am using a JavaScript library for scanning QR Code namely html5-qrcode (https://github.com/mebjas/html5-qrcode). By using it, I can scan QR Code directly from

The forEach is undefined in a Javascript Class Method

I are have a problem into my code. After many attempts in search for solutions I decided to get help from the stackoverflow community I have created a Javascrip

Problem of instance v-show - Nuxt js menu

I am trying to do a simple menu for mobile, but I didn't solve a problem of instance of vue My component nuxt Menu : <template> <header id="menu" c

Fetch and display uncompressed pixel values in web browser

Suppose I have get json data like this from an HTTP server: { "width":1234, "height":356, "channels":"rgba", "sample_type":"uint8", "in

How can I obtain an object with the values as keys and vice versa - and with duplicate values stored in an array?

1. My task In the object, how can I get an array in which the corresponding keys are stored if there are duplicate values in the input object? const object5 = {

Get function inside default export function

I have function inside user.js with default export like this export default { var getListFriends = async (accessToken) =>{ } ....other function ret

Why my customize cursor keep blinking in react

I have problem with my customize cursor and this has been in a month but now I created it again and still wasn't solve it still. I'll direct how it will works.

Is the function binded to the button always executed or did I make a mistake?

So I have this PHP page, with at the start some unimportant stuff and a session opening : <?php session_start(); ?> I want the disconnect button to a

How do I manipulate data based on another data in Redux Toolkit (React)?

const { data, isLoading } = useGetDataQuery({ skip: !dependency } ); const { data2, isLoading2 } = useGetData2Query({ skip: !data } ); const { data3, isLoadin

How can I show tooltip info for 4 seconds on page load and then hide, then after show on hover?

I am using react-bootstrap version 0.32.4, I can't update the version, that will bring up many changes. I want to have a tooltip info showing for 4 seconds on p

JS Change the cursor for an image stored in a variable

Is it possible to change the cursor with a customized image stored in a variable? I have tried setAttribute or .style.cursor, but it does not seems to work.. He

How to upload images on node js?

I am having issues getting any image data on the form in the ejs file after submitting. Upon debugging, there is a req.body.image which has the filename but req

Stop function from functioning

So I'm modifying a webpage, it has a button, it is coded so mouseup goes to a link, I want to change this, adding mouseup functions don't work; mousedown works

how to reset input fild without empty string in react.js

How can I reset the input field if I use it this way? const [email, setEmail] = useState({ email: "", emailError: "" }); const handleEmail = (inputEmail

Web based Timer application using window.setInterval method in JavaScript does not work as expected on mobile browser (Chrome, Firefox etc.)

Web-based timer application using window.setInterval method in JavaScript does not work as expected in the mobile browser. The reason behind this is that after

How to run a custom element's constructor after it has all of its required attributes?

I'm trying to create a custom element "color-box" that will need an attribute named "color" to identify the box's color. So for example, <color-box color="gr

Common functions are not executed in Nuxt.js store

Assumption I wanted to use inject in Nuxt.js to share the same process, and I wanted to use it in Vuex, so I tried to use it in store, but it would not run. How

How to apply CSS styles based on existence of Browser API feature?

I have a page which has the content invisible (opacity = 0) and based on the isIntersecting property as the user scrolls down the opacity changes to 1. It's pre