Category "javascript"

How to read URL parameters in Branch.io quick link

This should be quite straightforward but can't get it to work... I have a web SDK implementation of Branch.io, like in https://help.branch.io/developers-hub/doc

Is there anyway working with schemas in Deno?

I am trying to store and work with a similar to following structure data using Deno and MongoDB. [ { id: "AAPL", stockData: [

Can't get xml from php

I've been trying to get data from my database into a table on my website using js/php but I can't get the php to give a valid xml to the script. This is the php

React native webview crashing on Android when attach/selecting a file

I am using react-native-webview v.11 and it works all great unless you try to attach a file using the webview and the Android just crash. I have been looking ev

How to update a PSD file linked layer with opened image

I am a bit stuck. I have created a script for Photoshop that opens a PSD file containing a few layers plus a linked one, sort of a template. So far, I got thing

React js - data.map is not a function

export default function Case() { const classes = useStyles(); const[data,setData]=useState([]) const getcovid=async()=>{ const api=await fetch('htt

ExcelJS: "Uncaught EvalError: 'unsafe-eval' is not an allowed source of script in the following Content" in Angular App

I have deployed Angular Application that uses ExcelJS library on IIS server. My current security policy forces me to return below header in IIS Http Response co

How to filter an array data based on another array value?

I have array data like these. const dataSample = [ { "staff": 1000, "name": "Apple", "logo_url": "biten apple", "down":"yes" },

does the filter with new date() accept format other than yyyy-mm-dd?

I have a response from mydatepicker in the following format { "isRange":false, "singleDate":{ "date":{ "year":2022, "month":5, "day":13 },

Compare object structure

I have an object like this: const obj = { name: "one", created: "2022-05-05T00:00:00.0Z", something: { here: "yes" }

two nested v-for loops of which the inner one shouldn’t display its element but is needed for getting class attributes

how would we solve having two nested v-for loops (elements), of which one is solely for getting class attributes and shouldn't display its div element? because

Component memoized with React.memo() keeps re-rendering

I have a ParentComponent looking like this: const ParentComponent = () => { [product, setProduct] = useState({ name: "Test", description: "Informat

How integrate Smartsupp chat to a React Site (Gatsby)

I want to integrate the smartsupp chat in my Gatsby site (React), but the site only give you the following code... For a better performance would add some 5sec

Error: Typing on the input field of pick for each row just duplicates whatever value was entered in the qty field

So I have this field where you can enter the quantity for each row. It was working, however, when I added another input field for the pick, it will just duplica

Active nav item with custom html elements

I'm building a nav component using html custom elements like so: HTML <app-navbar></app-navbar> <template> <style> ul { disp

Material-UI DataGrid, display sum of column and sum updates according to filter as well

I have this Material-UI DataGrid, how can I sum all of the values for the column Total Amount in which this will also be updated once filter is triggerd as well

How to animate a svg path such that another different colored path slowly starts filling it?

I have an SVG that kind of looks like a race track encoded in the form of a <path> element. What i want is to animate another path with a different color

Slider in Apple store style

I know I would show some effort in this but I have no idea... I'm trying to make a slider like the one in the store section of Apple website. https://www.apple

How do I for check condition in filter iterating on list and checking for multiple condition which are present in array?

I have authors which can change vary in numbers in list (string array). I have to filter check for each author whether that match to author present in annotatio

Is there a way to set the timestamp to UTC in discord.js

I wanted to create a footer for a discord embed, that has UTC time so I created the lines in the following, and then it errored a lot, so I turned it into an ob