« first day (711 days earlier)      last day (4240 days later) » 

4:15 AM
Night all. How do I get an element value with jQuery $('#myElementId').val() after the dom load? (Dynamic element added with ajax) Does the .on() apply in this case?
 
on is an event listener
How could it be applicable here?
 
I thought so... ^^
Anyway, any hints? Trying to figure out how to accomplish this, but still googling...
Hell! How could it be so hard to find, I must be looking for the wrong words. Will stick with getElementById until I find it -.-'
 
document.getElementById('myElementId').value
 
@andrewjackson I've just said it. I was wondering why $('..').val() doesn't have the same behavior.
 
yes it does
 
4:28 AM
Well, it doesn't care about elements added after the dom load. At last on my environment.
 
but there's also $(this) for jQuery events, or caching the jQuery objects in variables.
 
@abhishek ^ messing with background removal lawls
 
dude. where?
@Loktar do you have an HD webcam?
 
5:05 AM
@Keyne what?
$().val() will ALWAYS WORK if the element is in the DOM
 
5:16 AM
0
Q: Has Adobe AIR with html/js faded away?

markoIsn't it the same concept as Microsoft are pushing with their Metro applications? Seems like that! http://help.adobe.com/en_US/air/build/WS5b3ccc516d4fbf351e63e3d118666ade46-7ecc.html

 
5:41 AM
Hey guys I just have a question that really has nothing to JS per se but more with web design in general. Anyone got a minute
nothing to do with *
 
6:41 AM
0
Q: Avoid focus on link in html-table

Anders MetnikI have a bunch of tabular data in a table like shown on the pictures below. I'd like to avoid hitting the link(a href) when tabbing through data to set it. Not using Jquery, I'm using prototype 1.6. Is there any way to do this, since I don't know the I'd of the row below? (I have done it on fr...

Still need help with this one :)
 
Ember routing issue!! How is it possible that with the same code when someone hits a URL directly it doesnt work on my machine but it works on my friend's machine
I have tried clearing cache and using different browsers!
 
describe your question more please
 
I am working on an Ember.js application. I have a router in place which works fine when I click on different links on the page and routes to the correct url. But if I type the url directly in the browser lets say localhost:8080/somePage, it doesnt go to some page unless I click on the link. This happens on my computer. I try the same thing (hitting the URL directly instead of clicking the links on the page) on some other system and it works fine. What could be the issue here?
 
external/internal usage of reference
 
Could you explain more on this?
 
6:51 AM
seen it a lot, havnt figured out the main cause tbh
firewall/router settings
 
Alright, thanks
 
7:08 AM
@user1566545 what's your router make/model?
 
I dint get your question.
 
What brand is your router
 
What would a brand mean? It MyApp.Router = Ember.Router.extend
Its an Ember router
 
What is your physical setup ?
 
Its an ember application on the front end and ruby on backend...runs on rake server
You need the router states?
 
7:34 AM
0
Q: Can anyone help me to make this script run smoothly, efficient and look more tidy?

user1697962I have learn to make carousel image slideshow script with javascript. I think it's better to learn it from the basic than we just make something from the framework (instant script) but I'm a newbie. I write this script using my technique, but I think it's terrible. Can you master help me to make ...

 
8:19 AM
Morning everyone!
 
else if(ParentTitle.equals("all") && !(Title.equals("all")))
is this correct
?
 
8:34 AM
morning
@DextOr depends on what you want to achieve
 
ya @AndersMetnik I want true when ParentTitle == "all" AND Title != "all"
 
else if ( ParentTitle.equals( 'all' ) && ! Title.equals( 'all' ) )
 
then for pure java it is correct, but in javascript you don't use .equals afaik
in javascript you do ParentTitle.indexOf('all') != -1
 
ohh mine was for contains :)
 
8:41 AM
still, don't use != :)
 
ohh
@FlorianMargaine Never really learned the difference, care to link somewhere i can read about it / explain it? :)
l
 
