« first day (1748 days earlier)      last day (3206 days later) » 

1:00 AM
you don't go into steps ,details, you don't make an attempt to create a minimal example
 
if you run loading a page with an accordion it will crash the webpage, so you need to load the whole page of data
 
so your problem is that $.ajax isn't executing your javascript?
is that right?
 
yes, when new data loads
 
RTFM
 
!!define:RTFM
 
1:02 AM
You know you're banned from using the bot, right?
 
if your code is on the main page, delegation solves it. if your code is in the page loaded there is an option for it, read the (fine|fucking) manual.
 
consumes popcorn
 
No, he doesn't understand sentences.
 
I'm pretty sure we went over this 10 minutes ago
 
i do understand sentences
 
1:03 AM
Please rephrase in the form of a picture.
 
mmm
 
@php_purest at the end of the day the problem is not with the library, but your use of it.
please don't bother them in that bug thread further. that is a polite request.
 
pancakes covered in tree blood, my favorite.
 
@Luggage spoken like a true Canadian
 
1:04 AM
why can't the jquery functions scan for the executible req, and fire off the right function?
 
Blood isn't sticky
 
@rlemon that is a sponge
 
@php_purest I already answered that
 
or more likely corn syrup and 'natural flavors'
 
@Meredith actually it can be quite sticky
 
In america, we have "original syrup"
 
@rlemon where is this (fine|fucking) manual.
 
You are a saint, @rlemon.
 
1:08 AM
@Meredith If you're haemophiliac.
 
I only buy grade AA syrup and it has to have a maple leaf on the side
must be genuine imported canadian product
anything else is not good enough for my refined taste
 
I'm anemic does that count
 
@php_purest if you are not handling the api properly it is not their fault. If you want something included in an open source project you should learn their coding standard and create a pull request maybe. I suggest you figure out how to load scripts via jQuery.ajax on stackoverflow
 
so no one familiar with d3 in here then i take it?
 
that is what they suggest, and honestly it is the right course of action
 
1:09 AM
I only buy syrup with racist caricatures on the bottle.
 
@Meredith It counts, it's just not relevant. :-)
 
:L
 
i am handling it properly, since it was coppied from the ui
 
Are you sure?
 
@php_purest no you are not
 
1:10 AM
yes, and i did add a few minor commands into it
 
@ʞɔᴉN Whenever I want pancakes for breakfast I book a flight to Canada and bite into a tree.
 
@Luggage tastes better that way
@KingMob you don't even use the tap?
 
why wouldn't the ui include an accordian with ajax if there's something special required for it?
 
All your progress, rlemon, was an ILLUSION.
 
@ʞɔᴉN No. And then I canoe home and save on the air fare.
I don't have pancakes very often.
 
1:13 AM
@php_purest DUDE! webfarm.io/scripts/expanders.js THERE IS NO BUG! YOU CALL THE $('#accordion') ON LOAD AND THEN REPLACE CONTENT! JAVASCRIPT AND LIBRARIES ARE NOT FUCKING MAGIC! THE PROBLEM IS IN YOUR CODE!
sorry for the yell-type all
but jesus fucking christ
you're pissing off a Canadian
that is a big deal
 
I'll alert the queen.
 
Jesus wrote in all-caps.
 
we don't answer to her anymore
 
so run the bottom code?
 
also I'm native
 
1:15 AM
@KingMob No, everyone knows he used red ink
 
so I worship the moose god
@php_purest buddy. you load the page and setup the accordion. THEN you make new content and never run the function again. think about how you could solve that
 
aww
 
and when you figure it out apologize on that bug report (not being rude, just offering a suggestion)
 
@KingMob what happens when you hit the Niagara Falls?
 
@ʞɔᴉN It hits back. Ain't nobody can mess with our falls.
 
1:17 AM
@KendallFrey I once had a mechanical typewriter, and you could buy a red ribbon and type everything in red. In all-caps, obviously.
 
Whenever I want to write in red, I use the blood of a freshly-killed virgin orphan ginger.
 
