« first day (3840 days earlier)      last day (1091 days later) » 

5:48 AM
hi
anyone here present
 
6:20 AM
Nope :D
 
carbrus
are you ther
there please i need your suggestion
0
Q: Please help i want to create link on client side to download json data in csv format

Nick jonesPlease veterans, i request you all, your even small help can push me to towards my goal. so please help me in this. if you r not able to understand my issue then comment below, i m constantly looking for response on this post. please see below jscode in which i m getting array of json objects in ...

this is my question
but no one is commenting on this
i have json data and i want to create a link on client side
 
Okay, looking at that question, it's waaaaaaaaay too big. There's noise in there about history, there's a lot of information that isn't really relevant to the problem
If I were you, I'd try to simplify the question to only the exact details necessary... What's your problem, what do you have and what do you need?
 
cerbrus problem is simple, i have json data
on my ndoejs script and also i have created csv using the json obejcts array
 
So you already have the csv. then everything about json isn't relevant to the question
 
all i need is to create some link using res.send to the client page so that once the csv file is ready then just click
on the link
 
6:29 AM
Does the CSV exist client-side or server-side?
 
@Nickjones Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. You have 25 seconds to edit and format your message properly before it will be removed. Please separate code blocks from your actual question. Put your question in 1 message and then your code in a 2nd and format it.
For posting large code blocks, use a paste site like like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
1 message moved to Trash can
 
server-side inside nodejs script which i have posted on SO
 
Okay, so you want the client to be able to click a link and tell the server to return that text as a file
 
yes i have updated question with code for csv download
 
You don't need to add more to the question.
I'm trying to help you remove irrelevant stuff from the question
7
Q: Send text as a download file

kaytranceTrying to send simple text string as a file, that being downloaded under certain name upon request. Can't seems to figure out why this code fails. var text_ready = "This is a content of a txt file." res.setHeader('Content-type', "application/octet-stream"); res.setHeader('Content-disposition', '...

This explains how to get node to return a downloadable file
The accepted answer there also includes a download button for the front-end
 
6:46 AM
reference
cerbrus, the thing is that i m not able to get the document
within the nodejs script, only thing i can do is to use res.send
and i m not clear how to use that document.getElementById on server side
for a document which i don not know on the client side
one thing can be done is to send complete new html page with button so that client can download, just guessing this
 
The user has to request the download some way, right?
And does that by clicking on a link that tells your server to return the document...
 
user request localhost:3000/getallpatent, here user will get HTML form, on which user upload csv havig single column of 5 rows, now this 5 rows are submitted by the nodejs script to python which process and return json objects to the nodejs script, and also side by side this nodejs script will make json object array
this nodejs script after forming json objects array will create csv and then call res.send inside the if condition
so what i m thinking to where i manipulate the code so that i can get csv file link and then send it to client side
i m using same app.post('/getscorelist', getscorelist);
for sending html form input to python script using spawn process and then res.send to client side after processing ends
i m using same app.post('/getscorelist', getscorelist);
i m feeling sick this coding sucks
and in SO people are downvoting my question
 
I'm trying to explain to you that your question just has tooo much noise in it
There's too much to sift through to get to the core of the problem.
I still don't understand where exactly you're stuck
 
yes now i have cleaned my code
 
Try to break it up into small steps.
- User does X
- User Clicks Y
- Something else happens <-- that doesn't work
 
6:59 AM
yes i try
wait a min
 
7:13 AM
@Cerbrus i have updated code
and question please see
 
What you tried there was to have your CSV post action return the json?
 
leave json becoz now i have json to csv conversion done ok, the main thing is how to send this csv to client in some anchor tag href link
using res.send
csv post action return json or again some new csv without output is the main goal i m thinking
@Cerbrus r u able to get hope i was succeeded in explaining my question
 
7:33 AM
I'm not experienced enough with node itself to help you, but I hope I at least helped your question become more answerable
 
