« first day (1640 days earlier)      last day (3300 days later) » 

12:46 AM
2
A: How can I manipulate the DOM without a library like jQuery?

bjb568When manipulating the Document Object Model with Vanilla JS, you will be directly be accessing the Document and Nodes. A document contains Elements, particularly HTMLElements and SVGElements which are both Nodes. An Element may contain Text too. Finding Elements You can get the first element wh...

Y'all'd better like this.
 
1:01 AM
tldr
 
gr8
 
tldr
 
Good job with the formatting though, I guess
 
hey, how would you scale your NoSQL database in your server if you are not using auto scaling options like DynamoDB? Would you do it same as you would do with relational DB?
 
@EnglishMaster No
 
1:03 AM
What
 
I'm not sure how that is unclear
 
right
but how?
 
Why wouldn't you use an auto-scaling option? (legitimate question)
 
I don't know, just for fun
I mean, I'm quite adventurous like bilbo baggins in Hobbit
 
Ummm, then scale it the same way an auto-scaling option would?
 
1:04 AM
how?
 
That's an adventure for younger, braver hobbits than I
 
Oh shoot! I think I forgot my handkerchief
 
just read the bits and bites
and write the bits and bites
and don't be bitten
and don't use php
 
Would you like to play game of riddles
?
 
not really, no
 
1:10 AM
hello, anyone here work with Microsoft Azure?
 
@erotavlas 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.
 
@erotavlas nah
nobody uses it
 
ok
so I just blurt out my question?
 
yeah pretty much
 
I wasn't sure, at first I thought the chat was for relaxing and chatting about things non programming
 
1:11 AM
I mean, I'd probably thoroughly answer it if you were asking about AWS
or Heroku
but go away, if you are into Azure
 
:) k I'd have better luck in the c# chat maybe, although a lot of stuff on Azure is javascript based
 
1:31 AM
Helllooooo
 
Hello
 
1:52 AM
HHeelllllloooooooooo
 
Ahoy hoy
 
yoh yohA
 
ʎoɥ ʎoɥ∀
 
Heelll0o0o0o0
 
2:09 AM
Is this testing some newbie program on generating string with reverse or repetitive elements? The vertical flip is quite refreshing.
 
I wonder what's going to happen to Javascript and its programmers when they discover Dark energy and contain it in a jar
 
does anyone know where I can find a list of file types recognized by Javascript from `<input type="file">`? For example I know you can do:
`var selectedFile = document.getElementById('input').files[0];`
`if (selectedFile.type.indexOf('image') === -1) {`
to check if it is an image. Can't seem to find anything on MDN but I'm probably not using the right terms
 
@joshhunt um, all of them
 
@joshhunt 1. check its file extension
2. do your validation on your server side
 
@SomeKittens surely it doesn't recognize all file types?
 
2:22 AM
3. use ur built in validation library by your serverside
 
@joshhunt It does not discriminate by file type or extension.
I could invent my own file encoding protocol and I would still be able to add it to <input type="file">
 
Does somebody have time to walk me through troubleshooting some simple website javascript??
 
@EnglishMaster We'd say jar is Java programming related, the story tag is wrong. ;-)
 
@TimSalabim Don't ask to ask, just ask.
 
@somekittens Here we go
 
2:24 AM
@TimSalabim Depends on the question. SO is a QA site not a debug site.
 
2
Q: Replace logo image upon scroll down JS / HTML / CSS wordpress website

Tim SalabimI would like to have a logo image change (for the purpose of color) upon scrolling. The navigation currently changes when scrolling downwards to have a dark bar behind it, does anybody have any suggestions as to what will work best for this image replacement? I have tried using this as found in...

 
@SomeKittens is there a list of possible file types that it can return? For example if I upload a .jpg file.type = "image/jpeg" and if I upload a .txt file.type = "text/plain"
 
@joshhunt You can limit it yourself with the accept property
 
and when I upload a .abc file.type= ""
@SomeKittens Ah right so is this the list that it recognizes? en.wikipedia.org/wiki/…
also any idea how it determines which type to associate with the file? Is it purely from the file's extension?
 
according to your current approach, they can upload file with whatever extension and bypass your validation
 
2:37 AM
how?
 
They can just upload "osdj.jpg" and it has JS code in it
 