sure
485
Q: JavaScript === vs == : Does it matter which "equal" operator I use?

bcaspI'm using JSLint to go through some horrific JavaScript at work and it's returning a huge number of suggestions to replace == with === when doing things like comparing idSele_UNVEHtype.value.length == 0 inside of an if statement. I'm basically wondering if there is a performance benefit to repla...

 
thx guys
 
I heard guys you are like experts in HTML :)
 
8:46 AM
Could anyone tell me, is there a way to say to parent element, for example div or ul, to be as wide as the contents inside needs it to be?
I've tried width: auto;
Didn't help even a bit. For now only static width is the saviour.
 
width 100%?
 
For what element?
 
the div
 
The structure is following ul > li > div > ul > li
 
I'd love if one of you also took a look at my problem with avoiding focus on a hyper link:
0
Q: Avoid focus on link in html-table

Anders MetnikI have a bunch of tabular data in a table like shown on the pictures below. I'd like to avoid hitting the link(a href) when tabbing through data to set it. Not using Jquery, I'm using prototype 1.6. Is there any way to do this, since I don't know the I'd of the row below? (I have done it on fr...

 
8:50 AM
@FlorianMargaine wow. You are like awesome. :)
 
He definitely is sometimes ;P
 
yay thanks
 
So due, to that div is independent I need to say to him, that be as wide as inner contents needs you to be?
And I can say it with width: 100%; for div
 
@FlorianMargaine thanks for the lesson :)
 
well, I think you got your answer :p
0
A: Avoid focus on link in html-table

Florian Margaine[].forEach.call( document.getElementsByTagName( 'tr' ), function( tr, i ) { tr.tabIndex = i; }); This sets the tab index for each tr, this way the tab will just go to the next row and skip the links.

 
Sem
8:55 AM
Anyone mind telling me why this snippet isn't working?
 $(this).find('a').click(function(e){
      e.stopPropagation();
 });
 
@Sem try adding both e.preventDefault();, e.stopPropagation();
 
@Sem what tells you it isn't working?
 
@Sem you want to stop the action on click and don't follow url?
 
9:20 AM
@AndyE nice one
 
:-)
 
didn't know that tabindex -1 excluded an element
 
Doesn't seem to work Florian :(
 
It's a recent addition to the specification (HTML5), but a long-time supported behaviour
 
how are you doing btw?
 
9:21 AM
Not bad, thank you - keeping busy :-) How about yourself?
 
fine, new job is going nicely
and I released a chrome extension
 
Cool, what are you doing?
 
mostly drupal stuff
but the fun part is about being in a team et al
 
Sem
@Eugene @FlorianMargaine Oh thanks for the help guys, the problem was a bit further in the code where I did a $(this).html('<div class="container">'+$(this).html()+'</div>');. That removed the events on the elements apparently. Damn snippets will never provide enough info :(
 
on the top of your head, what could be some reasons that an onclick function on a button isn't called?
 
9:22 AM
<3 @AndyE
 
@FlorianMargaine: yeah, ultimately it's your co-workers that can make a job enjoyable.
 
looks like so :)
so yeah I'm just enjoying right now
will see later if only drupal keeps being fun
but well, lot of node.js when I get home :p
 
That looks nice Florian, don't know what to use it for, but looks nice :P
 
Morning All
is there anyway I can read response header or any tutorial as I am getting blank screen for sharepoint sites
 
Do we have any moderators in here? :)
 
9:27 AM
ThiefMaster is a mod
 
@AndersMetnik why
 
Because I need an old question deleted :)
(of mine)
 
rLemon got contacts tho
 
I'll just flag it, more if one was here right now :)
 
@GNi33 o/
 
9:29 AM
\o
 
@FlorianMargaine can you help me a bit please
 
why not :S
 
coz I don't wanna
 
oh ok then
 
9:31 AM
Why don't you just ask the question instead of inquiring one guy specific? :)
 
lol well its related to sharepoint and he once helped me with that :)
 