yes that true
that's
can you refer someone
 
 
2 hours later…
9:45 AM
do most languages have post or prefix the "money" symbol?
Like in euro it is customary to put euro symbol in front of the value, while for dollars it is customary to put it behind.
 
depends of format
euro can have € 15 but also 15 EUR
it is all decided by monetary governances
like $40 and 40$ may be same but it is not
 
40$ makes no sense to me
 
A currency symbol or currency sign is a graphic symbol used as a shorthand for a currency's name, especially in reference to amounts of money. == Usage == When writing currency amounts, the location of the symbol varies by language. Many currencies in the English-speaking world and Latin America place it before the amount (e.g., R$50,00). The Cape Verdean escudo (like the Portuguese escudo, to which it was formerly pegged) places its symbol in the decimal separator position (e.g. 20$00). In many European countries such as France, the symbol is usually placed after the amount (e.g. 20,50 €). The...
check usage
@Cerbrus quebec uses that
 
Then they're officially weird :D
 
oooh
 
9:50 AM
Trust me, I'm an expert in weird
 
they're not the only one. TMK in France, people is having a habit to use the euro sign after the number
that is because of their older franc, which got positioned after
 
Well the french also put a space before a question mark...
 
true true
so inconsistencies are there already
better to stick to a global format. I force to use the longer variant like EUR, US $, AUS $
like with dates, iso 8061 is followed across a locations in code and view
we had some problems with .... weird calendars though
 
Hm, I personally prefer symbols
But then again, when I do something that involves displaying currency, it's usually a consumer thing
 
10:06 AM
I wonder: why is the dollar sign an "S"? - Also why do a lot of currency symbols look like "a letter with one or two bars through it"
 
you're asking an interesting question
now I want to know that too as well
and I am somewhat busy atm.... you bastard *shakes fist*
 
 
3 hours later…
12:54 PM
Does anyone use the material-ui library? I have a DatePicker component here and I'm trying to assign a date value to it (after the page is loaded).
 
🤮
 
What are you puking at, specifically?
 
material-ui
 
Ah. I'm pretty new to React. I'm mostly a back-end developer. This project has a React front-end.
I just started a few weeks ago.
 