oh yes of course, this file isn't getting posted to the server anywhere, this is purely to assist the user not stop hackers
 
what does your app do?
 
@joshhunt In that case, you could just check the file extension
 
yes, but theoretically I think in some cases it would be easier to check for "text/*" rather than check for each individual extension?
 
2:42 AM
what?
 
@joshhunt ah, the user's uploading a text file
(which means no extension at all is still valid)
 
^ gonna test that
nah I file with no extension seems to return file.type = "" (empty string)
btw I'm not necessarily going to use this method I am just trying to get a better understanding of it
so it looks like it checks the extension against valid MIME typse and then returns a type based on that. If the file has an unrecognized extension or no extension it returns an empty string.
which could be very useful if say you only wanted to let them upload audio files, you can just restrict it to "audio/*"
 
!!afk food
 
/me feed kittens
 
3:41 AM
@EnglishMaster I want to order one! Wait, no, a dozen!
It'd make a nice gift for betraying boyfriends and black hearted husbands.
Please kickstart it :D
 
4:01 AM
 
 
1 hour later…
5:14 AM
Hey guys. I am trying to sort out an issue with jQuery UI (.sortable). I feel like I have tried everything so far, and need another set of eyes over the problem.

I posted the question on SO, http://stackoverflow.com/questions/29596737/jquery-ui-draggable-correctly-having-the-mouse-follow-sortable-items-when-zoomi, and was wondering if anyone here had any ideas for helping me sort the problem out?
I am trying to have the correctly mouse follow items in a sortable bullet list when styling the zoom CSS attribute on dragStart, but the object gets out of sync with the position of the mouse after drag. Here is a link to a jsfiddle: jsfiddle.net/qt7t08ww
 
5:30 AM
@timgws Looks ok with my Firefox.
 
oh, interesting. @Sheepy on Chrome, the easiest way is to drag the big block (brown, on the bottom) to the top, and then trying to click and drag it back to it's previous location
you are right though. it looks much better on Firefox. The selection tracks the mouse correctly. In Chrome it does not do that...
 
@timgws You may want to test with IE 11 and specify in the question which browser(s) is having problem. This will help anyone who want to answer.
 
Yeah, cool. Loading up my VM now :)
 
5:58 AM
lets say I installed a package using npm install <package_name>
Is there any possibility to check whether it is already installed or not?
 
@Mr_Green If it's already installed, npm won't reinstall it
 
ls -l node_modules :)
 
@SomeKittens ohh so it is by default.. thanks.
 
0
Q: JavaScript Scroll Script - Fires in test, not on dev site

Tim SalabimMy script to replace the logo upon scroll works here in the test 'http://jsfiddle.net/timsalabim/opek5mtz/` <!-- Logo Scroll --> var img = document.querySelector('.logo_h__img img'); // get the element img.dataset.orig = img.src; // dataset document.addEventListener('scroll', function (e) { //...

 
@ivarni didn't get it
 
6:05 AM
I have added my dev site for testing as requested... Please let me know what else I can do to solve this issue...
 
@Mr_Green When you do npm install without the global flag, modules are installed in a node_modules folder relative to current path, so you can just look in that folder and see what's installed
 
I am doing install with global flag
 
ok, you didn't mention that though :) I think where the modules end up then differ on different OSes
 
I still didn't get it what was that code though. beginner in cmd
I hope somekittens is right
 
@Mr_Green ls is the *nix version of dir, and -l is just an option for displaying result. And @SomeKittens answer is also correct.
(Since you mention cmd I'm assuming you're using Windows and not a unix based OS)
 
6:14 AM
yeah windows
 
What I was basically saying is that you can look in the file system as well to see what's installed, and when not using the -g flag I personally find that much faster and more convenient. For stuff installed with the -g flag I'd use kitten's approach since I can never remember where npm puts the globally installed modules.
 
0
Q: jQuery UI Draggable: Correctly having the mouse follow sortable items when zooming items with CSS on dragStart

