October 22, 2024
Chicago 12, Melborne City, USA
javascript

How can a mid-level developer evaluate their skills and identify areas for growth?

I’m currently working as a mid-level frontend developer with React and TypeScript. However, compared to other mid-level developers, I sometimes feel like I’m not quite on the same level as I’d like to be. I want to improve, but it’s not always clear where to focus my efforts. In your experience, what distinguishes strong mid-level

Read More
javascript

Why JSON file value is not displayed?

<script> // Fetch JSON data fetch('dat.json') .then(response => response.json()) .then(data => { const tbody = document.querySelector('#dataTable tbody'); data.forEach(item => { const row = document.createElement('tr'); row.innerHTML = ` <td>${item.name}</td> <td>${item.age}</td> <td>${item.city}</td> `; tbody.appendChild(row); }); }) .catch(error =>console.error('Error fetching the data:', error)); </script> Why JSON file value is not displayed? The code I took from ChatGPT. I

Read More
javascript

How to use image ressource from sitepackage in javascript file in TYPO3 12?

Within a TYPO3 12 website I use the Sitepackagebuilder to create a sitepackage. The Resources are structured as following: Resources ... Public JavaScript scripts.js Icons arrow.png ... Within my scripts.js I would like to access an icon from the Icons-folder (arrow.png) to use it with the slick slider as follows: $slider.slick({ infinite: true, slidesToShow: 3,

Read More
javascript

Is there a native javascript API to manipulate the undo stack of HTML elements?

I created a contenteditable element in my page and during some events I update it by replacing the innerHTML. When I do that, the undo stack gets reset. I found some recommendations to use the executeCommand api, but the MDN doc says it’s deprecated and does not offer an alternative. Is there a way to

Read More
javascript

Nothing appears in browser console while inspecting element while executing dynamic action in oracle apex

Problem: When I examine the element in the browser console, it does not return any details about the procedure as it was before. I don’t know if the latest update of Chrome browser is the reason. If anyone has any details about the subject, I am very grateful and thankful. item 1 : P2_ITEM1 item

Read More
javascript

Load Local WebSite Folder from Document Directory

I am trying to load Website Folder from the Document Directory. It’s a PWA Bundle. When i load the Folder from the Bundle, It loads in WkWebview. But when i try to load it from Document Directory, it’s not loading from the folder. May files are missing including main.js, though all those files are there

Read More
javascript

How to Execute a Javascript Callback based on a Variable or Parameter

I have an array that is passed to React from a Laravel back end, representing columns in a database. I iterate over this array to construct headings for a table. For each column, I want to run a callback function to mutate or transform the corresponding data (of each row) for each column. For example,

Read More
javascript

Google Apps Script – missing e.postData and BLOB parameters

Could not find any info on my problem below – so posting. I am uploading a BLOB to a google-apps-script webapp – code and log below. e.postData is missing on the webapp doPost(e) e.parameter.**NewsFile** is missing the e.contentLength indicates the data is received – checked with 1Mb BLOB the client side formdata indicates NewsFile is

Read More
javascript

Cannot find module when running Node.js app with PM2 and TypeScript path aliases

I’m encountering an issue when trying to run my ExpressApp application using PM2. The project is written in TypeScript, and I’m using path aliases defined in my tsconfig.json file. The build completes successfully, but when I start the app with PM2, I get the following error: Error: Cannot find module '@/config/routes' Require stack: - /Users/nicolasbispo/projetosgabriel/athenasbackend/build/index.js

Read More
javascript

How can I fix GLSS Shading on THREE.js so it shows an accurate day-night cycle on an earth?

I’m working on a 3D Model of the earth for a project, and I am having a problem. Originally, I was using no shading, and added both materials to a group, with THREE.AdditiveBlending. This led to what is seen in the image below, where the lights that show up on the night texture show up

Read More