10:01 AM
people suck :(
0
Q: Entity Wrapper : how to delete multiple values field?

Florian MargaineI have a multiple values field on the user entity. This field is field_data. There are several values in this field. I want to delete all of them. I tried the following code: for ($i = 0; $i < count($user->field_data->value()); $i++) { $user->field_age[$i]->delete(); } But...

 
10:13 AM
sad :(
 
10:34 AM
lol .. drupal user ... i cannot decide whether to express my condolences or throw things and giggle
 
hi guys
i need a little help here.....
 
ask and thee may find
 
@tereško because of drupal or the SE-site?
 
because of drupal
 
what would you recommend?
i still see drupal as one of the better things out there, after you dig into it a bit
there are a lot worse systems than drupal around
 
10:45 AM
Whats drupal used for? :)
 
it's a CMS
 
0
Q: Advantages of using pure JavaScript over JQuery

Shivan DragonWhat are the advantages of using Javascript-only versus using JQuery-only? I have limited experience with JavaScript and JQuery coding. I've added bits and snippets of each to HTML pages but I've mostly coded server-side stuff in other languages. I've noticed that while you can theoretically do ...

 
11:02 AM
how to hide a div on clicking out side it
?
 
Clicking where?
 
it is an extremely bad CMS: filled with global, procedural programming everywhere, no code comments (well , there are book-loads of text in doc-block, but no comments explaining the code) and terrible community .. jquery crowd compared to them are professionals
 
yes
@AndersMetnik
oh I mean any where outside div
 
That i don't know, think you have to add an eventlistener for click, and then in that make sure you are outside the div..
 
@Loktar take a tip
use regions with threshold for background removal
 
11:23 AM
Ok I added this code
$("body").click(function() {
    $('#suggestions').hide();
});
:P
 
that will also make it dispear even if u click inside "suggestions" won't it?
 
well, okay, i stopped arguing about the codebase of CMS-systems... have you _ever_ seen a nice one?
Even crazily expensive "enterprise" - CMS solutions are coded like these guys have been on crack for over 3 years straight.
And, most of them bring tears to every front-end - devs eyes
 
personally, if the API is nice to use, I'm on for it
especially when the softwares works fine
 
1
Q: Advantages of using pure JavaScript over JQuery

Shivan DragonWhat are the advantages of using Javascript-only versus using JQuery-only? I have limited experience with JavaScript and JQuery coding. I've added bits and snippets of each to HTML pages but I've mostly coded server-side stuff in other languages. I've noticed that while you can theoretically do ...

oh wow
where's mr. lemon when you need him? i want to have some fun here
> I'm not referring just to the DOM Handling part. My question is rather: JQuery is a library. For Javascript. What I find strange about this library as opposed to other libraries for other languages is that in JQyery's case it seems to be designed to be able to use it exclusively and not need to touch Javascript directly.
hehe, he really hasn't much experience when it comes to JavaScript I guess
 
11:41 AM
Not at all ;)
@FlorianMargaine btw to the avoid thingy, seems like IE doesn't approve of that attribute, but what does it approve ;)
 
12:24 PM
0
A: Entity Wrapper : how to delete multiple values field?

Florian MargaineWell, I solved it. The answer is kind of tricky. You can't delete a value in a multiple values field. However, you can set it to "empty". When it's empty, it's removed. Here is the code to use: // Also, note the ->count() method for ($i = 0; $i < $user->field_data->count(); $i++) {...

weird API is weird
 
12:38 PM
@FlorianMargaine and will stay wierd
 
woot javascript
 
What is ammo js? Has anyone heard it before?
 
yeah use it with gun.js
badish
 
I heard it's better when wrapped in magazine.js
aren't we useful? lol
 
no, that's porn.js
 
12:49 PM
haha
looks like a physics engine Neil
 
some improvements on my old one
 
looks nice @rlemon
 
@Loktar thanks
 
@libertas That's what it seemed, just wondering if anyone had used it :P
 
I use physics almost every day
 