timgwsI am attempting to allow sorting items that have a long height. The height of the objects may be more then the users screen, which will make it difficult to click and drag the items (and still have a general overview of what the items are. I devised a simple plan to go and change the zoom level ...

I updated the question, @Sheepy, it now has updated information (and the zooming works in Firefox, too, thanks for that...)
I have one eye syndrome where I develop on my main browser (Chrome) then do any changes needed to make it work in everything else :P
 
THE
6:35 AM
<script type="text/javascript">
var myObj = {
    fred: { apples: 2, oranges: 4, bananas: 7, melons: 0 },
    mary: { apples: 0, oranges: 10, bananas: 0, melons: 0 },
    sarah: { apples: 0, oranges: 0, bananas: 0, melons: 5 }
}

document.write( myObject[ 'fred' ][ 'apples' ] );
</script>
how can i convert this into object as above

    var countMe = {
        ["00", 0], ["01", 0], ["02", 0], ["03", 0],
        ["10", 0], ["11", 0], ["12", 0], ["13", 0],
        ["20", 0], ["21", 0], ["22", 0], ["23", 0],
        ["30", 0], ["31", 0], ["32", 0], ["33", 0]
    };
would it be

var countMe = {
"00" : 0, "01":0....
};
 
After looking at the jqueryui code, I think I might need to add another callback so that I can make the zoom happen before all the positions have been calculated. The "start" callback inside jQueryUI does not really mean "I have started being dragged" but rather "I am initialized, and I am just letting you know"
which is stupid, because there is a beforeStop callback, but no "beforeStart"
 
THE
I am not really sure what I could do with above
could you tell me @timgws
 
@THE loop through all of the items in myObj, count which one you are on, and append the number of the item that you are on?
 
@THE countMe.reduce( function(p,v){ p[v[0]]=v[1]; return p; }, {} ); // Assumes countMe is an array not an object
 
oh damn, that;s much cleaner then my solution!
 
6:44 AM
My boss and colleague often complains that my logic is too... compressed.
 
@timgws Hmm. After taking a quick look at the gist, I am getting lost of your question.
 
No question on the gist
 
0
Q: JavaScript Scroll Script - Fires in test, not on dev site

Tim SalabimMy script to replace the logo upon scroll works here in the test 'http://jsfiddle.net/timsalabim/opek5mtz/` <!-- Logo Scroll --> var img = document.querySelector('.logo_h__img img'); // get the element img.dataset.orig = img.src; // dataset document.addEventListener('scroll', function (e) { //...

 
@Sheepy my question was/is on jsfiddle.net/sh4zx63w/7
 
6:50 AM
@timgws Yeah. Sorry a bit busy. I'm actually at work...
 
hahaha, all good.
 
@BenjaminGruenbaum Version 1.2.3.0 ?
 
7:07 AM
Do you guys see any differences between /\b[^e]\b/ and /\b[a-df-z]+\b/i
because for some reason im getting an Unexpected match for the string 'learning ape' with the first one, but not the second. Wondering why that is
 
Big difference. ^e would match a lot of things, including space, line break, control character, CJK character etc., while [a-df-z] will only match 25 characters.
By the way, [^e] will also match E. Which is not e.
 
Ah, you're right. Thanks @Sheepy
 
@ApathyBear you must, by all means go and have a look at the "RegExp Manual"
it will serve you very well.
 
Yep, just had a derp moment for a second.
 
7:20 AM
@ThomasSebastian 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.
 
Ok
How about a fiddle?
 
@ThomasSebastian jsfiddle.net/wp7uodaq
 
@darkyen00 :)
 
7:36 AM
@BenjaminGruenbaum was still wrapping up a couple front-end stuff yesterday
 
@ThomasSebastian very nice.
 
today I begin my back-end experimentation
 
YOOOOO Where my javascript homies at???
 
@TroyGriffiths 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.
 
@TroyGriffiths monday morning mate
errie body working sick-bass-drop
 
@Sheepy I have looked at the jQuery-UI code, and I now know what the problem is. It's related to a jQuery issue (bugs.jquery.com/ticket/11114) where CSS transformations are not taken into account. I can fix my issue most likely by updating ui/sortable.js and ensuring that getBoundingClientRect() is called on the element to check what the width & height really is. developer.mozilla.org/en-US/docs/Web/API/Element/…
 
Well don timgws, congrats on finding the solution. And wow, the bug link tells me that MySQL has gone away!
 
Yeah, the bug tracker is up and down, refresh the page a couple of times.
 
