« first day (1923 days earlier)      last day (3250 days later) » 

13:00
@Grumpy Welcome to the JavaScript chat! Please review the room pseudo-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.
user3119231
@Grumpy welcome. Just ask. Don't ask to ask.
        So, I'm trying to get some ajax to process a form - the problem is my form utilizes some checkboxes. I'm having an issue getting this to work properly.

                         var chkElem = document.getElementsByName("addTeammates[]");
        					var addTeammates ="";

        					for(var i=0; i< chkElem.length; i++)
        					{
        						if(chkElem[i].checked)
        							addTeammates = addTeammates + "|" + chkElem[i].value;
        					}
    var dataString = 'assigned='+assigned+'&uniqueid='+uniqueid+'&addTeammates'+addTeammates+'&addTech=1';
user3119231
to be honest: this isn't jquery, my good ol' friend.
@Maurice JavaScript is a jQuery plugin
user3119231
go home, @littlepootis, you're drunk.
13:02
a co-worker complained about pain in his back. I asked the caused. his reaction " i started with windshield wipers practice, of which i certainly underrated ". I had to stare at him. Then he showed this page. Walked away laughing
Your right, that bit isn't isn't jquery, I wasn't sure how to use jquery to get all the data from the checkboxes. I'm very new to jquery/ajax and even javascript in general.
user3119231
So you have 2 options: Learn vanilla js (which is much faster) or jquery (you noticed the missing "js" = javascript in the name? Means it isn't fast as vanilla)
@Grumpy i hope you know that your query is vulnerable for SQLi ...
jQuery is an abstraction over the DOM and a few other interfaces.
@KarelG How?
13:04
it doesn't replace JS in any sesnse.
it is js
@Maurice I really just need to be able to post string of all the checkboxes that are checked over to my php script
I have the ajax in place, the problem is getting the string properly
@Maurice Zeptojs has js but slow
user3119231
@Grumpy can you make jsfiddle.net and add the html aswell?
It's a dynamic checkbox list
Populated by PHP
13:06
BUt I will throw all the code in there, hang on
user3119231
@Grumpy do console.log("bla"); 's to check where the script fails.
When I was a kid one chased me.. for NO reason.
In my JS?
user3119231
@Grumpy yes, in your JS. console.log / alert is JS. Seriously, no joke.
13:08
i live on the countryside. when i invite friends for a birthday party, kids from cities are always afraid of the cows/chickens/goats/sheeps here.
i just wander between them
That's some nightmare code right there
Oh hell yeah!
neat
@Cerbrus nice
13:09
It appears as though it makes it through the entire script from start to finish. Maybe the problem is on my php side?
user3119231
@Cerbrus is yours?
There we go
I wish
I just need the helmet
But damn that's sexy
user3119231
13:10
One day, if I am king, king of the world, I will gift you all a motorcycle of your choice.
and two katana, a tight suit
not the same, but looks nice
@Maurice I tried to log the addTeammates var in the console log, and it looks like its an empty var (after the for loop)
@rlemon I wouldn't wear that on a bike though :P
no, it is for airsoft
13:12
The helmet in that photo is custom made by the owner of that bike, by the way
@rlemon And for looking cool as fuck
:(
if you google deadpool bike helms, the ones you can buy look like shit
so I posted that :P
Oh I've looked :P
@Maurice any advice on generating that string?
Same for Master Chief helmets :P Most of them are absolutely horrible
user3119231
13:15
@Grumpy I'm in office. I will now have a look at it.
@Maurice Okay. From earlier: "I tried to log the addTeammates var in the console log, and it looks like its an empty var (after the for loop)" (Not sure if you saw it or not)
user3119231
@Grumpy try this, please:
user3119231
var chkElem = document.getElementsByName("addTeammates[]");
var addTeammates ="";
for(var i = 0; i < chkElem.length; i++){
	if (chkElem[i].checked){
		console.log(chkElem[i].value);
		addTeammates += "|" + chkElem[i].value;
	}
}
var dataString = 'assigned='+assigned+'&uniqueid='+uniqueid+'&addTeammates'+addTeammates+'&addTech=1';
console.log(dataString);
user3119231
You got some serious syntax errors. Please pay attention to closing brackets
This one is awesome though: necaonline.com/51331/products/collectables/prop-replicas/… And it's actually a certified motorcycle helmet :P
Expensive as hell, obviously.
13:20
@Maurice That worked for the output, thank you.
not sure if that helmet is legit in my country
user3119231
@Grumpy you're welcome. here a full example: jsfiddle.net/qvz9a57t
@KarelG: What country?
Belgium
Hm, let's see
13:21
motor drivers even aren't allowed to use jeans and leather jacket when driving a motorbike / chopper
Oh yea, I read about that, recently. You're required to wear full gear right?
user3119231
In germany it is allowed (afaik)
user3119231
@Cerbrus How much you're paid to do your job is completely irrelevant on SO. - You're da real MVP
The helmet only has DOT certification.
yes. full gear
13:24
what's wrong with jeans
Which isn't enough, in the Netherlands. I'd imagine the same counts for Belgium
@KarelG wtf?
@Cerbrus please vote on issues on the GH repo <3
@Maurice *takes a bow*
@BenjaminGruenbaum Anything in specific?
Here, peeps wear nothing but inner wear (in rural areas only, ofc)
13:25
@Mosho less protective than a motorcycle pant ?
@littlepootis I always wear full gear any way.
user3119231
Safety first, I would say.
is there a lot traffic, asphalt road and high speed movement ?
If you don't value your limbs, go ahead and ride without. Doesn't matter how experienced of a rider you are....
I guess
can also ban bikes altogether
what a shitty edit comment
would be even more protective
> this guy doesn't even correct his stupid mistake!!! a non-learner.
sounds like a real winner that one
@Mosho Straw man
user3119231
13:28
It hasn't to be your fault. I mean think about a car which hits you
exactly
@SomeGuy nahh figured out how to run them 7 per nano
user3119231
@rlemon we already raged a lot about this. nevermind :D
@rlemon I'm tempted to flag that for edit war... That Praveen could use some mod love... @MadaraUchiha?
@Cerbrus there is already a mod on the post
he is likely in the chat as well
lemmy find him
13:29
Oh?
meager
Excellent
user3119231
how can I do a quote? (seriously)
@meagar @meagar @meagar
13:30
> your text here
> your text here
:D you say his name three times right>?
@rlemon: When looking in the mirror, not?
user3119231
48 mins ago, by Maurice
Nevermind. I just wanted to help him. I don't care about any rep. It's just debugging the code to show him how valid JS looks like.
user3119231
Edit-war? Please.
I don't care about that
13:31
He's contesting your edits on your posts.
his edit comment was stupid
and that
> this guy doesn't even correct his stupid mistake!!! a non-learner.
And he's a massive rep wh****
Some Country vs France is technically a war. Althougth France doesn't do anything.
13:32
Always answering shitty questions instead of closing
user3119231
Hm, maybe he needs attention and reputation as Cerbrus said.
should be enough IO :D
> 54 Digital I/O Pins (14 PWM outputs)
16 Analog Inputs
@rlemon: I've worked with those before
Fun stuff
yea
I just need more IO than I have currently with my other boards
btw
13:33
making that clock I posted yesterday
you can use the internal clock as timer if it's accurate
will need 24 io, 3 pwm
but it varies from device to device
@KarelG gonna connect a rpi1 with wifi dongle to it
let it sync
@Loktar if you picked up deserts of kharak, lemme know how it is
13:35
so you're using 2 devices ? :p
that or I get a wifi addon
but I already have the other hardware
so why not
i've purchased this 3 days ago
gotcha experiment with it when i get that :-)
I have ~300 of those :D
nooo
what are your experiences with it ?
13:37
only problems I've had is changing specs and one boot issue
vote reminder friendly ping @rlemon
That's used 2 of those boards
I suppose I don't need a real timer if I just put some buttons on it to change the time manually after it is on
as long as the internal timer is accurate enough to tick 1 second
i need to purchase a microSD, so that i can run an UNIX distro on it
considering debian
13:39
Angstrom sucks
don't even bother with it
ASR
ASR
I want to stop initial loading of data for the first time, how to do it in jquery?
TIL: Got image urls that won't onebox because they don't end with a image file extension? Add #.jpg.
.abort() ?
@KarelG you want to run Debian off a microSD?
yes :P
if it doesn't fit, i can strip it
13:40
don't get a 2gb sd?
8gb micro sd is pretty cheap
yeah
11 euros for one of scandisk
that's enough for debian. it requires 5 GB with desktop. (1 GB for core only )
Hi guys, someone has experience with WebTrends? Can you help us with this question? stackoverflow.com/questions/34923237/… Thanks :)
@KarelG I wouldn't run a desktop environment
ofc not lol
i don't have a screen
the core is enough
you can connect hdmi
13:43
oh
but ONLY when not using a cape
might have missed it
which is fucking lame
something about power distribution
user3119231
13:45
@rlemon is possible to protect his own question?
i've also purchased an audio cape
user3119231
even without any answer? stackoverflow.com/questions/30551249/… is this a "standalone" question? :P
my goal is to make a sound device from it. On term, maybe a movie player with VLC
but i need to figure to join that with an other device. That beagle handles the sound and another handles the video (to screen)
then last step: WiFi, so that it cna use my media server to stream movies/series
but i guess that i will face serious problems before giving up :/
I'd rather use usb 3.0
@Maurice yea that looks odd as hell
13:49
I AM SUMMONED.
Also only just awake and only one sip into my first coffee, morning all
user3119231
Morning.
@meagar you must be central
EST
It's 8:50
user3119231
GER 14:51 here.
I'm working from home today and tomorrow, so sleeping in is a thing
13:51
ahhh
@rlemon Which is the question in question?
@meagar I envy you
I was about to say, 9am and you're just now getting coffee!
@rlemon it's 3pm in CET
13:51
revision 4
(Specifically, this revision stackoverflow.com/revisions/34923670/4 )
Thanks @rlemon
@Cerbrus Wait, what. This is all about a slash facing the wrong direction?
It's about a user misbehaving
@meagar now, not to witch hunt or anything but it was also pointed out the same user protected his own question for... what purpose? also, I wasn't aware you could protect a question on which you are the only active person :P
7 mins ago, by Maurice
even without any answer? http://stackoverflow.com/questions/30551249/cpanel-email-address-authentication-‌​using-php is this a "standalone" question? :P
13:54
@meagar This was a missed chance for a epic "TOO SOON! You have awakened me TOO SOON, rlemonus" intro, by the way. </WoW>
> rlemonus
Which is now unprotected
@rlemon The original guy in there is called "Executus"
@Cerbrus 20K power?
user3119231
- nevermind -
@Cerbrus Execitrus
13:55
I have an "Unprotect" option.
rlemonus ... that's a nice wording
cerberus
doesn't work for you
Karel Gus
:/
Cerbrusus
user3119231
last word:
user3119231
> @Cerbrus Agreed Agreed Agreed. For now I need to make my negative answer into a positive one. I am explaining one by one. :) – Praveen Kumar 1 hour ago
user3119231
13:58
I need to make my negative answer into a positive one
So, to summarize: That user protects his own question for no reason, Writes borderline offensive edit reasons while disputing the Op's edits, and generally misinterprets how SO works, as long as he gets rep from it. @meagar
> The beard cushioned the impact. ( a comment on this )
user3119231
This makes a hunter, a rep-hunter.
Awesome sauce

« first day (1923 days earlier)      last day (3250 days later) »