Category "javascript"

I can't figure out why I'm getting a ReferenceError: fileUploaded is not defined

Hi this is my first post! Here's the error I'm throwing when trying to submit a post on a website I'm making! This is the error and line 36 is where i call shar

Can I create multiple elements of the same type using Strapi and GraphQL?

Can I create multiple elements of the same type using Strapi and GraphQL? For example - createMultipleFoo mutation(data: [ nameOfFoo: "ooaoaoa", weightO

Is there a way to cast a string of only hh:mm to Date in Javascript

I have a business hours object in a mongoose schema that represent a date. I'm passing a json object and retrieving the to parse to Date as string. I wonder if

Retain the selection in previous page when moved to next in ExtJS Combo box

I have the ExtJs form combo which shows the values in the dropdown as checkbox and the value to select. I have used the pagination to list all the values with n

How do HTML DOM properties works?

Is document.InnerText a variable? If not then why it has assignment operator like this code below: document.InnerText=count I tried to reverse the count and do

jquery 3.6.0 animate width to specific size not working

I have this jsfiddle: $('.btn').click(function() { if ($('nav').hasClass('open')) { $('nav').removeClass('open'); $('.hide').animate({ width: '5

Create protobuf with json values

is it possible to merge or set protobuf message values with matching json values??? example json: {id: 1, channel: 2, userIsLogged:true} and a proto definition

How to solve Amplify backend-config.jason does not exist issue

I upgraded Amplify CLI, but I discovered in my amplify/backend/backend-config.json file has disappeared after taking a day to discovered that. Then I have tried

Glide JS not displaying images

I'm using Glide JS carousel in a VueJS project to display some images (at least 3), but what happens is that only the first of the three images are displayed, w

Issue in creating recursive JSON hierarchy tree

I have input data in flatfile format. I have written my javascript code to create recursive hierarchy JSON tree. I am not getting expected tree (highlighted bel

Prime NG calendar closing when the soft keyboard opens

I am working in an Angular 10 app. When using a tablet, opening a p-calendar primeng component opens the soft keyboard, triggering a window resize event. p-cale

How do you return an array of string ids using a factory in MirageJS?

In MirageJS I am trying to create a factory for a simple array model. Current code Here is my code: let server = new Server({ models: { usertab: Mod

New Google Sign In library prompt at every page reload

In my project, I use regular popup client-sided JS authentication (platform client) I migrated from old Google Sign in to new Google Identity Platform (gsi cli

Postponed Sieve algorithm with start logic

Based on the answer by Will Ness, I've been using a JavaScript adaptation for the postponed sieve algorithm: function * primes() { yield 2; yield 3;

response.json() throws "TypeError: Failed to fetch"

I use fetch for getting some resources from the server. I can see from logs that from time to time conversion to JSON fails on "TypeError: Failed to fetch" whic

Working Bootstrap/Chart.JS/JavaScript - make size of graphs proportionate to screen

I'm trying to learn to work with Bootstrap, Chart.JS, and JavaScript in general. I've been able to work off a template, however every graph on my .html file is

Access control allow origin missing on localhost

I'm developing a vuejs application on the frontend and an API in Sinatra. In Sinatra: post '/login' do # should be pretty easy to do in Sinatra: response['A

Angular show hide with combine condition

I have an array of object need to show hide based on filter like below: HTML CODE: Filter: <div (click)="filter(1)"> F1 </div>

How do you read CSS rule values with JavaScript?

I would like to return a string with all of the contents of a CSS rule, like the format you'd see in an inline style. I'd like to be able to do this without kno

How can i get the value of multiple anchors in javascript which are generated from php and send the value to another Php page using AJAX

Here is how my anchors are displayed on the web. I need to get the value of the anchor and send it to another PHP file, so i would use the value of the anchor i