Good to learn new things, I just personally hate Material UI
(From a design prospective, I've never used it)
 
1:24 PM
you never have tried it and still considered to ... puke on it?? 😮
 
From a developer standpoint idk, but from a user perspective I hate it
 
is it not dependent of the choice that the dev has made?
does it not have themes? like bootstrap?
 
terrible looks terrible in all shapes and colors :D
 
1:54 PM
The samples they have on their website are different from how it looks on this project. So I assume custom themes are involved.
 
2:25 PM
Hello is there any one here used spawn child process
Inside nodejs script
I think Hypersapien will help me as he has worked in back-end
Hi Hypersapien I have one question will you please listen to me
My issue
Cerbrus you are here again are you present all time in this group
 
!!welcome
 
Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
 
2:40 PM
in Android, 21 mins ago, by W0MP3R
@Tim I have to use <iframes> to structure a web "So this way we don't repeat the menu for all the pages"
 
i mean
it works doesn't it
 
"works" is a very low standard
 
also, heh, i know of a particular... err, website, that's sitting on one of our servers that employs that functionality
a "single page" application written entirely in html/css
 
3:18 PM
Does anyone know of an advanced node reverse engineer tool? Something that can monitor things like all the shell commands executed and other native library calls
 
4:04 PM
hi
 
@MontyTomar Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
 
 
3 hours later…
6:39 PM
Probably the longest post I have made but a lot of detail and example, if you have some time and don't mind. Take a read I'd really appreciate it
0
Q: Datatables Filter by Date Range

BeerusDevSo I am using a DataTable to create an attendance tracker based on employees status' during the week, there are two statuses that represent the class 'green' which means the employee is in office/working (P & TW), there are two statuses that represent the class 'yellow' which means still working ...

 
hmm I know it was in newer version of es: but what was the check to verify if a variable is "null or undefined but not against falsy"?
 
7:03 PM
Is there any way to break on a mouse click? I don't know what eventhandler that is catching my click, is there anyway to find out?
 
if you select the element that is receiving the click in dev tools, you can look at event listeners in the dev tools
 
I don't know what element it is.
 
it'll still show up
if it's an ancestor of the one you pick
 
null coalescence operator
 
Ok, so on the element (I get 3 click event handlers, if I remove the top most the action that happens (the overlay is closed) stops happening.
it's in div#root react-dom.development.js : 5884 not sure how to interpret that data
 
7:28 PM
posted on April 21, 2021 by Prudhvikumar Bommana

The Dev channel has been updated to 91.0.4472.19 for Windows Mac and Linux. A partial list of changes is available in the log. Interested in switching release channels? Find out how. If you find a new issue, please let us know by filing a bug. The community help forum is also a great place to reach out for help or learn about common issues. Prudhvikumar Bommana Google Chrome

 
@ndugger I prefer FlowJs over typescript to be honest. Only reason I move to typescript is because "most libraries do", not because I particularly wish to. Though typescript is indeed nicer than barebones JS without typing.
 
8:12 PM
i hate flowjs
 
@KevinB just let it flow ~(-.-)~
 
8:58 PM
posted on April 21, 2021 by Veenita Joshi

Hi, everyone! We've released Chrome Beta 91 (91.0.4472.19) for iOS: it'll become available on App Store in next few days. You can see a partial list of the changes in the Git log. If you find a new issue, please let us know by filing a bug. Veenita Joshi Google Chrome

 
9:10 PM
Can someone take a look over my question please? stackoverflow.com/questions/67199816/…
 
@SergiuMolnar Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
 
||> const a = await Promise.reject(10); a
 
@JBis "SyntaxError: Unexpected token 'const'" Logged: `` Took: 0ms
 
?
 
||> var a = await Promise.reject(10); a
 
9:15 PM
@KevinB "SyntaxError: Unexpected token 'var'" Logged: `` Took: 1ms
 
;)
 
ah
stupid me
 
you know a very morbid and weird thing I just realized?
 
Well I know the problem, but how do I solve
 
🚽
 
9:23 PM
async function execAsyncIIFE(code) {
    return await eval(`(async ()=> { return ${code} })()`);
}
 
I was teaching my grandparents (100+) how to use windows 10. And then I realized: wait I probably best let them keep using windows 10 and disable future updates. By the time it is no longer supported they'll probably under a stone.
 
return const a =.... is a syntax error
 
Which feels strange to have to think about.
 
but if i remove return I can't do ||> await Promise.resolve(5)
 
so just make it understood that a command can't start with var/let/const
 
9:25 PM
wdym?
 
||> a = await Promise.reject(10); a
 
@KevinB "10" Logged: `` Took: 0ms
 
meh
 
or... shudders regex it away
 
better/worse idea
 
9:52 PM
            } catch (e) {
                        if (
                            !e.message ||
                            !e.message.startsWith('Unexpected token')
                        ) {
                            throw e;
                        }
                        startTime = Date.now();
                        global.done(
                            false,
                            JSON.stringify(await execAsyncIIFENoReturn(code)),
lol
||> const a = await Promise.reject(10); a
 
@JBis "10" Logged: `` Took: 0ms
 
10:10 PM
posted on April 21, 2021 by Cindy Bayless

The Stable channel is being updated to 90.0.4430.86 (Platform version: 13816.55.0) for most Chrome OS devices. This build contains a number of bug fixes and security updates. Systems will be receiving updates over the next several days. If you find new issues, please let us know by visiting our forum or filing a bug. Interested in switching channels Find out how. You can sub

 

« first day (3840 days earlier)      last day (1091 days later) »