R
Reactiflux
Join the Reactiflux server to ask questions!
Join ServerR
Reactiflux
Join the community to ask questions about Reactiflux and get answers from other members.
Join ServerCommunity questions
Channels
snowberb – 11-12 Sep 19
How can I change the PDF title after using an
I tried with:
iframe
to display a base64
pdf?I tried with:
const newTab = window.open('');
if (newTab) {
newTab.document.title = documentName;
newTab?.document.write(
`<iframe title="${documentName}" width='100%' height='100%' src='data:application/pdf;base64,${encodeURI(
base64,
)}'></iframe>`,
);
}
✅ – ✅ – kardain_ – 15-32 Aug 21
hello, i'm wondering what is the difference between :
1:
vs
2:
i didn't knew of the 2nd one until today when i reviewed a project i'm taking over, and i'm wondering why it's used instead of 1
1:
interface InterfaceName {
property1 : number
}
vs
2:
interface InterfaceName {
"property1": number
}
i didn't knew of the 2nd one until today when i reviewed a project i'm taking over, and i'm wondering why it's used instead of 1
pepega1337. – 21-16 Aug 15
Hi, I have a form that calls my PHP script on the server
How can I prevent the page from re-directing to mypage.com/login.php when the submit button is pressed?
When I use e.preventdefault() it's not even called obviously, but I want to stay on the same page..
<form action="login.php" method="POST" onSubmit={(e) => handleSubmit(e)}>
How can I prevent the page from re-directing to mypage.com/login.php when the submit button is pressed?
When I use e.preventdefault() it's not even called obviously, but I want to stay on the same page..
<form action="login.php" method="POST" onSubmit={(e) => handleSubmit(e)}>
snowberb – 09-12 Aug 3
If I want to download a PDF file, how can I make the navigator to download it instead of the app itself? What I mean is, right now I have to fetch the pdf, and then I convert it to a link, but once I get the link, the pdf is already dowloaded, what I want is to use the navigator to tell how much time left for the file to download
beautifulpython – 17-16 Aug 2
greetings, given any csv data how can one get an array dynamically mapped to key(column_name) value(row_value)?
example csv
result
Gracias!
example csv
name,age,salary
jo,32,40000
jane,27,50000
result
[
{name: jo, age: 32, salary: 40000},
{name: jane, age: 27, salary: 27,50000}
]
Gracias!
nightskyjeff – 03-10 Aug 1
I'd like to use ssh2-sftp-client's
sftp.get(filename, writableStream)
in conjunction with a pipeline, so that I don't need to store the writableStream contents somewhere first and then read from there to go through the pipeline.