that's now illegal in 3 states
 
still breaks
 
@ʞɔᴉN 'Splash!' if I'm drunk; 'ploop' if I have good form.
 
@Luggage Your mom's face is illegal in 49 states.
 
1:20 AM
@KendallFrey she's always welcome here though
 
with only the top function
 
........
thank god for alcohol.
 
I'm experiencing a deranged schadenfreude from watching this.
 
:P
 
I'm getting fat from all this popcorn
 
1:21 AM
You can use the same shit to run your car and make you unable to walk. How amazing.
 
my philosophy is: if you are angry online you've lost to the trolls.
so I might pretend to be mad, but I'm not.
 
So can we just classify him as a troll and kick him out, now?
 
but you never kicked @Nick
 
@ʞɔᴉN I'm getting popcorn from your fat.
 
if he continues bitching about his problem now that we've solved it? yes
 
1:22 AM
this isn't new.
 
can someone attempt to write a jquery ajax refresh and wrap it around an accordion just to try it themselves?
maybe the issue can be solved
 
2
Q: JQuery UI Accordion not working with AJAX loaded content

PugsOverDrugsI am attempting to dynamically load a page of product info, that has an accordion menu for the user to browse. I bring in the content for the accordion dynamically using AJAX after a button click. The HTML for the accordion is showing up in the manner that it should, but the accordion "method" is...

 
@ʞɔᴉN I've been kicked many times
 
it has been solved
your google-fu is weak
#1 attribute of a good developer is googling the fucking problem
 
@Nick oh?
 
1:23 AM
he comes in all helpless until some sucker tries to help, then proceeds to not understand everything they say until people just get so tired of him that they ignore him or kick him.
It's a drain on the channel.
 
it's a drain on the soul
 
I've been that sucker many times.
 
@Luggage i'm just watching netflix.
and I like to try to maintain a certain level of "i'm trying to actually help"
 
I get that, but it's not like this is someone new.
If you think he's going to one day change..
 
chat.stackoverflow.com/… this is me recent list of "fuck off good luck"
 
1:24 AM
I'm not entirely sure he's not really a troll and laughing at us all
 
lol
 
each statement is perfectly calculated for maximum effect
 
it feels like it.
 
@ʞɔᴉN Mustard
 
The Moriarty of JavaScript chat.
 
1:26 AM
and only I have the glasses that let me see him for his true self:
 
there is no working solution here: stackoverflow.com/questions/23373268/… so it only works that way in theory
 
apparently that is what a troll looks like
 
Write your own code
 
lol
@php_purest it is a solved issue, give it up./
search so and google and solve it
you're blaming others for your own problem here
 
1:27 AM
i have, and it works on a page load, but not a section load
 
that is because you have a bug in your code/understanding of how web works
I've tried to explain why it is a problem
you refuse to listen
 
no, i do listen, they just don't fire automatically
 
they are not meant too
 
AHAHHAHAHAHHAHAHAHHA
 
rlemon is now determined to prove himself patient.
 
1:31 AM
maybe they should be meant to on ajax by default
 
can somebody help me with this reg exp?
var test = new RegExp('/'+rule.selectorText+' {|}| /g');
var attribs = rule.cssText.replace(test, '');

if i just replace '+rule.selectorText+' with it's actual value (p for example) it works fine. I've never used regexp before so I'm at a loss
 
@php_purest maybe you should not expect the libraries you use to hold your hand and do everything for you
 
but.. but... jquery..
 
lol
 
@Luggage right?
 
1:34 AM
> Wite Less, Do More Do Magic!
 
recursion: $($)
@DanieClawson so new RegExp('/p {|}| /g'); works and new RegExp('/'+'p'+' {|}| /g'); does not?
 
@DanieClawson Better read an example in the documentation, and it should become clear to you.
 
assuming you think selectorText is 'p' and new RegExp('/p {|}| /g'); works, then selectorText must not really be 'p'.
 
No actually... I just assumed so until just now. What works is when i put it in directly ie .replace(/p { |}| /g,'')
 
