« first day (440 days earlier)      last day (4730 days later) » 
00:00 - 20:0020:00 - 00:00

00:26
anyone who wants to help me with this?
http://stackoverflow.com/questions/8674662/jquery-div-and-class-selector
00:44
<div id="1_semester"></div> is different to <div id="semester"></div>
I have problems catching this element
anybody?
What does "catching" an element mean?
$(".submenu_more#1_semester") doesn't work
$(".submenu_more#semester") works
there is something for underscores or numbers that i am missing?
ids are always, always, always unique
If you have multiple elements with the same id, which you do, you subject your document to undefined behavior
yes now, it's all clear..
thx
01:04
can anyone shed some light on how functions work when they're called like so: foo('bar')('baz')
@Baehr In this case foo needs to return a function. It's like this: var func = foo('bar'); func('baz') but more compact.
Ah that makes perfect sense. Thank you so much to the both of you
In case you wonder where it's used: Currying is a good example of it
oh shit the memes are back
damn you Luke Mahe for teasing me
01:28
ok this is just wrong ?
-1
A: jQuery: how to compare multiple inputs

Esailijavar allHaveSameValue = $(".inputclass").toArray().every( function( input, index, inputs ){ return input.value === inputs[0].value; }); https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/every http://jsfiddle.net/zTSag/1/

I am missing something, dunno what. but didn't have any comment
0
Q: Correctly use PHP variables in WP Localize Script

