« first day (4131 days earlier)      last day (1042 days later) » 

07:15
hello there
@MohamedHafez 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.
@MohamedHafez Please don't post unformatted code - use the up arrow to edit your post, then hit Ctrl + K to format the code in that post. 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
 
6 hours later…
13:01
Hey, Python’s zip basically performs a transpose function, right? Are these two questions duplicates of one another, in this case? Javascript equivalent of Python's zip function and Transposing a 2D-array in JavaScript. If yes, which should be the canonical?
Hi
a quick question :)
@ac89live 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.
@ac89live Please don't post unformatted code - use the up arrow to edit your post, then hit Ctrl + K to format the code in that post. 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.
1 message moved to Trash can
    <script>
    function disableButton() {
        var btnSubmit_6 = document.getElementById('btnSubmit_6');
        btnSubmit_6.disabled = true
    }
</script>
@ac89live Please don't post unformatted code - use the up arrow to edit your post, then hit Ctrl + K to format the code in that post. 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.
but it is not passing the value
<input id="btnSubmit_6" type="submit" value="<% signin %>" name="btnSubmit" onclick="disableButton()">&nbsp;
13:23
i'm surprised so many people still write JS the exact same way they did 15 years ago ;x
4
@ac89live Passing what value? Use the browser console (dev tools) (hit F12) and read any errors.
13:39
@SebastianSimon I think they are different. They might have the same answer but I don't think the questions are exactly the same. A matrix transposition can be achieved through zip but zip can be used for other stuff, as well. And there are probably other ways to transpose other than zip.
The venn diagram of answers to both probably overlaps significantly but I don't think it's one and the same. So, I don't think they are full duplicates.
@SebastianSimon Let assume it is like this example
https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_button_value2
@ac89live w3schools is a terrible resource. We suggest using MDN.
So if I edit the code to this :
<!DOCTYPE html>
<html>
<body>

<h1>The button value attribute</h1>

<form action="/action_page.php" method="get">
Choose your favorite subject:
<button name="subject" id=btnSubmit_6 type="submit" value="fav_HTML" onclick="disableButton()">HTML</button>
<button name="subject" type="submit" value="fav_CSS">CSS</button>
</form>
<script>
    function disableButton() {
        var btnSubmit_6 = document.getElementById('btnSubmit_6');
        btnSubmit_6.disabled = true
    }
</script>
</body>
</html>
Then it stops to pass the value "fav_HTML"
@VLAZ Hm, alright. In my mind, zip fundamentally is a transpose, but you’re probably right.
@ac89live Ah, of course. See Disabled form inputs do not appear in the request (found via Google).
14:08
@SebastianSimon I have to be honest - I've used transposition (from that Q&A as well) before as well as zip. However, you mentioned them as duplicates I didn't really connect them in my head. Of course, now that I've thought about it - that is correct. The problem with marking them as duplicates is that imposes that as the only solution. Whereas for example one can make a solution that only transposes a matrix without being really a full zip implementation.
It also takes a bit of a cognitive leap to recognise how zip will do the transposition. Which it took me...years, apparently. Mostly because I didn't really think about it but still. However, if the transposition question is marked as a duplicate to zip, then a user without an account who lands on "how to transpose" from Google would instead be redirected to "how to make zip" which can be jarring.
However, I really do appreciate you're trying to clean up old potential duplicates.
14:29
@SebastianSimon I managed to make this work
using this
0
Q: Disable button on click but cannot pass parameter to controller

elszeusI have a button, which when clicked I want to disable. <input type="submit" value="Save" class="btn btn-default" name="submit" style="float: right; position: relative; right: -18px;" /> The value "Save" needs to pass from the button to the controller: public ActionResult EditCall(ModelCall...

using the function in onsubmit instead of onclick
But thanks for your help :)
 
4 hours later…
18:44
Do you have experience with React Material UI latest version ?
I am trying to create dashboard, and have button UI component as reusable component
but all styles from reusable components is overwritten when I try to use makeStyles in page where I have already import button component
19:12
is there any google colab equivalent for JavaScript?

« first day (4131 days earlier)      last day (1042 days later) »