« first day (3666 days earlier)      last day (1504 days later) » 

01:12
ABC
ABC
01:32
....
anyone know ag-gridster?
 
4 hours later…
ABC
ABC
05:18
is it possible to select a grid/item from the dashboard using the angular-gridster2?
i am trying to use pageHide on iphone it did not work like onbeforeonload method default
window.addEventListener("pagehide", abort)
Can we identity the close browser reload and back in phone
Event
onbeforeunload is working fine on Android and website but I need to same like this on iPhone please
user13218044
05:59
h1
@VelrinBlack 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.
user13218044
hi
user13218044
anyone know react here?
06:29
yes, please tell
@jaibatrik 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.
@jaibatrik am trying to use pageHide on iphone it did not work like onbeforeonload method default
window.addEventListener("pagehide", abort)
Can we identity the close browser reload and back in phone
Event
onbeforeunload is working fine on Android and website but I need to same like this on iPhone please
 
3 hours later…
09:59
Anyone is there?
10:12
Hi there
@clapas 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.
10:32
@RaheelAslam I googled react native pageHide and my second result (stackoverflow) report it as a known issue on iOS Chrome, and some alternative solutions.
@Sheepy "visibilitychange" and other not working. is it problem of browser or IOS devices?
@Sheepy Have any alternative solution I have many tries to this on iphone not properly working.
11:25
question about document ready()
if i have a callback function which creates an element , is it enough to use the document ready function at the beginning or also before the callback function ?
 
2 hours later…
13:02
@Amundsen what?
14:00
Hi, I am having the exact issue described in this question: https://stackoverflow.com/questions/44267756/how-to-skip-the-choose-account-pop-up-with-google-sign-in-when-requesting-an-add

Nothing I tried helped, including the existing answer.
Does anyone know how to solve this issue?
@DovidGefen 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.
14:58
Hi All,
Can anyone give me a hand with an AJAX call in an MVC project please?
maybe
I'll try then.

I have an AJAX call posting data.
The url is 'ProductBatch/ProcessProductBarcodeString'

