« first day (964 days earlier)      last day (3987 days later) » 

10:03 PM
So I decided that when the form is submitted, instead of using JQuery validation to validate the email field, I will instead just direct the form to a PHP page that checks and redirects to the next page if true.
What do you guys think?
 
.vote-count-container.stars .img{
   text-indent:-9999px;
   display:none !important;
}
@DemCodeLines you seriously still on that?
 
Yeah, the last time I worked on it was the day you attempted to help me.
And I was delaying it because I was tired of being stuck on it. Eventually decided I will stop wasting time and delaying the result by using the simple approach instead and later integrate the feature.
 
@DemCodeLines its simple to validate yourself without a plugin
so, you just want to check if the email is in the DB? that's it?
 
Well, I am not extremely well with javascript.
Yes, that's it.
Just like that simple, "this email is already registered" kinda thing that you see everywhere.
 
@DemCodeLines ok so you need to create a php file, check if it is in database if it is NOT then echo 'false'; else echo 'true';
 
10:07 PM
Yeah and that is what I currently have. My struggles and failures come as soon as JS enters the picture
 
do you still have the js?
 
I do.
 
PHP Hypertext Poop, That's what PHP stands for
 
i can help you via teamviewer if you like
@Gacnt +22.9
@DemCodeLines ^^^
 
user1125394
any opinion on TypeScript?
 
10:09 PM
I kinda don't want that. Perhaps a different chat room would be better, but I kinda want to maintain the privacy, if you don't mind.
 
!!/mustache powerc9000
 
@Gacnt someone killed her :(
@DemCodeLines a different chat room wont help because you can't find out what the errors are so good luck (Y)
 
-
 
@Gacnt Yes serios
 
Well, I don't really want to do the teamviewer option
 
10:12 PM
 
it's fine :)
cool
 
I have a question.
Why is it, that if I type
`var i=4; i.toString()`
in my console, I get "4",
but if I type 4.toString(), I get an error.
Also, 4..toString() works as expected. What gives?
 
@Connor I can send you screenshots if you want.
 
@BrianHannay because numbers can have decimal places
 
10:16 PM
@BrianHannay also 4 is not a variable...
 
So 4..toString is interpreted as "The number 4.0 calling the function toString"?
 
@BrianHannay correct
 
Okay
Thanks!
 
So, I have a question. Why does console.log break Javascript on IE?
 
10:27 PM
I oz back
because ie knows not of your console
 
I guess that's a NO then? @Connor
 
user1125394
hmm let's validate that form with ws://
 
@rlemon... why my ul li bullets no worky lol takethewaste.co.uk/?page_id=16
going out my tree!, somethings overriding it somewhere!
its ok, .. me being a dumb broad
 
lol
my work here is done!
 
honest its late.. i think i need bed lol
 
10:36 PM
well....
 
user1596138
Haha this is the bewbs person!! @KirstyHarris
 
I have feminine features. your partner wouldn't mind.
 
@ShotgunNinja If you haven't opened the IE developer tools in the current session, console is undefined
 
na i bet she wouldnt.. shes a bit of both ha
 
10:38 PM
especially after she gets a look at my metaballs.. bitches love the metaballs
 
user1596138
@rlemon you see that ping with the script I used?
 
yup
 
lmfao
ok.. right im off, because zzzzs are needed, laterz
 
anybody uses google calendar? its not sending the email reminders...
 
user1596138
Complaints?
 
10:39 PM
few
 
user1596138
@sebas I use it at work for a few things. It works fine for me.
 
nextSibling isn't safe, picks up textNodes in some browsers
and clientHeight, I would have used offsetHeight.
 
user1596138
@rlemon If you want to share them I'd appreciate it. Constructive criticism is great.
 
@Jhawinsss does it send you the email reminders for the events? Ive tried everything its not sending them, the popup notifications work, but the emails dont
 
and heightx/xx are both globals, you know that right?
 
user1596138
10:40 PM
@rlemon About the height... I really didn't know what to do at all. I've never had to get an element's height that was set to auto. I was thinking computedStyle? But offsetHeight is a thing?
 
user1596138
@rlemon Huh??
 
offsetHeight is a thing.
function foo() {
  var x = "I am not a global because of var";
  y = "no var, so i'm assumed global now";
}
 
user1596138
Well of course. But... Nevermind I don't need to ask. I can find the doc on it myself haha.
 
user1596138
@rlemon Fuck!! I forgot! That wasn't my intention. I'll have to change it.
 
that is why we have code reviews ;)
 
