« first day (3509 days earlier)      last day (1422 days later) » 

6:36 AM
@paul23 I think all the neat ways will be relatively inefficient. With some restrains, a for loop may be the simplest solution.
 
 
3 hours later…
user13423578
9:39 AM
Hi guys, could I ask you a question?
 
@Jfix91 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.
 
user13423578
Someone could help with formset jQuery plugin?
 
user13423578
I want to set the right position of my remove button in my formset
 
user13423578
Above an extract of the plugin code
 
@Jfix91 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
 
user13423578
9:44 AM
 var delButtonHTML = '<a class="' + options.deleteCssClass + '" href="javascript:void(0)">' + options.deleteText +'</a>';
                    if (options.deleteContainerClass) {
                        // If we have a specific container for the remove button,
                        // place it as the last child of that container:
                        row.find('[class*="' + options.deleteContainerClass + '"]').append(delButtonHTML);
                    }
                    else if.....

$.fn.formset.defaults = {
 
user13423578
How could I insert this container for the remove button?
 
1:44 PM
@ErwinOkken 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.
1 message moved to Trash can
 
Rxjs: How can I execute a method (which returns an observable) for all elements inside an array, and then return a observable?
// e.g:

public getArray(arr): Observable<any[]> {
     return arr.pipe(..
}

public getOne(item) {
     return of(item);
}
 
 
5 hours later…
Sam
6:24 PM
React Native question: What are your thoughts on temporararly storing uncomplete forms... local storage or contexts? (or something I'm not thinking of...)
 
 
1 hour later…
7:45 PM
hello :)
 
@Scratte 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.
 
Thanks James.. It's a novel. I'm on it..
 
8:26 PM
CRA and Jest are not cooperating and it's very frustrating
 
@Soruİşareti 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.
@Soruİşareti 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.
1 message moved to Trash can
 
Can we ask javascript question?
 
Read the messages
 
James, while typing up my rather short question, that's been driving me around in circles for at least the last hour, I noticed that JavaScript isn't really posh English, but instead American, which is why my...colour = "var(--black-700)"; wasn't working. I was so focused on the var() that I had completely forgotten to check what I was really doing. Apart from that, you seem like a nice butler :)
 
FYI James is a bot
 
8:31 PM
@Soruİşareti 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.
 
What i use ctrl+k ._.
 
Also, Javascript doesn't care if your variable is called "color" or "colour" or "cololololo" -- you might be concerned with the CSS
 
1 message moved to Trash can
 
I don't think you did use ctrl-k
this is what your message will look like when you use ctrl-k
 
Yes, of course James is a bot. I just like to pretend bots are really virtual butlers. I talk to myself in the mirror too. Sometimes I even talk to walls, so I think perhaps talking to James is moving up on the crazy-scale :) Or down.. depends on what's on each end :)
 
8:33 PM
Hahaha all good. Some people genuinely don't realize it and talk to him unironically
 
Oh my question has answered then i dont need to ask it again in chat. My question: stackoverflow.com/questions/62009395/… so i can leave thx :)
 
I think it happened more when Caprica was our bot, because she didn't have "bot" in her name
 
@forresthopkinsa ahh.. I was doing this button.style.colour = "var(--black-700)";. Now I'm ding this button.style.color = "var(--black-700)"; and it's working. But yes, I'm styling it, but.. it's sort of JavaScript'y.
 
yeah you're just using javascript to change css
css is the one that cares what the names are
but I understand the ambiguity
 
Well. I started out with insertAdjacentHTML(x,htmlstring), but then I couldn't make it handle an event. It's a user script and it kept telling me there is no such function. So I figured I'd just do it all in JavaScript :)
Anyway, thank you for having this room. It I hadn't had to type up a question, it would probably have taken me much more time and agony to realize my mistake.
 
9:08 PM
Haha yeah rubberducking is useful
 
 
1 hour later…
10:27 PM
 
@JamesBot Hi James, if you could answer the question that would be great!!
 
@AndyWang 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.
 
11:00 PM
@forresthopkinsa Hey, did you get a chance to think about the chat extension idea? What do you think?
 
@JBis I think I'm in
 
awesome!
I can start in a couple days. Does discord work for communication?
 
Yeah works for me
Couple days sounds good!
 
perfect!
 
11:28 PM
I have used create react app for my project. In my package.json i have:
"browserslist": {
    "production": [
      ">0.2%",
      "not dead",
      "not op_mini all"
    ],
String.prototype.matchAll isn't being polyfilled, is there a reason?
Do I need to change the browser list?
 
I'm not sure that the browserslist array will actually include polyfills accordingly
I think Babel can depend on it but you'll probably need to configure that
 

« first day (3509 days earlier)      last day (1422 days later) »