This works fine locally, but when released to the live environment the AJAX post can't find the URL, unless i put 'BatchScanningWebsite/ProductBatch/ProcessProductBarcodeString'
is there a way i should format the URL like './ProductBatch/ProcessProductBarcodeString'
if and only if the two live on the same website and are served from the same port/protocol.
aka same origin
Yes they are a part of the same project.
I dont understand why locally it resolves to http://localhost/BatchScanningWebsite/ProductBatch/ProcessProductBarcodeString
But the released version resolves to http://localhost/ProductBatch/ProcessProductBarcodeString
15:06
that's probably dictated by your webserver moreso than the app
Yes, I thought it might be to do with the routing in project
15:26
hey, has anyone encountered his problem? I'm making a bar chart and giving it some colors. The first time it loads it has the correct colors and then if you refresh it loses the colors. If you refresh randomly the coloring will come back. This one has me rather stumped.
Any ideas on what could be wrong would be great as I'm lost on this one. It's obviously getting the right css file otherwise you'd never see the right colors.
user14520680
Maybe check whether you're inserting the right classes or ids
15:54
sounds like a race condition
Most likely your code that does the coloring isn't running at a well defined point in time relative to when the elements that are being colored get added to the dom
yay
i found another xss in the wild
huge company too $15+ Billion
Are you getting a nice payout for it?
nope. they dont have a bug bounty program. :(
Too bad, a company that size should probably have one
16:02
be proud of me kevin
!!choose imperials or stormcloaks
stormcloaks
im convinced the random algo for choose is broken
Math.floor(Math.random() * message.args.length)
it seems to go for the second arg more
16:13
!!choose || !!
||!!
say '<([a-z]+) [^/]?>
did you james is vulnerable to markdown injection?
||> '`'
@JBis ""` Logged: `` Took: 0ms
16:15
wait, maybe not on SO. On slack it is.
16:33
Planning to move from Angular 8 to 10. Started a self project for learning. However I'm getting this error while using animations.
> ERROR in node_modules/@angular/platform-browser/animations/animations.d.ts:37:22 - error NG6002: Appears in the NgModule.imports of AppModule, but could not be resolved to an NgModule class.

This likely means that the library (@angular/platform-browser/animations) which declares BrowserAnimationsModule has not been processed correctly by ngcc, or is not compatible with Angular Ivy. Check if a newer version of the library is available, and update if so. Also consider checking with the library's authors to see if the library is expected to be compatible with Ivy.
Any idea why this happens?
nvm
@JBis What kind of Markdown Injection?
||> hello <a name="n" href="javascript:alert('xss')">*you*</a>
@MisterSirCode "SyntaxError: Unexpected identifier" Logged: `` Took: 20ms
I doubt it can parse markdown
so what do you mean
||> >()[>()]
@MisterSirCode "SyntaxError: Unexpected token '>'" Logged: `` Took: 10ms
Does it support any default javascript methods?
||> Math.floor(1.93)
16:44
@MisterSirCode 1 Logged: `` Took: 0ms
Seems so
user14520680
i saw this notation in an SO question: return (<div class="<insertclassname>">Text</div>) (didn't remember all the html) wouldn't this throw a syntax error or is it a framework specific thing?
@expressjs123 Can you link the question?
Thats definitely not normal, its probably framework specific.
@MisterSirCode you could output a ` and it would mess up the markdown
@MisterSirCode yep
except setTimeout
user14520680
@MisterSirCode stackoverflow.com/questions/64592358/… Scroll to the end of the code
17:35
I'm still using angular 1.6
17:53
@expressjs123 Yeah thats definitely a react-specific feature. Not normal javascript.
reactjs*
not the library
18:05
||
18:18
@H-H 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.
¯\_🚽_/¯
19:04
posted on October 29, 2020 by Lakshmana Pamarthy

 The Beta channel has been updated to 87.0.4280.40 for Windows, Mac and Linux. 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 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. Lakshmana Pamarthy

19:54
How to find the reason why fetch function does return null stackoverflow.com/questions/64561318/…
does console.log(json.someKey) output null?
or what
or is it still GetJSON that's returning undefined
headers
{} is neither null or undefined
@KevinB The function didn't reach to this point
the image you posted has a headers tab
that will contain the response code from the server
20:06
then it all looks fine
i suspect that log entry isn't the same entry as the code you are quoting. a 200 response to a post request without a CORS error in your console means it's a success, and response.ok should be true.
if it isn't true, you're probably looking at the wrong request.
or, are ignoring a cors error
backend/fetch.jsw/GetJSON
The requested URL is right so it looks like this is the right request
Why does your question show a different url than the one you're showing in images?
that tutorial is also... 4 years old, quite possible it's out of date
official docs are probably a better source of info
20:22
@KevinB could be
but either way, you need to inspect the request in the dev tools
fetch is pretty consistent in how it handles requests. there's only so many reasons response.ok would be false.
@KevinB Thanks, are you talking about Postman?
no
F12
@KevinB Do you know where could I find google documentation for this ?
20:37
you're trying to refresh a token, correct?
Hi
I have this jquery ajax script which works fine
var Room_Id = $("#Roomnum").val();
$.ajax({
    url: 'getStudents.php',
    type: 'post',
    data: {Room_Id:Room_Id},
    dataType: 'json',
    success:function(response){
    console.log(response);
but when I use change function
user14520680
@PHPFan what change function?
 $("#Room_Name").change(function(){
  var Room_Id2 = $("#Roomnum").val() ;

$.ajax({
    url: 'getStudents.php',
    type: 'post',
    data: {Room_Id:Room_Id2},
    dataType: 'json',
    success:function(response){
     console.log(response);
It returns an empty array !
Should it be empty?
20:44
No there are records
Are you sure?
your results seem to indicate otherwise
yeah SELECT * from students where room_id=7
it returns records
Are you sure room_id = 7 when that code runs?
yeah I used alert
What causes $("#Roomnum") to change?
The change event is on a different element than $("#Roomnum")
20:47
yes the change event is on Room_Name and the Roomnum is changed as it changed
does it change before or after
what makes it change?
The fact is, you're passing an id that results in no results.
that's undeniable
after
(unless your php is faulty)
    var a3 = $("#Room_Name").find("option:selected").text();
     var b3 = a3.substr(0, a.indexOf('-'));

     document.getElementById("Roomnum").value = b3;

     $("#Room_Name").on('change', function () {
      var M = $("#Room_Name").find("option:selected").text();

     N = M.substr(0, M.indexOf('-'));

    document.getElementById("Roomnum").value = N;
  });
20:50
err?
couldn't you use the value attribute of options instead of splitting?
then you could simply do $("#Room_Name").val()
and not care about roomnum
In which line
well
all of them
most of the lines would be rendered redundant
@KevinB Really I don't understood u
k, ignore that bit for now then
look at what you're sending ot the ajax request
console.log it
20:57
@KevinB Thanks..
or, better yet, look at your network tab
7
it sent
then it sounds like you have a php problem, or your databse doesn't contain what you think it does

« first day (3666 days earlier)      last day (1504 days later) »