Hint: You should be passing two parameters to the RegExp function
 
1:38 AM
but i don't know that that regex is trying to do..
 
I'm accessing a style sheet and trying to parse it into an object
 
ah. so the new regex('some string') vs a regex literal: /some string/
 
39
A: How to get a style attribute from a CSS class by javascript/jQuery?

rlemonI wrote a small function that traverses the stylesheets on the document looking for the matched selector, then style. There is one caveat, this will only work for style sheets defined with a style tag, or external sheets from the same domain. If the sheet is known you can pass it in and save y...

might help
 
I'd double check that you need /'s in the regex string.
 
not exactly the same, but it is a start
mind you StyleSheet objects are read only
 
1:40 AM
/ab+c/i;
new RegExp('ab+c', 'i');
new RegExp(/ab+c/, 'i');
 
ohhhh
 
@DanieClawson Helps if you RTFM :)
 
and MDN is a very F M.
I R it all the time.
 
haha I read MDN and W3 before coming here I just suck at extracting information like that
 
just mdn, no w3schools
 
1:42 AM
W3schools is not associated with W3
 
W3schools is shit
 
I'm gonna get flamed for this but.. msdn.microsoft.com/library/h6e2eb7w(v=vs.94).aspx even.
 
lol
I've never noticed anything too awful at w3s whats the deal
 
it can have useful info, but less of it and more likely to be out-of-date and incorrect compared to MDN
 
1:45 AM
good to know thx
 
I think people hate it so much because it's usually the first search result even though it's inferior to other sources.
 
so it's seen as just click bait or a site to advertise.
 
ah that makes sense. especially sense they stuck the w3 on their like they're somebody important
 
Yup
 
1:48 AM
@DanieClawson the problem is that they don't give outright wrong advice, meaning the code they show works... but it isn't proper code.
they show a lot of bad practices and don't give the full picture for most stuff
 
Really appreciate the help @Luggage !!! i got that working now :D
 
MDN (being a wiki) is much better as anyone can correct mistakes and overseights
 
we all write bad code or code that's 'good enough', but if your goal is to educate or be a reference, then you shoudld be held to a higher standard.
 
yeah I get that, I knew there was some bad practice on there but I guess I hadn't considered how dangerous that can be
 
@DanieClawson overall I think MDN is not only better, but more complete
just not as well advertised
 
1:50 AM
now that we're all done taking turns riding on MDN's well-documented cock..
 
lol
hey, I am not fanboying, I just have to recommend it over w3schools.
 
Ohh. I'm fanboying.
 
:P
 
More like MASSIVE DICK NETWORK amirite!
2
 
2:38 AM
anyone here familiar with d3.js?
 
@Dude only biblically.
 
ummm... ive never heard that phrase before
im thinking either:
a) you see d3.js as the only right way to handle svg
b) d3.js makes no sense what so ever
c) you dont believe in svg
 
Verb: know someone in the biblical sense (third-person singular simple present knows someone in the biblical sense, present participle knowing someone in the biblical sense, simple past knew someone in the biblical sense, past participle known someone in the biblical sense)
  1. (idiomatic) To have sex with someone.
  2. 1980, William Wiser, Disappearances, ISBN 0689110626, page 90:
  3. 1995, Lyle Leverich, Tom: The Unknown Tennessee Williams, ISBN 0517702258, page 456:
  4. 2007, Tom LaMarr, Hallelujah City, ISBN 0826340415, page 46:
 
SVG is the correct form of internet graphic
 
soooo 1?
 
2:41 AM
I've never used d3 myself
All the vector graphics I've put on the internet were built by hand :-x
 
fair enough
 
ractivejs.org seems to have some good tools for vector graphic manipulation though
 
@Dude ( ͡° ͜ʖ ͡°)
 
lol
the issue im having is pretty advanced, so i don't want to waste your time if you aren't too famliar with it
 
Bloody hell
dudes
bloody fucking hell
 
2:42 AM
wahts on your mind abishrek
 
