Category "javascript"

Convert blob to pdf file

Using react-pdf's BlobProvider, I'm trying to store the file to state. Here's what I tried: MyDocument = () => { return ( <Document&g

Markdown to html javascript

I actually use TinyMCE (4.8.2) on my application for multiple fields. i automatize fields by json content from JIRA API. BUT... One of the field is already in M

Add multiple element in header pdfmake

I am making a sales invoice pdf using pdfmake. I want to put my company logo, and company details such as name, contact number, email, website etc in the header

Update ng-if variable from ts file

In my angularjs app written with typescript, I am trying to add an asterisk to a certain field in the html using ng-if <td class="abc" >

RTSP streaming using node js?

I am using node-rtsp-stream package to run rtsp streaming,How can i implement and callback it in mvc structure //Controller var RTSP = require('./models/rtsp

Re-stream RTSP from IP cam with Node Media Server to http/ws and display it with html

Goal My goal is to display my IP cam's RTSP-output stream on a standard HTML-page (html5 + css3 + vanilla javascript, no magic = no plugins). The HTML-page sho

How to open a modal with a form inside when any button within my table is clicked in one function

I have a modal within a div I want to pop up when any button inside my table is clicked. it will be fetching data from an API as the question and the form is fo

How to read files as hex

I want to to be able to be given an input file with any sort of extension and read it in as hex or binary, but in a string or something. Not like open(file_path

How do you remove the x-axis from a bar chart produced by Google's Visualization API?

Referring to the kind of chart shown here: http://code.google.com/apis/visualization/documentation/gallery/barchart.html There doesn't seem to be a simple swit

Unable to get prime-ng table pagination dropdown to hover over everything

I have been using mat-tab in conjunction with prime-ng table and have been trying really hard to make sure that pagination drop down number doesn't get clipped

Why does Javascript `iterator.next()` return an object?

Help! I'm learning to love Javascript after programming in C# for quite a while but I'm stuck learning to love the iterable protocol! Why did Javascript adopt

incorrect bouncing behaviour in p5js play library

I'm using the play library: https://molleindustria.github.io/p5.play/ I'm doing a simple bouncing balls demo, with one large ball whose mass in play is given by

Why does my mousefollow method not work on different browsers

Here is a link to the code pen https://codepen.io/shahman28/pen/mdXraRE This is a part of a larger project that I am working on. I am attempting to place circle

How to fix my old react project not working as expected?

I'm new to react and have just added some regex validation to a jsx file in an existing react project (created about 4 months ago) . After building a new bundle

How to refresh a select list in html

I have a drop-down list where depending on the selected value, the next drop-down list shows specific values. when changing the value of the first list and then

AWS authorizer returns 500, message: null, with AuthorizerConfigurationException error in response

I've spent the better part of today trying to make authorizers work, I've checked multiple examples and they all seem to be doing the same thing my code does. I

Map object not setting values after execution of function

I have a function below where the purpose is to parse multiple local csv files. For each parsed csv file, I then grab 1-5 random elements. Since the CSV parser

JavaScript - How to extract strings - keys/values from response using RegEx?

I am very new to regex, and I want to extract some data from API responses. I have a response from my API call: { server: 'nginx/1.21.0', date: 'Mon, 25 Apr

Is this Next.JS folder structure recommended?

We have resorted to this following project structure |- pages |- <page_name> |- index.js # To do a default export of the main com

Convert async function consul.kv.get to sync function with deasync

I am trying to convert an async function consul.kv.get to a sync version of the same function. Searching led me to deasync and it's documentation suggests I sho