Category "javascript"

Huawei IAP React Native

I am integrating Huawei in app payment module in my react native application, I have followed all the guidelines for setup. Every thing is going smooth but when

How to use same JS files for HTML pages?

At the moment, the files setup looks like this: File Setup in the merkur.html file I use this to go to the JS files: <script src="../scripts/ui.js"></s

Opening chrome extension programmatically with multiple entry points

I'm opening a chrome extension programmatically from the background script with the following code: background.js chrome.windows.getLastFocused().then((window)

Objects are not valid as a React child (found: [object Error]). If you meant to render a collection of children, use an array instead.]

i think the error is from the checkout screen but i just cant find the '<' which is make believe that the error origin is from node_modules can anyone find t

I want to combine the objects in the array, how should I change them?

const data = [ { productId: 6, productName: "pouch", productPrice: 29000, discountRate: 19, optionName: "13inch", optionPrice: 0,

How to return value from a cell on an Excel spreadsheet in JavaScript

I've been trying to figure out a way to access an Excel Spreadsheet in JavaScript and return the values stored within the cells based on the row/column they're

React router : update props

I am new to react, I have a component UpdateInvoice which has as props idInvoice and a boolean isNew. this component do two things if isNew is true the componen

Fabric.js create dynamic image mask

I want to mask the original image using alpha mask image. I can do alpha masking on image with the following code. But I want to be able to edit the mask with t

Console.log in Chrome dev tools console doesn't do anything

So I open the Chrome developer tools and switch to the console tab, and I type the command console.log("Hello world!") but it doesn't log anything to the consol

React - Navigating between urls without page loading

I am building a website using react. I have a url http://0.0.0.0:9000/courseware/course/6/content/programming/issues/lab/1 which shows a list of issues belongin

dynamic slug with a static slug - SSR

I have these routing: /blog/slug /blog/search/search-keyword slug is dynamic and search is static and search-keyword is dynamic. but with below structure I got

Auth0 redirect infinite loop Vue3

This is the code block I have. I know the cause of it is because setup will always default back to not authenticated once I am redirected back to the website. M

JavaScript to click buttons automatically in a sequence in a different page

I am trying to auto click a button that redirects to a new URL, and from there click a button. Both buttons need to be clicked one after another; however, the l

Webdriverio iOS restart app with processArguments

I have iOS app which implemented UI testing with Appium. And when I want to restart app with this code, processArguments are lost. Could anyone tell me how to r

Preview PDF file in a HTML modal, then print to a paper size using PHP or JS

I need some php or javascript script first to display a PDF file in a HTML modal (client browser) and then to print a PDF file from html modal (client browser)

(hashlips_art_engine-1.1.2_patch_v5) The "path" argument must be of type string. Received undefined

I'm trying to update some metadata for 10 JSON files, some of them get updated properly and some others give me the following error. Below you can see 6 files g

Larael/Vue/JS minimalize/lost focus/changed card alert

Im coding web page and i need to know when user minimalize window/ lost focus on window/ changed card in browser. Is there any function which can give me that i

How can I make my API date field to be 3 business days from today's date taking weekends (Sat and Sun) into account using JS?

I am using javascript for to communicate with platform's api. Just have a quick question! There is a date picker which you can click and pick any date. My task

How to pass redux props to styled component in react typescript

i'm pretty new to typescript and there's something that is not very clear to me. I'm trying to pass a prop to styled-component file, the prop arrive from redux

Create.js/Easel.js - createjs.Bitmap() - Getting SVG to load at original size?

I am using createjs.Bitmap to add an SVG to the stage. This is in Adobe Animate HTML5 Canvas which uses the Create.js/Easel.js frameworks. The project is usin