Skip to content

Tag: javascript

Vue.js component parent event

im wondering why my code isn’t working. I have an event ‘leave’ which should be called on blur. The components are displayed properly but when i leave the inputs the event wont be triggered. Thanks for your help 🙂 Answer Your <text-input> component needs to forward (re-emit) the blur e…

Capturing signature on a webpage (via tablet screen)

I am trying to write a short code to capture the signature via a tablet screen on a webpage. However, I can’t get the area up that captures that signature. The code I am using, which I have borrowed from other places that do work is: I suspect it has something to do with the links to jquery, unless some…

Get fee amount from Braintree Transaction.search()

Is it possible to get the Braintree fee amount while searching for transactions using Transaction.search() method? I specifically use Braintree Node.js SDK API, so when I call the method: My console.log(result[0]) shows pretty big (160 lines of code) single transaction object, where transaction.serviceFeeAmou…

MutationObserver – how to detect dom changes within iframe

Let me first explain the problem: My script has a mutationobserver, which detects added nodes, and does some processing on the content – like compare and highlight some values. The current implementation detects changes in the entire document body, the target looks like this Everything works well, excep…

How to animate list items in Vue when one is removed

i have a vertical list of items, each of which can be removed. I put my items inside a transition-group and created simple opacity and transform transitions for them. The transitions on the removed elements work as expected, however if I remove an element which is not placed at the bottom, the ones beneath ju…