oh hey, reading back a bit - MDN is incredibly vastly superior to W3Schools
 
!!welcome dude
 
@dude 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.
 
(also still looking for someone with d3 expereince)
 
(perhaps you could simply ask your question)
 
2:43 AM
(and apologies, if that gets annoying)
 
how do I get a handy bot in my chat room? here I am copying/pasting text like a sucker
 
welll....
ok
 
@TehShrike The bot can be summoned, or you can run an instance of the bot yourself
 
What is the summoning incantation
 
bascially im trying to do a circle packing implementation with about 300 some nodes. Im trying to add in a "ghost" node to serve as a space holder for a label though, since the packing implementation in d3 does not provide a space for it by default.
The issue Im having is with the sizing. The label nodes are usually way to small relative to the other nodes, and the smallest nodes, with no children, are waaaaaaay to small relative to everything else, leaving tons of wasted space. I know that the value is used to set circle sizes, but I cant seem to figure out the concepts used in their logic for how exactly the value corresponds to circle size, so this makes it near impossible for me to designate the value before hand.
 
2:57 AM
@TehShrike !!summon demon
 
@ʞɔᴉN 8-|
 
do it
 
!!summon demon
 
@TehShrike I will appear in that room after 1 more invocation(s)
 
!!summon mysql-and-relational-databases
 
2:59 AM
@TehShrike something is going to appear in your room
 
@TehShrike Already registered; still need 1 more
 
don't look behind you and you'll be safe
 
:-P
!!summon mysql-and-relational-databases
 
@TehShrike Already registered; still need 1 more
 
!!summon mysql-and-relational-databases
 
3:00 AM
@ʞɔᴉN That didn't make much sense. Maybe you meant: summon, sudo
 
jesus
 
@ʞɔᴉN That aint no room I ever heard of! /help summon for usage info
 
that's not even a room you liar
 

MySQL and relational databases

Ask your question, and then hang around a while to see if an e...
 
!!summon 592
 
3:01 AM
@ʞɔᴉN summon: Say boopidi bee and in the room I shall be. /summon roomid
 
592?
!!summon 592
 
@TehShrike I will appear in that room after 1 more invocation(s)
 
INVOKE THE DEMON
 
:-x
!!summon 592
 
@TehShrike Already registered; still need 1 more
 
3:03 AM
Now how do I drive the bot? I need docs...
!!help
 
@TehShrike Information on interacting with me can be found at this page
 
brilliant
I deployed a JS app recently
Who wants to tell me why it sucks and make fun of the code?
 
id say cuz im pretty sure there are already apps that do that
which isnt exactly what u asked
but still pretty important i think
 
yeah, see the "why" section
One may exist, but my wife couldn't find it
 
@TehShrike communism? in MY country?
 
3:12 AM
Nope, I'm not a centrist in the least! ;-P Communing with folks is cool though
 
haha, just messing
 
that looks pretty promising
 
@TehShrike do you do any sort of realtime version control?
i.e. operational transform
 
Optimistic concurrency control
 
how does that work?
 
3:15 AM
i.e. version number that increments with each change, if you don't have the right one, your update fails and you get the latest version
 
wunderlist.com/home that one is a bit more traditional in terms of list, but its for ios only
 
ah
 
@Dude yeah, this is something to link all our friends to, it's gotta be web
more gift registry than todo list
 
yeah i'm trying to build something similar
 
word
 
3:17 AM
just a super easy thing that you can link to
 
@ʞɔᴉN Nice. What's the focus?
 
check out droptask.com - may not be what you are looking for, but if you watch the video there it does look prettycool. just found it
 
@TehShrike sorta similar to what you're doing except with just text
 
@ʞɔᴉN like a flavor of pastebin?
 
just plaintext now but I'm hoping to add some custom rendering features (i.e. rich math expressions)
 
3:24 AM
I've actually considered making a pastebin type app
 
yeah
 
ooooooooh man the pastebin I wanted to make was going to be SQL-themed
 
SQL themed? haha how does that work
 