ZachI've been struggling with this for a few hours and am hoping that you can point me in the right direction. I've been using this tutorial to help me understand how wp_localize_script works (which is awesome by the way). First, I enqueued my script as such: function of_load_scripts() { if (!i...

02:24
RT @mathias: WebKit just got a CSS selector profiler: http://trac.webkit.org/changeset/103803
02:36
RT @codylindley: opera dragonfly DOM inspector rocks! Select a DOM node & it shows (grey) from which prototype the node inherits. http:/ ...
02:53
ff9 beta tokenization engine: can't find silentLineFeed() method, any idea where it's hidden?
Yes, searched through all files.
Wait, only searched cpp files... maybe in idls...
 
4 hours later…
06:37
0
Q: How to classificate the level of a javascript programmer?

Comun CorporationFor example what can I expect from a junior, senior and expert? Thanks in advance.

 
1 hour later…
07:38
0
Q: Is Javascript a Functional Programming Language

Marek Is Javascript a functional language? I know it has objects & you can do OOP with it also, but is it also a functional language, can it be used in that way? You know how OOP became/seems like the next evolution in programming, does that mean that 'Functional Programming' is the next evolution...

 
2 hours later…
10:03
0
Q: Browser freeze - How to handle or optimize 50,000 rows in one Html select element more then several time?

GoogleI have increasing table which already has records of 50,000+. So in a combo box i have to load it, so that it shows which one is selected and its a main record which need to be selected and based on that it spread other relational records. But when i load it the whole web browser freeze. How do...

10:51
!!/online
11:02
Those make me sad
> jQuery is amazing as you can find plugins to accomplish almost anything you want. It makes your work easy and quick.
RT @stoyanstefanov: Performance calendar day #29: @stubbornella on CSS Selectors http://calendar.perfplanet.com/2011/css-selector-performance-has-changed-for-the-better/
You better be prepared for the next Top 50 JavaScript, jQuery Plugins and Tutorials From 2012
11:19
is there any good sdk for javascript or jquery?
any one here?
11:34
@WAPGuy javascript has all the SDKs bundled in it, what more can you want?
11:58
hi all
how to close an iframe from the js/html loaded into it? What js code should I use?
Define close
Close === remove?
destroy the extjs window widtget that holds the iframe from within the html/js code loaded into the iframe
I'm not sure you can do that
this means i cannot do it at all?
12:01
You can call functions from inside the iframe
There must be a way
some workarounds like parent etc.
Haha
hahahha
12:04
-2
Q: what I should learn first php, asp.net or JavaScript?

AkiI know how to code on C# & have good understanding of .Net, so will I learn asp.net next? what are the benefits? why php? & I am totally confused about JavaScript, I mean, shall I have to integrate JavaScript code with other language like asp.net or php or it stands alone own its own?

@Vlad parent.document.body.removeChild(parent.document.getElementsByName('frameToRemov‌​e')[0]))
I think that should work
Or use document.getElementById or whatever selector you want to
I think it should work
Oh, by the way, the domains would have to match
thanks
I'm not sure it'll work, though
parent.document.body.removeChild(
    parent.document.getElementsByName('frameToRemov‌​e')[0];
);
hhh, i first have to add an id to the extjs window. cannot try this now, :) dont know the id thing in extjs
Doesn't extjs have that option built-in?
12:20
@Zirak How's the Node server bot coming along?
I still haven't started porting to Node. I want to move the IO to be xhr-based (implement the polling myself and sending messages directly via xhr) before moving it to Node
Hmm
parent.document.removeChild(parent.document.getElementById("id_string"))
gives error cannot find node
parent.document.body
parent.document.body.removeChild(
    parent.document.getElementById('id');
);
ya it worked. but do you know what happens now
12:29
What?
the window widget is gone, but the shadow frame around it still stays :)
We'd have to see the markup for that
and you cannot click on the elments that were below the player, but they are visible :D
below the window, sorry
Give us a link to the page
cannot its local
12:31
Upload it someplace
Better yet, just upload a skinny test case
i would have sent you image but I on agreement, anyway the window is gone but the shadow frme around it stays :)
Then fuck extjs
and the inspect elemnt show it is only the shadow on the page
yes fuck extjs :)
Ok I improved the meme bot a lot... longer timeout, can have spaces in memename and auto correct
~meme show "things asd" "javascript has" "all the sdks"
@Esailija Generating image
the auto correct function is like n^10 though lol
12:42
Is there any place to see the list of available memes?
@julioolvr all memes or just the memes the bot recognizes?
The ones for the bot
~meme list
@Esailija Created memes:
all-the-things - 12 images cached
y-u-no - 16 images cached
interesting-man - 5 images cached
disappoint - 4 images cached
philosoraptor - 9 images cached
donald-trump - 3 images cached
over-9000 - 1 image cached
forever-alone - 2 images cached
courage-wolf - 0 images cached
good-guy-greg - 1 image cached
joseph-ducreux - 3 images cached
suspicious-spiderman - 2 images cached
are-you-a-wizard - 0 images cached
insanity-wolf - 1 image cached
futurama-fry - 5 images cached
Nice! Thanks
how to remove lement by its class name
?
why this doesnt work
parent.document.body.removeChild(
parent.document.getElementByClassName('x-css-shadow')
);
12:50
Here's a hint: get ELEMENTS By Class Name
@Esailija :D
@Zirak :D
parent.document, remove child takes a node, it's getElementsByClassName
so much fail
i shouldnt use getElementsByClassName in this case?
if you want to remove all elements with class x-css-shadow?
[].forEach.call( document.getElementsByClassName("x-css-shadow"), function( elem ) {
	var parent = elem.parentNode;
	if( parent ) {
		parent.removeChild( elem );
	}
});
or with jQuery $(".x-css-shadow").remove()
13:07
!!/alive
@Zirak I LIVE!
o.o
I'm gonna take a nap. Enjoy.
@Esailija thanks
you seem to take a lot of naps
@Esailija elem.parentNode && elem.remove(); ;)
Although .remove isn't implemented in any browser
13:08
I am 91, after all. Why otherwise would my profile say "Age: 91"? Kids these days.
Heck the elem.parentNode check is overkill, all nodes returned from gEBCN have parents
Don't want to accidentally remove document :P
@Zirak Go nap, old man!
you are removing elements in a loop, they might lose parentNode
@Amaan Can I make chocolate milk first? :(
13:13
@Zirak document isn't an element so it doesnt have a className
l2 appreciate difference between Document and Element
for example walk recursively will fail with error when you do blind elem.parentNode.removeChild and will stop walking
I think it's because gEBCN returns a NodeList
Yep.
Made it an array with only references to the elements and it worked
14:07
I've asked this question about passive view pattern in JavaScript half year ago: stackoverflow.com/q/6315485/184883. As the only answer was about backbone, which isn't really a passive view, I wonder if there are new frameworks coming up the last time.
14:46
-1
A: Javascript return in function

Pranay Ranayou need to attach function with button click and need to write return. <asp:Button id="btn" OnClientClick="return doDelete();" Text="Button Click" >

I am sad
Before we had people assume jQuery
now we have people assume .net
Urban dictionary on 'Jesus'
@AndreasKöberle whats a dumb view?
Views need view rendering logic
like loops
there needs to be some mechanism that turns an array into a list of DOM nodes
~meme show "insanity" "no jquery tag" "assume asp.net"
@Esailija Generating image
user image
3
hmm.. I don't think that fits insanity... is there something like retarded wolf?
15:14
@Raynos Sure the view needs some logic, but not that much. Starting with backbone I've realize that you that its some time hard to unit test the views, cause they depend on the templates an jquery. So you end to test the jquery logic as well.
you should test the jquery logic
I write templates
and I damn well test templates
@Raynos I think its common sense that a unit test should test only the unit not the code it depends on. So testing jquery logic in your code will let your tests fail when there is bug in jquery.
but your not testing jquery :
thats like saying dont test code that runs in a browser because it fails when there is bug in browser
and there are shit tons of bugs in browsers
it depends
In our large GWT app we only test the business logic, not the view
The trick is to split your app View and Presenter, so that you can test your presenter in a headless browser, like phantomJS. Having no rendering logic in your presenter, there is no need to test it in the browser.
Btw. the most browser bugs are DOM related, which is another reason to not test your business logic in a real browser
15:57
0
Q: Fade in and fade out in pure javascript

HakanI decided to build my own fade in fade out function, since that is all I need on my page. Here it is. Please comment on things I can make better! <!DOCTYPE html> <html> <head> <title></title> <meta charset="utf-8" /> </head> <body> <di...

16:11
@AndreasKöberle thats because GWT views are made of epic trolls
@AndreasKöberle I appreciate that. The solution is use EDA and have aggressively loosely coupled modules.
With EDA the entire view layer is optional and can be plugged in and out whenever you want
@Raynos LOL
Hi
at the centaur thing :P
@Raynos What's EDA?
16:48
Any one have few minutes to help here please.. thank you.
How can I make the Html.TextBox take only input from the calendar plug in and not from user typing? Right now I have Html.TextBox linked to a Jquery Datepicker plugin but it is taking input from both user typing and calendar pick...
user1385191
<input [...] readonly type="text" [...]> or el.readonly = true;
I am using Html.TextBox not <input type="text".....>
user1385191
what in the world are you talking about?
user1385191
important distinction between disabled and readonly: disabled controls cannot be "successful" while readonly controls can
I think that he's talking about something ASP related
user1385191
17:01
oh great...
~meme show "interesting-man" "I don't always create html <input> elements" "but when I do, they are Html.TextBox"
@Esailija Generating image
user1385191
oops
user1385191
entities are for XML/HTML, silly
chat converts them but I reconvert them in my localhost code, that's strange
17:02
Probably because you're using encodeURIComponent
Oh
echo html_entity_decode( "&lt;" ); "<" so it should pass correctly to memegenerator api... dunno what happened
Maybe they don't allow it at all
Holy crap. I went to the next page
typical unnormalized database query
17:12
If I had to deal with that, I would quit on the spot.
what data could that possibly retrieve anyway
Event-driven architecture (EDA) is a software architecture pattern promoting the production, detection, consumption of, and reaction to events. An event can be defined as "a significant change in state". For example, when a consumer purchases a car, the car's state changes from "for sale" to "sold". A car dealer's system architecture may treat this state change as an event to be produced, published, detected and consumed by various applications within the architecture. This architectural pattern may be applied by the design and implementation of applications and systems which transmit ...
is there a wtf-driven architecture?
Yeah, it's called .NET
5
o/
@Esailija its the query anything you want query
it does a big switch over the input
Why have multiple stored procedures when you can have
doQuery('tableName', 'columnName', flagA, flagB, flagC, flagD, flagE, flagG, flagH, flagF, flagI, flagJ)
17:26
needs about 800 more flags
Looks like some code I worked on last week
The function, not the query
fscking god functions -_-
does anyone know how i can put <%%> inside a .html() statement in jquery
user1385191
alright, who tagged this room "ASP.NET"?
.html( <% %> ) copy paste it from there before they run away
17:45
lol -42 reputation for a lousy answer is a lot
0
Q: Defining classes in JavaScript that exist in your back-end

tkoneDoesn't it seem relatively duplicative to define your Models in your backend code AND on your front end for a rich internet application? I'm porting a GUI application I had written to have a web interface, which is all grand and nice any all, but things like Spine, SproutCore, JavascriptMVC woul...

@tehdoommarine troll
To be fair though, it is The Lousy Answer
the worst answer in the history of answers?
document.write, a switch instead of a hash/array, the month abbreviations vary in length, it doesn't answer the question, it was posted years after the question already had an answer
18:13
the .html("<%%>") does not work
Hahaha
might be an asp.net problem
when i test run the page, the page displays as .html("")
@tehdoommarine ASP.NET is a server-side language. You can't evaluate ASP.NET on the current page using JavaScript.
oh is there a way i can write those characters on asp.net page in jquery
18:24
What?
user1385191
YOU ARE USING A SERVER-SIDE PROCESSING LANGUAGE. WHATEVER THE LANGUAGE OUTPUTS IS SENT TO THE CLIENT.
user1385191
<?php echo "I'm in your client"; ?> //"I'm in your client"
~meme show "fry" "not sure if client" "or server"
GGG
GGG
uggggh
i just read that
yeah but I was so raged I couldn't come up with anything new
GGG
GGG
18:29
how does this happen :(
@tehdoommarine are you trying to write those exact characters? Maybe you need to escape them in ASP?
GGG
GGG
ok no
that topic is over
yes i want to write the exact characters
@tehdoommarine I don't know ASP, but Google for escaping characters in ASP, probably is trying to evaluate those characters as an expression or something like that
@tehdoommarine but besides that, it's not a Javascript question anymore, as someone said, if you get it to print .html('<%%>'); to the final page, it will work
user1385191
18:35
it's easy to send data to the client inline
user1385191
however—as with most inline code, it tends to get very ugly
user1385191
use HTTP requests to fetch data instead
yes I think those are primary concerns of someone who writes asp.net pages in jquery
user1385191
I finally see why the Linux people think the GNU people are lunatics
user1385191
18:43
in fact, anything below the BSD style on that page is pure lunacy
GGG
GGG
what i lve the gnu indentation style :(
2 spaces is plenty
oh wth are they doing with that bracket
0
Q: Is there any javascript pitfalls with this approach that I might be missing?

asawyerI have a model with a number of complex/simple properties that has a corresponding strongly typed view, that calls EditorFor to a custom editor template view for the model. One of the form's requirements is to auto fill the form based on a choose of values from a database. Previously, I had the...

user1385191
I've been quite happy with the K + R style
GGG
GGG
yeah that bracket thing is nuts
i thought gnu style was basically just the two spaces thing
user1385191
what's interesting is I don't see a style where the opening function brace is on the same line as the function definition
GGG
GGG
18:52
"egyptian style" - it's for loosely typed languages imo
because the first line of the fn decl doesn't get that long
(no types)
and then you just do it everywhere for consistency i guess
user1385191
I tend to use this:
user1385191
function fooDoesBazInTheBar(
	bing,
	bang,
	boom
)
{
	if (true) {
		return true;
	} else if (false) {
		return false;
	}
}
GGG
GGG
idk, i do two spaces and egyptian brackets everywhere =/
except strongly typed languages, then i do brackets on next line
user1385191
8-character tabs
GGG
GGG
ewwf
i also usually work an a crappy laptop with a not huge screen
so i gotta save space ;)
but i've been doing 2 spaces forever honestly
that's probably about as far as i read thru the gnu coding standard years ago ;)
user1385191
18:59
the style I posted is all about space
user1385191
the Linux style guide says you get 3 indentations per function
user1385191
so essentially an if block and a for loop
user1385191
this style helps keep your functions short and sweet
GGG
GGG
yeah but sometimes you have a function in a class with a switch inside with some ifs or something
that's a lot of spaces right there with only 2 indentations in the function itself
@ggg why would the typing of a language affect which brace style you prefer?
user1385191
19:09
strict typing means more typing
GGG
GGG
my (completely made up) account of how egyptian braces evolved goes something like
weakly typed languages have first lines of shorter function declaration
user1385191
each parameter needs to have a type as well as the function itself requiring a return type (aside from constructors)
@MattMcDonald \n ) \n { is ugly as hell
well, the length difference between, say, var and UITableViewDataSource isn't two characters…
user1385191
@Raynos your alternative to potentially long function definitions?
19:11
options object
so Egyptian style is more about having each parameter on its own line, and less about where the open brace goes?
GGG
GGG
that's the point, consider a method in c++ that takes 5 typed vars and overrides a method on the parent class
this thing is already gonna be on two lines
no the each parameter on its own line business is just Matt's thing i think
i just squeeze them all in there and put a docblock
I hurd u liek ping
GGG
GGG
@Raynos wat
function someReallyLongDescriptiveName(
    paramA, paramB, paramC, paramD
) {

}
@MattMcDonald see above
user1385191
19:15
in a dynamic language that works, but not in a static
GGG
GGG
that name would have to be long as balls
I just personally find ) { prettier
user1385191
and I only use the parameter-per-line style when the call/definition is too long
user1385191
(over or around 65 columns)
GGG
GGG
but if you used less spaces in your tabs you wouldn't have to ;)
props for sticking to a reasonable line lenght though
user1385191
the last one is best I find
user1385191
clear, maintainable, easy to edit
I like the two lines style sometimes
if its like 85 char
and then I rage because I turned one line into 8 lines
user1385191
I've been moving that kind of data to "generate" methods that specifically return it
19:36
i can't post my question
Display message: Sorry, we are no longer accepting questions from this account. See goo.gl/C1Kwu to learn more.
What should i do?
i don't want to lose my reputations
user1385191
> An automatic filter is in place to ban questions from IP addresses or accounts with a history of extremely poor questions.
so i wiil try to login with vpn
hope that will fix the problem
;)
user1385191
no
user1385191
you've been tagged as a poor user
for how long?
user1385191
19:40
read the link
as long as it takes you to stop being a help vampire
ok, i want to ask something about split method..
I am having problems with special characters (& ,....)
how long have you been programming
user1385191
1 message moved to bin
user1385191
use pastebin.com or pastie.org
19:44
amateur about 4 years
because if it's longer than a week there is no hope
@user726730 I've been programming for 3 years :(
@user726730 if you want to be unbanned from stackoverflow start answering questions
Start contributing
The only questions i know to answere is about php/jquery or css
How can i filter this questions?
use tags
follow those questions
19:59
"Some people get confused about how commas work. They think they should be delimiters rather than separators. Now you can think about them either way." - from here: youtube.com/watch?v=UTEqr0IlFKY#t=8m01s
What's the difference between a comma delimiter and a comma separator?
00:00 - 20:0020:00 - 00:00

« first day (440 days earlier)      last day (4730 days later) »