user1596138
10:43 PM
Do you think I should use delete heightx? I didn't see the point because it will be overwritten anyway but I don't know if that's normally done for something like this.
 
you can use nextElementSibling in lieu of nextSibling but you have to shim it for old ie
do you use those variables anywhere else?
 
!!/youtube DMX X gonna give it to yah
 
user1596138
@rlemon Much review for such a small function hahaha. I like when people tell me what I'm doing wrong/oddly. I don't like when people just say it's "bad" and won't elaborate. So thanks man.
 
user1596138
@rlemon Nope. They're used once when the page loads to determine the height and then they aren't needed.
 
function Height(elm) {
	var height = elm.height + ( (elm.nextElementSibling && (elm.nextElementSibling.offsetHeight)) || 0 ) + 20;
	elm.parentNode.style.maxHeight = height + 'px';
}
 
user1596138
10:45 PM
I'm going to use a var for the height that is determined that way when the user clicks "Read Less..." it goes back without having to re-measure.
 
@rlemon are you a canadian citizen
 
yes sir. I am in fact native american as well.
 
user1596138
@rlemon I wondered how I would do this in a single definition. That's much better...
 
I'm as Canadian as it gets.
 
Were you born in canada
 
user1596138
10:46 PM
Beer on me if I ever end up in Canada.
 
@Jhawinsss you're bad
and you should feel bad
 
@Gacnt o_O
shame on you for asking this
 
@Shmiddty Get off that hate wagon
 
@Gacnt you're hate
 
Koalas be haters man. He's just playing his part.
 
10:48 PM
and you should feel hate
 
I swallow your hate
 
> Fuck bamboo! - Koala
 
erm
 
You still poundin that little Ewok or what
I got mine to dress up like Chewbaca, that's what I'm all about
 
!!s/- Koala/- Panda/
 
10:49 PM
I was going to make a follow up joke saying > Give me the <food I eat>, but then I realized I don't know what they eat.
@Shmiddty that was the joke. they be hatin on bamboo
 
oh I see
Eucalyptus is what koalas prefer
 
Your hate, blinds the jokes, young one
 
sounds about right.
 
@Gacnt You can call me young when you're out of your tweens
 
is 22 a tween
 
10:51 PM
practically
 
user1596138
@Shmiddty Exactly. Haha
 
@Shmiddty wait, arn't you only like 25?
 
user1596138
@Shmiddty She is dead.
 
27
 
Old fuck
 
10:51 PM
@Jhawinsss I know
@Gacnt Immature twat
 
my gf seems to remember you saying you were older than her on D3 ;)
 
Oh god I got bread stuck on my palate
@Shmiddty I love it when you talk dirty to me ;)
 
xoxo
 
<3
 
8===D ({})
 
10:53 PM
!!s/ / ~o ~o ~o /
 
  _   wtf is going on?
 / '.        .--.
 |   \     .'-,  |
 \    \___/    \_/
  '._.'   '._.'
    /  . .  \
    |=  Y  =|
    \   ^   /
     `'---'`
 
anal sex
 
yay my gf is standing in the annoying registration line up so I don't have to on my days off
^ Is a correct statement.
 
Excuse people how to know the position/location of the user with Javascript
 
geolocation?
 
10:54 PM
anyways, I'm taking off. see you guys tomorrow
 
  _   oh! continue...
 / '.        .--.
 |   \     .'-,  |
 \    \___/    \_/
  '._.'   '._.'
    /  . .  \
    |=  Y  =|
    \   o   /
     `'---'`
 
@Shmiddty Later bruh
@MirkoCianfarani navigator.geolocation
@BadgerGirl ^
 
var location = prompt('Please enter your location') || 'user is a douche';
^ future proof
 
@rlemon You watch that video above :P?
 
10:56 PM
nope
drinking beer and eating sour patch kids
so I'm pretty much all tied up at the moment
 
