« first day (3946 days earlier)      last day (1227 days later) » 

00:01
posted on August 05, 2021 by Krishna Govind

Hi everyone! We've just released Chrome Beta 93 (93.0.4577.25) for Android: it's now available on Google Play. You can see a partial list of the changes in the Git log. For details on new features, check out the Chromium blog, and for details on web platform updates, check here. If you find a new issue, please let us know by filing a bug. Krishna Govind Google Chrome

00:57
 
7 hours later…
07:58
Hi,
Anyone can suggest table data rather than data table. We have API data and want to render server side paging, searching and sorting.
Here list of features should be in table data plugins:
- Column width resize functionality
- Fixed Column functionality
We have visit these plugins but there are not fulfil requirements
http://tabulator.info/
https://www.jtable.org/
Tabulator table plugin have lot of customization but not provide the any server side paging with dynamic column
Js table have not fixedColumn functionality
2
Q: How to adjustment dynamic column and data in tabulator using API

raheel aslamWe have API format JSON like this http://www.json-generator.com/api/json/get/cgdrFRDzQO?indent=2. API response data has column and data. We want to set dynamic column and data with pagination in tabulator table. How can we do that using API provided format JSON. Here is documentation link http://...

 
2 hours later…
10:19
posted on August 05, 2021 by Ben Mason

Hi, everyone! We've released Chrome Beta 93 (93.0.4577.26) 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. Ben Mason Google Chrome

Dan
Dan
11:09
Hi, I'm new to chat but not JS
@Dan 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:21
@Dan welcome
Hi @KarelG can you response on table data
thanks
@Dan My condolences. For both.
12:09
Morn
 
2 hours later…
13:40
does someone know what the reason could be to set activeXObject null ?
A third party lib that I was examining has this
if (window.ActiveXObject) {
    window.ActiveXObject = null;
}
touching native API functions is a no-go ... unless there is a valid reason for that
13:57
posted on August 11, 2021 by Michael Dawson

Summary The Node.js project will release new versions of all supported release lines on or shortly after Wednesday August 11th, 2021 in order to address: Two high severity issues and one low severity issue. Impact The 16.x release line of Node.js is vulnerable to two high severity issues and one low severity issue. The 14.x release line of Node.js is vulnerable to two high severity issues a

14:28
Wtf
Why when I pass this object counter through the function scope, it tells me it is undefined?
Example, I have this object counter and it works fine, but its for a different count (current week)
var totalCountMon = {P: 0, TW: 0, TRV: 0, NR: 0, PTO: 0, H: 0};