If universal apps become a thing for microsoft - there store will be damn kickass.
 
That bug is closed as a duplicate, pointing to bugs.jquery.com/ticket/8362, which is similar but a slightly different issue. I think the first bug should be reopened.
 
8:02 AM
@darkyen00 I think MS's vision of universal apps does not include the capability of sitting on a USB disk and run everywhere. You must install from Windows Store.
 
@Sheepy there is a reason for that.
 
yes, vendor lock-in
 
@FlorianMargaine ^ and one more
"Most users aren't power users"
 
it's enough to make me not use it :)
 
lol
 
8:04 AM
@darkyen00 wrong. Linux package repositories are the proof of it.
 
Either way, doesn't sound very universal to me. Users are well trained to blindly press Next for any installers.
 
@FlorianMargaine and how do you install a package on ubuntu ?
 
@darkyen00 open "Ubuntu software center", search package, browse categories, click "install"
 
if you are a 12 year old kid ?
Store is vendor locked in version of that
 
you've never used ubuntu software center, have you?
 
8:05 AM
but as we have seen cyndia shall rise soon :P
@FlorianMargaine i know you can add repositories to it.
 
yeah... you've never used it
 
My friend's 11 year old kid can handle pc, mac, iphone, and android pretty well herself. Even the 5 year old know enough to keep pressing next (and installed all kind of crapware).
 
My 2 year old niece can navigate youtube for her peppa pig videos :)
 
Mine prefer shaun the sheep :)
 
@FlorianMargaine Ubuntu Software Center will not let you install an app on a USB stick, will it?
 
8:12 AM
@timgws it won't prevent it :)
 
Shouldn't have binged those 4 GoT episodes yesterday
It all started going down at the end of ep 4 and now I have to wait 4 weeks :(
 
@FlorianMargaine OK, uninstall OpenOffice/Libre/Whatever-it's-called-this-week-office and install it on a USB stick, and see if you can get it running without Symlinks all over the place.
 
@timgws give me a libreoffice .deb, it will be very quick
 
@FlorianMargaine you are not allowed to use LD_PRELOAD anywhere, either ;)
 
@timgws the point of a package manager is that all you need is a .deb and you can install the package.
we're not talking about portable apps
 
8:15 AM
I don't understand the logic. If the developer want to make a standalone app/program that does not require installation, it's the developer's responsibility, not the users.
 
@FlorianMargaine In that case, why not use Unified Write Filter/Junction Points in Windows 8 to make new installs go onto a USB drive if you are not talking about portable apps?
Actually, on that point, don't use Junction points :P support.microsoft.com/en-us/kb/949977
 
Arguing that some programs are not designed to be redistributable, does not mean it is ok to have centralised store that prevents it.
 
@Sheepy, Windows 8 does not restrict you from distributing apps at all
You can copy & paste an app from one computer to another in the store from the programs folder, some apps will need you to hit "Install" on the app from inside the store, a little like how steam works
 
@timgws Windows 8 does not. Universal app does.
 
8:26 AM
Isn't that for internal enterprise network only IIRC?
 
Home users will never need to sideload a Universal app
 
That sounds like Apple.
 
and the "pro" users that will, will have Windows 8.
* Windows 8 Pro, that is
 
@BenFortune There's a reason I wait for the whole season to be out and then binge the entire thing
 
Apple doesn't provide tools that are as good as MSFT's for sideloading apps on Windows & Windows Mobile devices.
 
8:31 AM
@timgws Your point make me smile :)
 
THE
how can I make sure my rect will keep its opacity when i hover over text - jsfiddle.net/nhe613kt/238
 
@THE What do you want to happen?
 
I think Win 8.0 used the same reasoning for Metro, too. The average user only need one app anytime for their 20 inch monitor. Either this, or that the average user only use tablet.
 
@THE Remove the CSS rule? ;P
 
8:35 AM
And I'd agree that Win 8(.1) is doing a great job - if not the best job - in unifying touch and keyboard/mouse.
 
THE
@SecondRikudo I want rect to keep its hover class e.g. opacity even when i hover over it's text
 
I mean, MS makes the best things ever. I'm not trolling atm, I'm quite serious.
 
@THE Put the class on a parent element that has them both
(Namely, in this case, <g>)
 