12:51 PM
yeah looks really nice actually
 
the days that I don't..... watch out
 
Doesn't work well in chrome from what I've read
 
I think bullet.js is a physics library as well
 
Which is kind of weird, chrome is usually good with javascript
 
er no
its just bullet
thats right
 
12:52 PM
that's not what you asked :P
but no, never used it personally
 
funny they call theirs ammo.
coincidence? I think not.
 
pl4n3.blogspot.ca/2010/07/… I thought that was what you were talking about
 
I'm dealing with those ducks ASAP
nah it even says it's based on bullet physics engine
 
I was impressed when I found out they managed to simulate all of quake 3 on a browser
 
with that physics engine?
 
12:53 PM
yeah now if they can get it working in mobile Safari
 
Works well too
 
because tbh quake doesn't have much in the way of physics
 
No, I don't know what htey used, but I doubt they did much more than simulate the original code in javascript
 
wait quake 3, I was thinking the original quake
not sure if q3 had ragdoll
 
12:54 PM
ah ok yeah, I remember seeing that @Neil was pretty cool
^ thats not js iirc is it?
 
@rlemon the transitions between hovered elements feel slightly unresponsive to me
 
quake live is unity or something similiar
 
Now I just need a javascript library that improves my deathmatch skillz
 
@Alnitak was meant to be subtle. maybe too subtle.
 
Jokes aside, that might actually be possible..
 
12:55 PM
@Neil idk you cant move the mouse with js tmk
 
ah haha indian ocean domains ".io" how perfect for computer technology sites
 
@Loktar No, but the mouse triggers something which you can trigger
Maybe, I don't know, just speculating
 
you could do image processing
but currently would be too slow probably
heh, maybe use node! then you could move your mouse
 
!!/choose "smoke" "c#" "php" "c++"
@rlemon c++
damn, was hoping for that smoke
 
@Loktar All depends on how it is simulated
image processing would be too slow though
 
1:04 PM
!!/choose "smoke" "work" "more smoke" "beer" "even more smoke" "coffee and smoke" "beer and smoke"
 
@GNi33 beer and smoke
 
SWEET!
 
i guess i'll make all life-changing decisions using the chatbot from now on
 
!!/choose "beer" "beer" "beer" "beer" "beer" "beer" "milk"
@rlemon beer
 
1:09 PM
!!/choose "what" "is" "this"
??
/choose
t:(
wow I hit 't' to chat, been playing too much minecraft
 
I havent played it in sooooo long
been too many other games eating my time
 
you should come check out my server
 
!!/choose "NTFS" "exFAT"
 
www.liberty-survival.com
 
@rlemon NTFS
 
1:11 PM
nice @libertas.. did you explore all of that or something?
^ map from our server
 
I didn't explore all of it, lots of players did
 
ah cool
 
our map also is a little out of date, the dynmap plugin was recently causing issues so I only enable it every so often
 
Meanwhile on youtube

FUCK YOU BITCH GIVE ME YOU IP AND I WILL FUCK YOUR COMPUTER
MrJoestaar in reply to henryrollins2013 3 weeks ago
Reply
Try Mine 192.168.1.1 & 127.0.0.1 seriously try mine :3
Abhishek Hingnikar in reply to MrJoestaar 1 second ago
 
yeah this is our 2nd map..
 
1:13 PM
actually maybe I should update it this morning, been a couple of weeks
 
@Loktar mind sharing code for your bg-removal
 
we did a new one once soo many updates were released
@Abhishek no not at all lol its pretty much what you used
 
ah ha i see that mushroom biome
 
I just was bored
 
2 of them even
 
1:13 PM
@Loktar did u saw my new code ?
 
yeah we did a new map due to new biomes
our old map was from the beta
@Abhishek yeah looks nice!
 
you see on our map, the little corner of the island that is obsidian/lava
 
haha which corner?
 
it's a live quest level I made, it's covered in mob spawners
 
that map is huge man
 
1:14 PM
we set goals and people have to work together
yeah it should stand out pretty well if you zoom out
it's a black/orange block
 
oh on the island?
 
yeah
 
yeah thats the only thing viewable from space it seems :P
 
it's pretty difficult, almost too hard
 
thats crazy man
 
1:15 PM
when i hold live quests the server is constantly spammed with 'so and so tried swimming in lava' lol
but we have everyone put beds in that big white room in the corner
and just have chests filled with diamond gear so they can re-up and get back into the action
 
ill have to check it out
that sounds awesome
 
like last time we hid sponges all over the place and everyone had to work together to fill a chest on a golden platform with sponges and what not
then afterwards i give out EXP or items to participants as rewards depending on what they want
 
I was messing with overlaying on video
if you click the vid it gets the bg of the area
 
that's interesting, see rule #6: nic.io/rules.html
 
but yeah only reason I didnt use your code is because I didnt want to cheat
 
1:19 PM
hahahahhaaha
@Loktar so basically you are displaying the pixels that changed , aye ?
 
yeah thats it
super simple
and once the lighting flickers its all thrown off
 
:-)
 