have any code written yet?
Mostly just syntax highlighting, probably some auto-formatting based on the viewers preferences
What's the killer feature (to you) that other pastebins don't have? Is it the math expression rendering?
 
@TehShrike a little
i have all my tools together and my plan is pretty well thought-out, I just haven't tied it all together
does jack shit right now
 
3:28 AM
A couple years ago I started on a pastebin with threaded responses
I didn't follow through though
 
yeah it's tough to follow through
 
Since then I've gotten better at putting in 30-90 minutes of code every couple days, and I actually follow through on projects now
 
@TehShrike sort of, but mainly because most pastebins are meant for code
monospaced fonts and all that
 
@ʞɔᴉN Yeah, there are pastebins with syntax highlighting, and there are fiddles
and that's about it
 
@TehShrike yeah
funny enough, i'm using CodeMirror for my text editor
most of the features are disabled, like syntax highlighting
 
3:30 AM
interesting
I didn't know the Eloquent Javascript environment thingy got turned into an editor
 
whats that?
 
It's always had code snippets that were executable in-browser
 
4:17 AM
my server is adding special characters on their own, why?
 
Anybody care to review a couple of code snips i wrote today?
 
4:37 AM
Whoa. late night
 
yeeees
 
4:53 AM
@DanieClawson gotta link to 'em
 
Just finished installing Windows 10
Did anyone else find it funny that IE (MS Edge) is now more simple than even Chrome?
Is it some competition they started, to see who can keep their UI the simplest?
 
5:13 AM
http://codepen.io/cl4ws0n/details/doQqjd/ CSS to javascript and back
http://codepen.io/cl4ws0n/details/eNQKoK/ AJAX Load groups of an SVG as invidual images
any critique is welcome :)
@Shea Id say basically yes thats exactly it
 
how can I implement a system like 'tag system' in the stackoverflow?
I need to a input, that when user write a word and press <space>, then the shape of that word changed. how ?
 
@DanieClawson whew! I don't understand that at all
 
@Sajad I'd hook the field's onchange event
@TehShrike lol well thanks anyways
 
@DanieClawson how should I set onchange event on the <space> key ?
 
well you will want to do one or the other. if you just use element.addEventListener('change', function(e){/*eventhandler*/},false) you can start making predictions before they finish typing like how if i type @s it shows many names. or, you can do element.addEventListener('keydown', function(e){if(e.keyCode == 32){/*eventhandler*/},false) and only check after they've typed a full name
 
5:22 AM
@DanieClawson thanks buddy
 
@Sajad No problem :) ill be on a bit longer if you need more info
@Sajad oh, one thing is you'd probably want to use keyup if you go the space key route
 
@DanieClawson ?
 
@Sajad well if you use the keydown event it can fire multiple times and might be a little screwy so if you use keyup it makes sure it only fires once
 
@DanieClawson emm, but I need it several time
look
did you ask a question in stackoverflow so far ?
 
@Sajad yes but you only need it once for each name. if you use keydown it could fire several times for one keypress
@Sajad what do you mean?
 
5:28 AM
@DanieClawson ah, I see !
 
@Sajad :)
 
@DanieClawson I mean is: I want some thing like 'tag input' in stackoverflow when you want ask a questin
do you know what I want exactly ?
 
@Sajad Ah, yes. You would have your potential tags in an array, and then onchange/keyup you check for a match against the array, like array.forEach(function(item){if (item.indexOf(searchPhrase)!==-1) return item; }) ... big simplification but isnt that what you mean?
 
5:50 AM
@DanieClawson thanks pal, I found a jsfiddle here
 
@Sajad Oh okay great. I was under the impression you were looking for the auto-completion aspect of the tag input, sorry!
 
hi
can cross browser full screen be maintained while navigation to another page in our web application?
without any flicker
 
@sharath are we talking actual web app, here? because generally true web apps only use one .html file. where you get flicker in general surfing is thru loading another html file which essentially starts a new app
 

« first day (1748 days earlier)      last day (3206 days later) »