THE
@SecondRikudo i trimmed down code to make it simple, I have x number of rect
I am going to try putting each rect and textin a group, that may help
 
@EnglishMaster Concur. I quite enjoy IE 11. I really believe it is the most balanced of the three.
 
8:40 AM
Metro was a bit of a silly idea for desktops. The way that they tried it to fix it on Win8.1 was the worst. "Hey guys, now you can have three apps open, yay!"
 
@THE You need to group each rectangle with its text.
And add the hover class to that
 
@timgws LOL
 
@Sheepy What do you mean by "of the three"?
 
@EnglishMaster I believe Chrome, Firefox, IE
 
Yeah, I was assuming that
 
8:43 AM
Yes :)
(O_o)
 
don't listen to @EnglishMaster
 
I assume that's trying to encourage me to run for the moderator so that my bias becomes the new neutral. Right? 。◕‿◕。
 
@EnglishMaster Dude, wtf?
 
8:47 AM
You're such a shit-stirrer
 
Hey English is just joking.
 
@monners Don't bother.
 
(And me too)
 
@Sheepy He’s a chat troll.
 
Oh look, he was already kicked a couple times before
 
8:47 AM
@poke I see.
 
Apparently it's at least his third kick
 
@SecondRikudo Got his n-th mod flag in the Python room today…
 
@poke And his n+1th mod flag here and now
 
;)
 
Well, nevermind. Let's talk about something easier, happier, and eternal. Like tab vs space or emacs vs vim.
 
8:51 AM
@Sheepy Tabs won per SO survey :P
 
But only for newbies :)
 
What if I say I prefer tabs, but then my editor changes it to spaces, which I also like.
Checkmate atheists.
 
That's devil's editor straight from hell! Don't sell your soul! OAO"
 
@Sheepy I’m actually not sure if that’s the proper thing to take out from those statistics. Maybe it’s more older vs. younger people, not necessarily meaning that younger will end up using spaces as they get older.
 
THE
on click on any box I want to show a list emerging from right side - http://jsfiddle.net/nhe613kt/244/

Can anyone suggest any codepen for list, I am gonig to add click events shortly, but trying to find a list prototype
 
8:58 AM
The argument I hear for tabs is actually fairly good, it lets whoever is reading the code change their indent by adjusting how many spaces are shown per tab. But I still use spaces.
 
@poke Perhaps. It's my own observation and judgement. Most tab users argues that it is easier, smaller, and can adjust to everyone's ideal size. I am die hard for space because I think they are simply more practical. Safer, no need to setup, more flexible.
 
@ivarni I think both sides have good arguments, and ultimately it does come down to personal preference. I think either is fine, as long as you stay consistent within your project.
 
@poke That's the thing though, when you're in a team someone will have their personal preference trampled :)
 
And they should accept that.
 
which is why people spend so much time fighting over what to use
definetely, team needs to reach a consensus and then everyone should accept that
 
9:02 AM
When you’re in a team, it’s not about personal choice. It’s about what makes most sense for the team; and that does not only apply to the indentation style but also to so many other things.
 
That's the part I don't understand. When I work on a tab project, I take pain to make sure I commit tab indented code. For space, I can easily adjust to most indent size.
I only go berserk when I can only use Notepad (no ++) with tab projects.
 
Why would you only be able to use notepad? o_O
 
That sounds disturbing
 
Don't ask. (っ °皿 °#)っ
 
I wouldn't use notepad to code if someone had a gun to my head.
 
9:08 AM
There is an advantage in using notepad. But if you're using notepad just use sublime in text mode or vim.
 
@Sheepy If you use a proper editor, the indentation style does not matter at all.
 
I remotely recall that it happened when I was alone and wearing light in a snowing hell called data center... I don't think sublime was born at that time yet. Something to do with this secure things called privilege.
 
wat
 
10/10 would sneak in a USB
 
Yeah. I have a USB now. (◕ω<)☆
More accurately, I now have a cute cloth pocket that contains usb wifi, micro to standard connector (usb & hdmi), card reader, micro sd adapter, and a micsosd card. screwdriver is in another pocket.
Our IT head says I am better equipped than him :D
 
