« first day (4009 days earlier)      last day (1161 days later) » 

00:44
posted on October 07, 2021 by Harry Souders

Hi, everyone! We've released Chrome Beta 95 (95.0.4638.42) 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. Harry Souders Google Chrome

01:43
hi
Hey.
02:07
can you help to convert javascript to jquery?
@Smaller 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
i need convert to jquery method -> jsfiddle.net/abilashu/kwx7rdc9
any expert can check please?
 
2 hours later…
user16278360
04:26
import React, { Component } from 'react'
import axios from 'axios'

class PostForm extends Component {
    constructor(props) {
        super(props)

        this.state = {
            key: '',


        }
        console.log(this.state)
    }

    changeHandler = e => {
        this.setState({ [e.target.name]: e.target.value })
    }

    submitHandler = e => {
        e.preventDefault()

        axios
        .get(`127.0.0.1:8000/hvals_hash?key=${this.state.key}`)
        .then(response => {
user16278360
How to fetch API response on the web page
13:10
o/
14:09
like that
Guys, there is a website that logs messages on console in chrome. I want to access the console messages and do something based on the content? Is there any way to achieve this?
in an extension maybe
Say when it logs "Event triggered" on console I want to create a alert popup
Thank you for replying. So an extension can have access to console messages? Are content scripts similar to extensions?
i dont know, i don't work with extensions
 
1 hour later…
15:29
Guys, how can i import a js file from node_modules into another js file ? x/
15:44
import 'foo/module';
not working, i tried many ways :'O
15:56
depends on the file
and the module
 
1 hour later…
17:11
Does anyone know if there is a socket.io-type solution which allows for communication to occur between browser tabs?
socket.io
that requires a node.js server, though, right?
Yes
If you want a local connection:
45
A: JavaScript: sharing data between tabs

brilloutFor a more modern solution check out https://stackoverflow.com/a/12514384/270274 Quote: I'm sticking to the shared local data solution mentioned in the question using localStorage. It seems to be the best solution in terms of reliability, efficiency, and browser compatibility. localStorage is im...

I understand localStorage. I'm seeing if there is a push system that doesn't require a node.js server
|| mdn storage event
looks promising! thanks!
17:36
Hey
Why am I getting the following: TypeError: Cannot read properties of undefined (reading 'Date')
@BeerusDev read the error message and tell me what the problem is
that Date is undefined
How is that not the correct mapping data.Days.Date
Wait don't answer that.
data[i].Days.Date
Now I still get undefined
> TypeError: Cannot read properties of undefined (reading 'Date')
> TypeError: Cannot read properties of undefined (reading 'Date')
undefined doesn't have a Date property
What is common between both data and Days
Array of Objects
¯\_(ツ)_/¯
17:49
sheesh got it
your error was farther down the line, right?
caused by the initial data[i].Days.Date
because that line wouldn't throw that error, Days isn't undefined
greetings
@Tee'sTouch 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.
it's an array
ohhi
	for (i=0; i < data.length; i++){
  	if(data[i].Days[i].Date = newV){
    	  console.log("Found a match!");
    }
  }
17:52
oh, that could throw an error
really?
yea, if there are more items in data than Days later in the loop
also, there's an error in your conditional
i am having errors with my code..am new here too..possible to get some help?
its the =
==
yeah, just ask, if anyone's available or wants to help, they will
17:54
ok thank u
Thats weird, it works with the =, but not the ===
=== is for comparison while the = will assign
if(data[i].Days[i].Date = newV){ passes based purely on the truethy value of newV, but also it overwrites the value of data[i].Days[i].Date which can cause other weirdness down the line
@Tee'sTouch 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
Badabing, badaboom
$("#datepicker").on('change', function() {
  var v = $(this).val();

  data.flatMap(t => t.Days).forEach((dayArray) => {
    if (moment(dayArray.Date).isSame(moment(v), undefined, '[)')){
      console.log(dayArray)
    }
  });
});
18:10
@Tee'sTouch 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
apologies
seems to be getting the format wrong
Ctrl+K
ctrl K for just the code part right?
yes
Send separately
ok
i am using this function below to add amount and quantify to my form
To create dynamic form, which works fine..anytime I click on the function it adds a new form

The problem is I have some ngModelChange in the amount to help me check for percentage
My problem..anytime I do the quantityChange model, it keeps changing all dynamic forms..becos
addQuantityassets(): void {
    this.subitem55().push(this.newAssets());

}


   <input
                            id="qty"
                            [placeholder]="'Quantity'"
                            [ngModel]="qty"
                            (ngModelChange)="quantityChanged($event)"
                            matInput
                            [formControlName]="'qty'">





quantityChanged(percent: number): void{

    this.totalx = percent * this.formattedAmount.replace(/[^\w\s]/gi, "");
i wish i can add a screenshot here
note: i am using angularjs
18:15
You can upload screenshot
how can i?
Do you not have an upload button to the right of your chat box
I think it is a privilege
18:16
oh ok
Do you have imgur
hmm no
there is a website for sharing screenshots
Can upload it there and paste the link, its free
cant remember
gyazo
18:17
ok one second
my question..can u help?
18:41
@Smaller ah, some things stay the same i see
19:26
posted on October 07, 2021 by Srinivas Sista

The Stable channel has been updated to 94.0.4606.81 for Windows, Mac and Linux which will roll out over the coming days/weeks. Extended stable channel has also been updated to 94.0.4606.81 for Windows and Mac which will roll out over the coming days/weeks A full list of changes in this build is available in the log. Interested in switching release channels? Find out how here. If you find a new

I am stuck
I am confused how transformedResults is not defined. I restructure my AJAX response and push it to an empty array called transformedResults. I do this in loadAttendance();
$(document).ready(function(){
$("#datepicker").on('change', function(transformedResults) {
var v = $(this).val();

let pCount = 0;
let twCount = 0;
let nrCount = 0;
let trvCount = 0;
let ptoCount = 0;
let hCount = 0;

transformedResults.flatMap(t => t.Days).forEach((dayArray) => {
    if (moment(dayArray.Date).isSame(moment(v), undefined, '[)')){
    //console.log(dayArray.Status)
    switch(dayArray.Status){
        case "P":
            pCount++;
        break;
        case "TW":
        twCount++;
and I get transformedResults.flatMap is not a function since transformedResults is not defined
I could easily move that event function inside of my success function, but I do not want to do that
 
3 hours later…
22:20
posted on October 07, 2021 by Krishna Govind

Hi, everyone! We've just released Chrome 94 (94.0.4606.80) for Android: it'll become available on Google Play over the next few days. This release includes stability and performance improvements. You can see a full list of the changes in the Git log. If you find a new issue, please let us know by filing a bug. Krishna Govind Google Chrome

22:56
posted on October 07, 2021 by Matt

The Beta channel has been updated to 94.0.4606.77 (Platform version: 14150.52.0) for most Chrome OS devices. This build contains a number of bug fixes, security updates and feature enhancements.  If you find issues, please let us know by visiting our forum or filing a bug. Interested in switching channels? Find out how. You can submit feedback using

23:08
posted on October 07, 2021 by Daniel Gagnon

The Dev channel is being updated to 96.0.4657.0 (Platform version: 14263.0.0) for most Chrome OS devices. 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 submit feedback using ‘Report an issue...’ in the Chrome menu (3 vertical dots in the upper right corner of the browser


« first day (4009 days earlier)      last day (1161 days later) »