Skip to content

Tag: javascript

Axios error: … .data.pipe is not a function

So I am basically trying to use axios to download a image from a url, but I get this error: TypeError: streamResponse.data.pipe is not a function My function for doing this image download is below (note that this is inside a class): I assume that the adapter for a stream response is the xhr one. Anyways, I ha…

How Can I Select A Variable To Copy?

I want to select the “text” inside info to can do document.execCommand(“copy”); But i dont know how can i use select for that var. Answer I think this could work In the HTML Then in the code Recomended post: Select all DIV text with single mouse click How do I copy to the clipboard in …

export generated data to excel with php/js

I have 2 date input fields(startdate,endate) that a user can selected. Once selected, data will show that is registered between the 2 dates provided by the user in a table format. how can I export that data that is shown in the table to excel with a button click without third party plugins ? code that I used …