function updateTotMondayCount(totalCountMon, Day, Date, Days){
                  if (moment(Day.Date).isSame(currMonday)) {
                  	switch (Day.Status) {
                            case 'P': totalCountMon.P++; break;
                            case 'TW': totalCountMon.TW++; break;
                            case 'NR': totalCountMon.NR++; break;
                            case 'TRV': totalCountMon.TRV++; break;
                            case 'PTO': totalCountMon.PTO++; break;
and that works fine... But this doesn't
var outsideMonCount = {P:0,TW:0,TRV:0,NR:0,PTO:0,H:0};

                    function updateOutsideCount(outsideMonCount, outsideTueCount, outsideWedCount, outsideThuCount, outsideFriCount) {
                      var searchMon = moment($('#dpicker').val()).startOf('isoWeek');
                      var searchFri = moment($('#dpicker').val()).endOf('isoWeek');

                      moment(moment($('#dpicker').val()));
                      if (moment($('#dpicker').val()).isBetween(searchMon, searchFri)) {
I am such an idiot x10. Wasn't passing the counts through the closure....
window.ActiveXObject used to be a common way of detecting IE. If they're using an old plugin that does that and then disables IE, when IE works just fine in that scenario, overriding it lets it bypass the check
it's a lazy way of fixing whatever problem they're fixing with it, for sure
14:43
@KevinB I finally finally fixed the count issue after playing around in the debugger for god knows how long. Since this doesn't seem viable. What would be a good way to display the search count instead of trying to use the jqui datepicker and its lack of special events
not quite sure i understand
what does a datepicker have to do with displaying search counts
15:02
So the div I have at the bottom before the datepicker searches a new week based off a single date in that week, displays the current weeks count. When the datepicker is used, thats when the new count is created for each day in that week that was searched. I was trying to use event handlers to display a new div with the new count on search but not possible it seems
if choosing something in the datepicker is kicking off an ajax request, the thing you need to listen to is that ajax request
not the datepicker
It isn't kicking off the ajax request
then... what was the intended logic for binding a load event to it?
That was just an example when I was asking about nested event handlers
$("#dpicker").datepicker().on('change', function() {
        var v = $(this).val();
        table.search(v).draw();
    });
That is my datepicker event.
:shrug:
you can't ask for a better alternative without stating what's wrong with the current
15:08
Here is an example. https://jsfiddle.net/BeerusDev/4d9jx8Lh/17/

On search it changes, but when the search is cleared the new div still remains but the current week data is showing instead of the searched week. The original div should pop back up
#container4
that doesn't sound like it'd be related to teh datepicker
it has one purpose, picking a date, and it does that,
@KevinB I have some trouble to comprehend that whole sentence
*troubles
I am lost then
I couldn't do an on 'input' to replace the div, then use a on 'change' to return it once it is cleared?
what do you understand on that "input" and "change"?
they are both really different events
change fires when a user picks a date from the datepicker
input fires whenever the user toggles the control
But it says that isn't always the case, to look at using ' change'
15:20
when using a datepicker, you aren't interacting directly with the input
the datepicker (ideally) triggers the change event programatically once a date is chosen
@BeerusDev no that ain't correct
give me a moment to update my last message :)
Can you explain then so I may have a better understanding
I assume that it is a simple jquery datepicker, from jquery UI?
15:24
|| status
I am currently alive!
👍
well, what it does is displaying a little interface where a person picks a date (hence the name). When a date is picked, the assigned input elements gets a change event. No other events would occur. In theory. If you are getting input events, that is probably you have a cursor on the input field and allow people to write in that input.
I am not sure if
("#dpicker").datepicker()
gives back a jquery object that wraps #dpicker element
if #dpicker is your input element, I would expect this
$("#dpicker").on('change', function() {
alas, in the function body, if you want to get its value, use this.value lol. Not $(this).val() which performs unnecessary execution of code
So through my dom: option of my datatable to control the layout, I removed the default "search" bar, and replaced it with <"toolbar">
dom: '<"toolbar"><"right"B>rt',
And defined the following after outside my table
$("div.toolbar").html('<input type="text" id="dpicker" autocomplete="off">');
$("#dpicker").datepicker().on('change', function() {
    var v = $(this).val();
    table.search(v).draw();
});
15:31
@BeerusDev 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.
.datepicker() isn't necessary there
unless that's the entirety of your datepicker initialization
It is
So when I do search, it doesn't show the current week count as anything anymore, just 0s for everything. What if I overwrite the same spans for each day+status. and on change it will show that, and when I clear the search I wonder if it would return to the original count
that code looks fi ne
I am just not sure if I could pass those count objects through the scope of the datepicker change function. I init. them inside of my table declaration, and the .datepicker() is outside of it.
hi there, I have a question about modules in js.

when you have a module with lets say socket connection there.

when you import that module into different places, will there be multiple socket connections?
I am looking for something like a static?? class or a singleton? hmm
one time initialization of a socket (or what ever) and use it everywhere in the app
15:43
depends
0
Q: I have a question on the onClick Event because it doesn't work maybe I think is missing something so I'll share my code to get your help thanks

Edison Jao5Hi everybody Im Trying to make that when I click the button it will make the request to the API so im using React and Bootstrap 5, before this on my main component I had the searchText as a parameter in the conditional instead clickSearch because when I typed it made the request and the butto...

that's a title
The grammar there is impeccable
@Suisse define "multiple pages"
actually, each page has their own socket(s)
if you want to have one socket per use and have it traversing through multiple pages, it is possible, but it require a quite setup with the backend. This is not secure as well. I would just create a new socket
What if I save the innerHTML to a variable, then overwrite it and set a timeout before it goes back to the original innerHTML
using timeouts to manage events is not a wise idea
15:58
:(
@KarelG sorry for not being specific.
multiple pages is meant multiple files.. (react components..)
@Suisse still, security-wise it's better to create a socket each time
when I create a class with static methods..
which has a static initialize() method

in there a websocket is created


now when I import it in fileA, will it do a new initialization? or can I somehow use it?
I think I messed up some stuff hmm and don't know where to start
yeah, you need to step back and check your requirements
is having a shared socket really required?
@KarelG hmm I don't think thats correct - imagine my user is connected into the app via websocket

now he clicks on a link which changes the route to a new component (SPA) now it would disconnect him and reconnect him
that is not the idea I think
when websocket would live in window, it would work perfectly
@KarelG yeah since its a single page application.. It should connect once, till the user close the app.. whatever he is doing in the app while he is there
 
1 hour later…
17:32
!!PrototypeJS
Invalid command! Did you mean: crustypoop, roasted, choose? Try help for a list of available commands..‍
Ohhh. crustypoop how could I misspell that
prototypejs.org/learn/extensions.html anyone familiar with PrototypeJS .update()
wdym familiar with
like, know more about it than the docs?
the docs even link to the sourcecode for it
Correct
what more is there to know
17:36
Just curious if anyone has used it before
Well nvm, the .update() is deprecated
i've never used prototypejs
18:21
> It doesn't make sense for us to start reconfiguring parts of the page at this time when we know that we need to do foundational work to determine what information is most useful.
meanwhile
(i got a phone call)
> Based on research, we also decided to move badges up within the profile as well.
Isn't, like, all of PrototypeJS deprecated?
Last release in 2015, so basically yes.
 
3 hours later…
21:46
Hello
🗃
In some websites, when browser resized a menu appear, Any guide to how a know this by javascript?
How I do this .....
22:03
like
there's an on resize event
you can put logic in it that does stuff
And for small width devices I want the menu to appear also ...

« first day (3946 days earlier)      last day (1227 days later) »