THE
9:29 AM
why is not detecting my function showcontalist
Uncaught ReferenceError: ShowContaList is not defined
var ShowContaList = function  (item) {
    alert($(item).attr("id"));
};

var CreateRect = function (x, y, boxColor, boxId) {
    svgContainer.append("rect")
        .attr("x", x)
        .attr("y", y)
        .attr("id", "rectBox" + boxId)
        .attr("width", boxW)
        .attr("height", boxH)
        .attr("fill", boxColor)
        .attr("class", "hover_group")
        .attr("onclick", "ShowContaList(this);");
};
very very strange
my code put everyone to sleep !!
 
No, it wasn't you, it was me putting them to sleep with my boring stories.
 
THE
9:46 AM
lol,. thanks
 
THE
10:03 AM
what should I search for to see an example of a list becoming visible from right on top of an element
something like side menu list
 
@THE Sliding? Sliding list, sliding div, sliding menu etc.
 
THE
thanks, you are a hero
 
hey
 
THE
this is what I want Slide menu right
 
hello i need a help with javascript
 
@FastSnail why not make a new post ;) (click the ask a question button)
 
@BramDriesen 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.
 
THE
is absolute position my only hope to show a div on top of other elements ?
 
@BramDriesen yes but i don't know it is valid question or not
 
Well what is the question then? :)
 
10:18 AM
@THE Nope, you can use negative margins (although that's not exactly a best practice), or relative positioning
Just make sure the z-index of the element you want on top is higher than the one below
.bottom {
    position: relative;
    height: 50px;
    z-index: 1;
}
.top {
    position: relative;
    top: -50px;
    height: 50px;
    z-index: 2;
}
 
@BramDriesen i'm goint to design automatic facebook chat system by injecting js into facebook [web browser-->console-->inject].all i need is sending a msg for specific id[facebook user]
 
@FastSnail something like this? stackoverflow.com/questions/2574431/…
 
@BramDriesen Ya know you can edit a message once you've posted it by hitting the UP arrow? Saves having to delete typos :P
 
yeah that might be a better solution lol
 
@BramDriesen i don't think.i'm taking about injecting javascript and sending msg.not using api.i mean like greasemonkey scripts
 
10:27 AM
@FastSnail Why exactly?
 
Why would you want to do such thing when there is an API available?
Using an API is a lot easier
@monners what does the star in the chat do btw? (might be a bit off topic but yeah)
 
It tags a message as interesting. See the sidebar to the right?
 
@monners beause i need to send a msg using intelligent system.for example if some one says hi,goodmorning then i can reply them using my system.i recieved lot of msg hi,goodnight and so on
 
THE
I have 2 tabs,
1 table with many rows in tab 1,

in second tab I have a grid like this, http://jsfiddle.net/nhe613kt/286/

now I when a box is clicked I want to show some specific rows from tab1's table, should I copy them somehow ? like there entire html
I know how I am going to select particular rows
just not sure if copying them into a new list/table is the best way
 
@monners oooh okay that's useful :)
 
10:32 AM
hey
 
@BramDriesen well api support sending msg for anyone without requesting extended permission and i will do it.so first i need to find is it really possible from api
 
how do you handle a case when a function suddenly changes a contract that says it can never return null?
manually search for every use?
 
THE
@BartekBanachewicz I can think about it, but other then that I am not sure :(
should i copy html like the way I said above or it considered bad practice
 
@BramDriesen but unfortunatly it seems not possible .from your referenced question ..
"No, this isn't possible. In order for you to send messages of any kind to a Facebook user, you need that user's permission to do so"
 
@BartekBanachewicz Most editor can mass-search and list all result, with the line or surrounding text, so that you can easily distinguish most hits from most misses.
If you are using a good IDE and your code is easy for it to follow, you may even be able to search usage of a function.
 
10:45 AM
@BartekBanachewicz Use annotations and a type checker like Flow
 
@copy it's Lua
 
Write a static type checker for Lua and then use that
 
THE
<g id="g02" class="hover_group"><rect x="41.85" y="159.1" id="rectBox02" width="194.6025" height="159.1" fill="#60FC60"></rect></g>

how can i select this "g" node with d3 ?
 
@THE How about d3.select('#g02')?
 

« first day (1640 days earlier)      last day (3300 days later) »