Watch it dude, it's hilarious tell me what you think
0:20 is that the cats teeth
or what
 
@Gacnt My cat ran away. Thanks :(
 
@BadgerGirl Like I knew that homie
It's not ran away, just gone for a long walk
T'will be back
 
user1596138
@MirkoCianfarani Lol what....
 
this I search ...
now search example...
 
user1596138
10:58 PM
@MirkoCianfarani That's the doc. You can't figure it out or what?
 
"Deer diary, I have been stalking an insect on the wall for the past 3 days now, all of my attempts to catch it have been thwarted. However today upon further inspection, I figured out that the insect was in fact a thumb tack.. There is no logic in this place." - Cat
 
but this need Jquery
and I want use pure Javascript @Jhawinsss
 
user1596138
navigator.geolocation.getCurrentPosition(GetLocation);
function GetLocation(location) {
    alert(location.coords.latitude);
    alert(location.coords.longitude);
    alert(location.coords.accuracy);
}
 
user1596138
Should be pretty obvious with that.
 
user1596138
That's copy/paste from a doc on it. I've used it before. Just store the data in variables and do whatever you need with it from there instead of alerts. You can't get around prompting the user for permission to access locations though, so don't ask.
 
11:03 PM
In Greek mythology Sisyphus (; Greek: , Sísyphos) was a king of Ephyra (now known as Corinth) punished for chronic deceitfulness by being compelled to roll an immense boulder up a hill, only to watch it roll back down, and to repeat this action forever. Mythology Sisyphus was son of King Aeolus of Thessaly and Enarete, and the founder and first king of Ephyra (supposedly the original name of Corinth). He was the father of Glaucus, Ornytion, Almus, and Thersander by the nymph Merope, the brother of Salmoneus, and the grandfather of Bellerophon through Glaucus. King Sisyphus promoted n...
That would suck..
 
user1596138
@MirkoCianfarani You good?
 
yes... this is pure JAvascript...
thx @Jhawinsss
 
I don't even know why I answer
 
user1596138
@MirkoCianfarani Cool. Have fun.
 
user1596138
@Gacnt I watched that yesterday...
 
11:08 PM
lert(location.coords.accuracy.lookthesquirt); why not function??? :P
 
user1596138
@MirkoCianfarani What....?
 
eheheh funny....
I watch the squirt in live...
 
user1596138
Cool man.
 
JQuery ticks me off
 
11:28 PM
@DemCodeLines Now we're getting somewhere!
 
We are, but its still annoying. Its not cooperating at all with me. I have tried like 20 different tutorials. None of them help.
 
Have you tried doing it with vanilla JS?
 
I haven't.
 
user1596138
@DemCodeLines What are you trying to do?
 
Trying to validate if the email entered by the user in the form already exists in the database.
 
user1596138
11:35 PM
@DemCodeLines ah... Count me out.
 
user1596138
@DemCodeLines I mean.... Idk. You got an example so far? Or are you pretty much at square 1?
 
@Jhawinsss He's been working on this for over a week. More like square root 1
...Which is still 1. I am bad at derogatory puns.
 
user1596138
Hmm... Hahahaha.
 
@Raynos You go to any meetups around here?
 
11:38 PM
Well I used some tutorials, but none of them really produced the correct result, at least not the one I needed.
 
Good beer! I haven't drunk beer in a long time
 
@SomeKittens some, sometimes
 
Seriously though, this thing has halted the entire development process for the past 2 weeks.
 
user1596138
Well, you're validating data against a database. Why use JS? Sounds like a bad idea.
 
To do it live. Like instantly, instead of redirecting to another page which validates then redirects back.
 
11:50 PM
 
user1596138
@DemCodeLines Sounds like you'll be having fun with security next.
 
What site is this for?
 
While it doesn't fit a specific category, let's just say the closest it comes to is a social media website.
 
as in, URL?
 
Its not live.
 
11:57 PM
hey guys, just wondering... is it a good pattern to set new properties on DOM elements? ... like: image = new Image, image.foo = 1
 
Why not?
(If you're setting anything that is not default)
 

« first day (964 days earlier)      last day (3987 days later) »