Category "javascript"

Querying MarkLogic merged collection

I'm trying to write a query to get the unique values of an attribute from the final merged collection(sm-Survey-merged). Something like: select distinct(partici

Adding debounce to an input text box with an "ng-keyup" in Angular.js

I have this directive for a search box // Define the search-box alSH.directive('searchBox',[function(){ return { restrict: 'E', template

Is there a way to change thickness of v-divider?

I don't know if I am using the thickness prop correctly or if there is a better way to do this. <v-divider :thickness="var"/>

Firebase pubsub schedule trigger not executing

I have setup a Flutter Firebase project using Cloud Functions pubsub scheduler. I have deployed the function without error but cannot see and mention of the fun

JQuery - How to check all value from array before goes to else statement?

How can I check all value from array before going to else statement. My code only working for the first array, in my case which is /members/, but it wont work f

How do I close an Ionic app that utilizes an iFrame to display a website on Android

I am making an ionic app that uses an iframe to open a website on Android 11. To navigate utilizing the back button on the phone, I'm using the following code (

HTML .value checking not working properly

I have been working on a little coding project for my friends. This includes a somewhat password system that changes your username. I implemented this so that i

JSON NESTED STRUCTURE - PENTAHO

I have this following json nested structure that i need to construct in pentaho: { "num_matricula": "4242424", "limit_date": "2018-01-01", "admission_date

how to access firestore subcollection using cloud functions

i have the following database model: car Workshops collection which is the root collections, and it has collections based on car Brands for example car Workshop

Open Safari context menu BELOW text selection

I need to show a toolbar ABOVE a text selection in an editor. That's easy. Unfortunately Safari on iOS seems to prefer opening its copy/paste/formatting context

What is the Python equivalent of a Promise in JavaScript?

I am trying to understand what would be the best code structure or a design pattern that would do the following: Have a function named get_data that would start

React Router V6 shows blank page

I am facing a problem. I am trying to use React Router but it keeps showing me a blank page. Here is my code: App.js: import React from "react"; import { Browse

(Bootstrap 4) thumbnail with a caption on the right side when the screen is over X px

I would like to have a thumbnail with a caption on the right side when the screen is over X px. I tried it with and figcaption, but I didn't manage it yet.. he

deleting all entries with FK when PK entry is deleted sequelize

I have a post and a notification model. notification has a onPostId FK. When a post is deleted how can I let sequelize know to delete all the notifications that

JavaScript/WebGL take periodically mouse coordinates from one click event until the second one

I have a program that simulates a cloth (made by spring and vertices) in WebGL. What the program must do is to permit the user to click on a point in the cloth,

get plural value for time units (days, hours, minutes) using Intl API

I'm trying to localize time units and I'm able to do so for singular (hour, day, minute) but I'm unable to find any way to figure out the plural equivalent (hou

How do I get my webpage go to another page when the validations are true

I need help trying to get my webpage to go to a thank you page if all validation are true and entered correctly then it would go there. But I have no luck tryin

HTML text box and button that redirects user to a page of same name not working when <form> is added

Below is a code that redirects people to a page of the same name. For example, if I type in the word 'chocolate' and click 'Submit', the user should be redirect

I am trying to open a new url page and get the title of new page

I am trying to open a new url page and get the title of new page. issue: it is openning new page but the title is for previous page, (not new page). // open pd

@metamask/eth-sig-util" buffer isn't defined?

I'm trying to encrypt some data using MetaMask's public key for encryption (https://docs.metamask.io/guide/rpc-api.html#unrestricted-methods). However, on page