« first day (2597 days earlier)      last day (2576 days later) » 
00:00 - 20:0020:00 - 00:00

20:00
already had issues this morning. bought the new wolfenstein
downloaded it
went to play it. just goes from 'running' to 'syncing' to 'ready to play'
so started the refund
yeah that game is buggy af
it's why it's 50% already after about a month after release
I don't plan on buying it
user4272288
if posible consume a rest api (json) with javascript? cause' i have a problem with this my browser's console show me "Request header field Authorization is not allowed by Access-Control-Allow-Headers in preflight response."
user4272288
@CapricaSix thaks
20:12
663
Q: How does Access-Control-Allow-Origin header work?

markApparently, I have completely misunderstood its semantics. I thought of something like this: A client downloads javascript code MyCode.js from http://siteA - the origin. The response header of MyCode.js contains Access-Control-Allow-Origin: http://siteB, which I thought meant that MyCode.js was...

20:32
bloody hell
Finally finished animating this cockpit startup sequence for our intro. #pixelart #screenshotsaturday #gamedev #indiedev #videogames https://t.co/6TRvaAKB6k
20:52
hey, I'm working on a short article about methods of parsing html, would anyone might giving the draft a quick look-over? medium.com/@zirakertan/… (cc @BenjaminGruenbaum)
a friend just installed ubuntu and doesn't know much about it. Time to have some fun. What tricks should I pull?
@Zirak does medium not have syntax highlighting?
you might need to specify the language. Just short tip
nope
Editorial mistakes, whether I missed any notable methods, or if it was interesting/not interesting
!!zalgo he comes
@BenFortune hͮ̓͗̉͒̂ͬ̑͋̃̔ͮ̓̈̉̉͠҉҉̗̗̘̰͇̳̦̥͚̱̥͇e̴̛̹̝̠̝͐́ͩ́̾ͫ́̏̍͡͝͡ ͍̺̹̗̙͚͚͙̙͓̫͎̥̹̳̿ͦͦͬ͗̂͊̋͢͟c̛̞̰͕̮̞̮ͣ͗͐͂͑ͩͦ̀ͦ̄ǫ̴̴͋̇̃̂͑̃̒̉ͦͤͫ͏̰̪̙͚̟m͛͑̌̓͊͜҉̴͖͙̖͇͇̮̲‌​͇͔͖̞e̴̘̼̠̣̖̼̺̣̰̰͕͈̹͕̖̎̾ͧ̇͌̊͗̅̓̚̕͠͡͠s̼̲͈̦̠̠̻̲̀̾ͪͨ̉̍ͬ̃ͩ͛̅ͥ̽̑̇͊͢
@Zirak Maybe add some what not to do's
21:14
I have an odd question (beginner here). I'm inserting some stuff dynamically into a database with javascript instead of a normal form with post method.
I'm trying to post input fields that aren't part of the same form from a page to php to insert. Any ideas??
$.post('../savenote.php', { name: 'note-title', name: 'note-details' }, function() {
        alert('success!');
    });
I want to pass a textarea with name "note-title" and a textarea with "name-details". I'm pretty sure I'm doing this wrong.
!!> ({name: 'this will not work', name: 'because you just replace the property'})
@rlemon {"name":"because you just replace the property"}
Wait, are you expecting jQuery to magically get the value of your textarea?
So you have a <textarea name="note-details"...?
@BenFortune My only firm suggestion is not to use innerHTML, I'll tack that at the end
@Zirak I was thinking more on the regex side, but I guess that's irrelevant
21:25
@BenFortune I haven't even thought of the "implement your own" section
Thanks
I caved and bought NFS Paywall
I mean Payback
Does anyone have Safari at their disposal and doesn't mind testing something?
Does the following alert or not: new DOMParser().parseFromString('<svg onload=alert("meh")>', 'text/html');
Not in 7.1
Neat!
It's the only one I had on browserstack lol
21:38
Wait isn't 7.1 ancient?
Yeah, sorry
it's ok
21:58
Hi guys
Does anyone has an idea what's wrong about this
$.validator.addMethod("postalcode", function(value, element) {
return this.optional(element) || /^[0-9]{4}[A-Za-z]{2}$/.test( value );
});
what seems to the wrong with it?
Well when I get a code like 1234AB i still get a error mesage
if this.optional returns false, it will totally skip the regex
try splitting them up and logging the results of each check?
22:16
But in the validation js you have for example for the valid of an emailadres:
email: function( value, element ) {
return this.optional( element ) || /^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test( value );
},
well, validating emails with regex has problems of its own
Hello, I just wanted to throw this question out there, does anyone here class utilities as part of the 'core' ? I just had an argument with my friend about it.
@VoiDHD Welcome to the JavaScript chat! Please review the room rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
@ssube I have now
1 message moved to Trash can
@Arthur Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
22:26
But no different
$.validator.addMethod("postalcode", function(value, element) {
						if (this.optional(element))
							return true;
							return /^[0-9]{4}[A-Za-z]{2}$/.test( value );
					}, $.validator.messages.postalcode);
can you walk through this in the debugger or add some logging?
that will probably shed more light on what is wrong
make sure there are no errors in the console as well
I think something with the regex, I you look here you have af example:
jQuery.validator.addMethod("laxEmail", function(value, element) {
  // allow any non-whitespace characters as the host part
  return this.optional( element ) || /^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@(?:\S{1,63})$/.test( value );
}, 'Please enter a valid email address.');
22:41
I have now:
$.validator.addMethod("postalcode", function(value, element) {
return this.optional( element ) || /^[0-9]+[A-Za-z]{4,2}$/.test( value );
}, $.validator.messages.postalcode);
And then by 1234A no error and 1234AB an error again
is the convention in react to use React.cloneElement to pass props down into Children?
and if it is, can you use that convention but still have required prop-types in your children components?
23:16
@ssube

This code works good

jQuery.validator.addMethod('postalcode', function(value) {
	return value.match(/^([a-zA-Z0-9]+)$/);
});

And then with my regex not

jQuery.validator.addMethod('postalcode', function(value) {
	return value.match("/^[0-9]{4}[A-Za-z]{2}$/");
});
23:40
@Arthur value.match(/.../) is a regex, value.match("/.../") is a string. Is that intentional?
return value.match(/^[0-9]{4}[A-Za-z]{2}$/); either does work
The regex from stackoverflow.com/questions/10439666/… : [a-zA-Z]{2}\d{6} like AA123456 also not working
@ssube Strange, this old code:

jQuery.validator.addMethod("postalcode", function(value, element) {
	return this.optional( element ) || /^([a-zA-Z0-9]+)$/.test( value );
});

with only letters and numbers regex works good
00:00 - 20:0020:00 - 00:00

« first day (2597 days earlier)      last day (2576 days later) »