so its crap at the moment
ive been crazy tired every night so I just have been hacking on this stuff to keep my mind going at least
 
what about... sleeping
 
1:22 PM
lol well.. I feel retarded going to bed at 9pm
Im getting a 4 day weekend, so ive been getting to work crazy early
 
@Loktar hahahahhaha epic choice for video hahaha
 
haha yeah
 
I love two parts of
Nope Fruity Loops PC!
 
1:26 PM
and
 
Hal 9000 entracne :D
 
yeah that is awesome!
I should grab some
 
1:29 PM
@Loktar Grab HAL 9000 ?
 
^ these look fun as well.
 
you sure ?
 
@Abhishek lol no the zombie blood
thats what I thought you were referring to
 
ah
xD xD
Hal 9000 pawns
I stomp on a Mac and a PC too
I am on a linux bitch
I thought you GNU
lol
 
lol yeah that whole part is awesome
 
I just received a mail from a bailiff asking me for 50€ for my ex internet provider. I think it's a swindle seeing what he said on the Internet
@rlemon crazy guy.
 
last but not least (then really I need to work)
better than a puppy
 
@rlemon Mine isn't usb compatible
 
@Loktar did you heard this one ? youtube.com/…
 
lol no
god theres so many
 
Hi! Guys! If you agree with me that should be synonymized with again, please express your opinion here meta.stackoverflow.com/questions/112745/#comment426119_112745
 
12
A: We should "desynonymize" [tag:jscript] and [tag:javascript]

KevAs Stack Overflow user and not a moderator I would support this request. JScript whilst being a flavour of ECMAScript isn't "normal" Javascript, the use case is entirely different. It's a bit like lumping all of the vb flavours under one tag (vbscript, vba, excel-vba, access-vba etc), yes they a...

I agree with him.
 
same
@thorn do you want to synonymise node.js with javascript too? or rhino with javascript?
 
@FlorianMargaine node.js is an environment like WSH, not a name of the implementation like JScript
 
1:53 PM
@thorn ActionScript is also issued from ECMAScript
 
@thorn But node runs on V8, which, inevitably, will have its own "flavor" of the ECMAScript standard.
 
Should we Synonymize it too?
wow
 
Questions about "JScript" in WSH are not about language itself but about its application in the specific environment, while the language is still the same ECMAScript that is widely known as "JavaScript"
OK. Can anyone tell why we have as a synonym of , if JavaScript is only a Netscape's dialect like JScript is Miscroft's one?
 
Think people have made their statements about what they think of it thorn
 
1:57 PM
hihi
@Loktar do you know that post? netmagazine.com/features/…
 
yeah
 
Why is this chat room named "JavaScript" and not "ECMAScript"? :-)
 
Dude
There used to be a long description in here explaining that
go back in time 6 months and enter this room :)
 

« first day (711 days earlier)      last day (4240 days later) »