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

1:12 AM
 
ABC
1:32 AM
....
anyone know ag-gridster?
 
 
4 hours later…
ABC
5:18 AM
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
5:59 AM
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?
 
6:29 AM
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…
9:59 AM
Anyone is there?
 
10:12 AM
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 AM
@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 AM
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…
1:02 PM
@Amundsen what?
 
2:00 PM
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.
 
2:58 PM
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'
 
Morning
 
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
 
3:06 PM
that's probably dictated by your webserver moreso than the app
 
Yes, I thought it might be to do with the routing in project
 
3:26 PM
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
 
3:54 PM
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
 
meh
 
4:02 PM
be proud of me kevin
 
!!choose imperials or stormcloaks
 
stormcloaks
 
im convinced the random algo for choose is broken
 
y
 
Math.floor(Math.random() * message.args.length)
it seems to go for the second arg more
 
4:13 PM
!!choose || !!
 
||
 
||!!
 
say '<([a-z]+) [^/]?>
 
did you james is vulnerable to markdown injection?
||> '`'
 
@JBis ""` Logged: `` Took: 0ms
 
4:15 PM
wait, maybe not on SO. On slack it is.
 
4:33 PM
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)
 
4:44 PM
@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
 
5:35 PM
I'm still using angular 1.6
 
5:53 PM
@expressjs123 Yeah thats definitely a react-specific feature. Not normal javascript.
reactjs*
not the library
 
6:05 PM
||
 
6:18 PM
@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.
 
¯\_🚽_/¯
 
7:04 PM
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

 
7:54 PM
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
 
8:06 PM
 
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
 
8:22 PM
@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 ?
 
8:37 PM
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?
 
8:44 PM
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")
 
8:47 PM
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;
  });
 
err
 
8:50 PM
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
 
8:57 PM
@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
 
ok
 

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