Category "javascript"

Cannot add fog effect to the scene with skybox in the scene

I was trying to create the fog effect in the scene and I also have the skybox created within the scene, I expected the fog effect to be applied to the skybox bu

How can I store HTML content that is going to be appended in more than one line?

After getting success in my AJAX response, I need to append HTML content inside a div. Usually, I do something like this: $(".parent").append("<div class='ch

Why when I pass "q" the second time into my input it does not break the loop?

It works the first time when I pass "q" into my input, but after that, it no longer works. Why? Appreciate any kind advice. alert("Welcome to your To-Do List!")

How can I detect any bot scripts in a huge project?

It is a huge project. There are many other developers too. The project is made on ruby on rails. Many of its modules are made in javascript. I want to detect bo

Accessing an object's property from an event listener call in Javascript

Below I am creating an object in Javascript. Within the constructor I am setting up an event listener. The problem is that when the event gets fired, this.prop

Event listener on span requires me to refresh the page in order for it to be clickable

I have this problem which I know is a bug, if anyone has had the same problem could you explain it, essentially the span "excla" requires the user to refresh th

How do I center the content the same as the header and footer?

This is what it currently looks like: How can I automatically center the content which is currently has a green color border? The problem here is that it will

How to store a user-filled HTML table in local storage and then display it in a different results HTML page?

Summary of my program: Users fill out a HTML table (I'm not having problems with this step) in table.HTML page HTML table is stored in localStorage (using .SET

Request had insufficient authentication scopes. & ACCESS_TOKEN_SCOPE_INSUFFICIENT

Here is error showing in network Here is javascript code I had already tried all possibility but no work for me. { "error": { "code": 403, "message"

How to Minify/Un-minify and Obfuscate Custom build Jira plugin UI code?

We are building a custom build Jira Plugin where we have JavaScript files, velocity template files and css files. We have to Minify and Obfuscate the UI code to

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