« first day (1001 days earlier)      last day (3946 days later) » 

10:02 AM
Reminds me of the JavaScript vs. Java question
 
I still can't believe that this works perfectly fine without the patch that I took 3 hours to refactor... well at least I just found a bug that apparently has never been fixed, goes cry in a corner
oh it isn't a bug, just a missing feature.
implemented the feature, and now I'll write a couple dozens of tests to discover why that code works without the bugfix
 
10:35 AM
Could someone help explain to me why setting "clear:left" on a wrapper div, containing "float:left" divs, prevents the inner divs ":hover" css from working in all divs, except for those in the last wrapper div? jsfiddle.net/Glutamat/sNLyb
 
@C5H8NNaO4 Remove z-index:-1; from .color.
 
@RobW awesome! thanks =)
 
hi
Guys, anyone worked with HTML5 Notification API?
 
Yes
 
@RobW I'm trying to figure out, what for is this method requestPermission
Because in chrome it only passes state 'default'
On both allow or deny
 
@Eugene requestPermission is used to ask the user to allow notifications
 
Right
 
If you've already confirmed before, it will not be asked again for the given site
 
In chome it does.
Notification.requestPermission( function(result)
{
		console.log( result );
		currentPermission = result;
} );
I call it on click event
And no matter what I press 'Allow' or 'Deny' it always prints 'default'
 
10:59 AM
Chrome version?
 
Latest
28
 
'default' indicates that the user has not approved/denied the request yet
Are you looking at the right console.log?
Not doing something like requestPermission(....); alert(currentPermission)?
 
I pasted code.
I assumed, that result is users answer
 
Calling
Notification.requestPermission( function(result)
{
console.log( result );
currentPermission = result;
} );
in the latest chrome version, logs "denied" for me when i press deny
 
Odd.
 
11:06 AM
Same to me
Chrome 28.0.1500.52
 
Could you make a short video? screenr.com
28.0.1500.71
A bit newer
 
28.0.1500.71 beta-m
 
Updated.
Version 28.0.1500.72 m
 
Reproduced on the new tabs page
 
Nah. Same result
 
11:09 AM
document.body.onclick=function(){Notification.requestPermission(function(e){con‌​sole.log(e)})} gives "default"
via the console
 
Right
 
If I use it on Stack Overflow via the console, then I get "granted"/"denied"
 
Odd, no?
 
Yep
 
FF doesn't ask anything at all. Just prints granted.
And Opera, seems to me, doesn't no this kind of object at all.
 
11:13 AM
Check your preferences, you can configure your user agent to always allow / ask / always deny notifications
I'm off to lunch, cya
 
@RobW yes, but this is only my user agent. If you would like to use it globaly, so others could use it, then they would probably encounter same issue and this is not okey.
 
 
1 hour later…
12:31 PM
posted on July 13, 2013

var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); try { var pageTracker = _gat._getTracker("UA-3727700-1"); pageTracker._trackPageview(); } catch(err) {} Hey geeks! If you're going to SDCC, wouldn't you want to attend a sh

 
12:48 PM
@FlorianMargaine probleme withNexus 4 is that the max is 16Gb without any SD card :/
 
1:05 PM
Plain JavaScript object can not maintain state, trigger or listen to events, you cannot put on them model related logic methods and so on. — Naor 16 mins ago
Variables don't maintain state... that's a first.
 
@AzadChouhan 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.
 
i am new for javascript i wanna to learn it please refer me some good tutorial
 
one more question in how much time a person can learn it?
 
Depends if you already know another programming language
 
1:10 PM
yaa i know c# i am working as a asp.net developer but i never work with javascript
 
I guess about a month, if you set your mind to it
 
okkk and is javascript and jquery same? or i have to learn jquery differently?
 
jquery is a library written in JavaScript for easy DOM manipulation.
Think of C# and some library written in C#. Like, CsQuery is a port of jQuery to C#.
 
CsQuery i never heared about it can u please explain me briefly?
 
No, sorry - I'm busy.
 
1:16 PM
its ok :) thanks for the information
 
@UÄŸurGümüÅŸhan 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.
@user2470580 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.
 
1:31 PM
0
Q: serialize data + localize

Jose David Garcia LlanosI am trying to localize "serialized" data but the array returns "null". when I read the database options I can see that the data is in fact in there and it is returned when I echo it, however, when I want to localize it to be used inside my jQuery, it returns as null. <script type='text/javascript'

 
what is difference between jquery.js and jquery.min.js files
 
.min is minimised; it's the same code but with shortened variable names and reduced whitespace iirc
reduces the download size of the script file
 
@user2470580 You must include both to be a true jquery master. (jquery min is minified )
!!/tell user2470580 google "JavaScript minification"
 
1:36 PM
Then when to use jquery.js
as per u all suggest minified use
 
in development
 
ok thanks
 
@Aravind 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.
 
@user2470580 When reading the source, it's usually nicer to look at the unminified version.
@Amaan I think you'll enjoy the irony and satire in this: kongregate.com/games/BerzerkStudio/the-peacekeeper
oh, yeah, nevermind.
 
2:09 PM
A quick question?I took up codeschool's anatomy of backbonejs, I seemsed to pick up a few things, but it's all hazy.I can't seem to put it together to get an app based on backbone.At this point I am stuck.I would just like to learn a new framework, and see how it works.Which one would you suggest?Knockout or Backbone or Angular?BTW I'm looking at a single page app with small amounts of database interaction.
I'm a beginner BTW, I did some small apps like this one: thankyoucoursera.herokuapp.com
 
user1125394
@Aravind what do you need a framework for?
 
@cx: Just want to learn how they work, so I can use in my future apps, if the javascript gets too messy.
 
user1125394
I don't really know only did simple web apps, but others here do some graphic or game apps in js
 
user1125394
I kinda don't like javascript routing framework, that hide the path to views
 
user1125394
it's not really restful, can't give the link to a view..
 
user1125394
2:22 PM
I'm doing rather shitty things with location.hashchange :)
 
2:38 PM
@Aravind Backbone sucks. Knockout does data binding, go for Angular.
 
2:49 PM
@BenjaminGruenbaum Why does backbone suck? I was just looking at it
 
sweet tea yummi
 
@Loktar Chivalry is bugging out on me
stupid
 
@BenjaminGruenbaum: Thanks, I will try angular.What is angular best at doing?Or in other words what problem does it solve well?
 
Splice usage makes me mad. I seem to have used it wrong all along until I realized it removes everything after the index.
 
@lawm Only if you don't specify the deleteCount, and that's a non-standard extension.
 
3:04 PM
@NagaJolokia Yeah, I had wanted to delete one item by doing this: splice(index) but it turns out it's splice(index, 1)
 
user1125394
I have a colleague, each time he creates a new msql table, he starts with a column id in AI
 
user1125394
@lawm you know there are docs for that
 
@cx I know
But for once I read them carefully
 
0
Q: Detect WYSIWYG editor - Visual or Text Mode

Shahinul IslamIs there a Way to know the editor is now in Visual mode or in TEXT mode, so i can trigger something. And also how to make default editor mode in Visual mode [ force to show Visual Mode ]

0
Q: Replace Short code in Visual Mode - WYSIWYG editor

Shahinul IslamI write a code in functions.php to make shortcode [template_url] and [site_url] in WYSIWYG editor. Its works fine for front end. add_shortcode('template_url', 'replace_shortcode_template_url'); function replace_shortcode_template_url($arg, $content){ return get_bloginfo('template_url'); } ...

 
3:29 PM
Can someone point me in the right direction of how I would do the following:
`var cat = new animal.Mammal()` ?
nvm
 
TMTOWTDI
 
3:47 PM
!!urban TMTOWTDI
 
@JanDvorak It means I aint got time to learn your $5 words
@JanDvorak [TMTOWTDI](http://tmtowtdi.urbanup.com/581751) There's More Than One Way To Do It.

This abbreviation of the official motto of Perl is frequently used on newsgroups and mailing lists related to that language.
[\[www.faqs.org\]](http://urbandictionary.com/define.php?term=www.faqs.org)
@Crowz 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.
@bhuvan 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.
 
well hello friends.
 
-3
Q: how to keep an image(message and lock) inside the tag of input before pre difined name(user name and Password)

user2578957Please tell me how I can code the following input tags, but please please write me the code that how can I keep the message icon in front of the text (user name) and how can I keep that transparent border?

 
Ok, I wrote the code, now what? — Benjamin Gruenbaum 25 secs ago
 
LMAO
Jokers
 
4:01 PM
no closevotes yet?
 
I'm not allowed, i have flagged it
 
Hey all
 
Bonjour
 
word homes
 
@JanDvorak done
 
4:10 PM
that was a really stupid question so let me rephrase; what's the EASIEST way to password protect a page?
 
@JanDvorak one more to go
 
4:29 PM
@VijeenroshP.W 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.
 
Hi, I am using backbone to do a project , even though , .fetch() method is expecting ,json in format ,
[{ model1},{model2},{model3}]
, I use flask.jsonify() { //for security reasons }, and now its returned as {object:[{model1,model2,model3}]} , how to modify the fetch() so as to correctly read from this format
 
{object:[{model1,model2,model3}]} is not valid JSON
can you convince flask to generate valid JSON?
 
I blame Backbone
 
pastebin.com/Ljv6JjYQ is the json that is returned
 
4:46 PM
The JSON is legit. The problem is with Backbone.
 
the one pasted is valid, but that's not what Vijee originally shown
um... Ljv6JjYQ needs an extra pair of curly brackets around
then it'll be a valid JSON
 
@Zirak Why would someone create THAT
 
@IvoWetzel phpjs is a library that lets you write the same code for PHP and JS
 
@JanDvorak Why?!?!?
 
@IvoWetzel why would anyone use PHPJS, you mean? Well...
so that you can use the same code on client and server
 
lmfao, that sounds horrible
 
5:07 PM
I never said I supported that idea :-)
 
@JanDvorak Well... uh... use Node.js? Also, on a more important node, does it implement all the crazy bugs that PHP has? :D
 
I didn't try it out, though. I 'd like to.
 
Unless you're @Nexpresso in which case you invented PHP and you are always looking to write jQuery code for free for anyone if you are looking for a free PHP developer who is also good, ping @Nexpresso .
 
bugs, or features?
 
@Aravind 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.
 
5:19 PM
hey all
ahh, I remember when I used to love PHP
then I learned how to node
hey @CapricaSix
 
5:53 PM
@Vishal 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.
 
hi everyone i have a problem
 
@IvoWetzel So that you don't have to learn javascript
I mean, so you'd feel like it.
You'd face horrible bugs because you know nothing of js
But hey, at least you're able to do array(0, 1, 2)
 
my problem is that.. i have a select list with 1-2-3 as options in it..
the problem is that after selecting 2 as an option and submitting
the list is reset and 1 is set as selected option
but i want to save the last selected option which was 2
any help
 
@RogerMo 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.
 
@Vishal You can refer to this similar question here: stackoverflow.com/questions/13872761/…
Basically, you just need to return false
 
6:14 PM
Hey guys
 
6:38 PM
@JanDvorak I love how we both voted for @dystroy although I'm sure it has like 20 duplicates :P
 
@BenjaminGruenbaum I didn't vote for him, and I won't upvote until he clarifies the "all String functions" thing
 
6:51 PM
@Gacnt Read Blender 3D: Noob to Pro, DO IT!
 
@Zirak So people who don't know a programming language are trying to use another programming language they don't know to write in a language they don't know
 
Two birds with one stone, really...
 
@IvoWetzel What can go wrong?
 
more like two kidney stones with one drink
 
6:56 PM
To downvoters, consider that currently the Google search for JavaScript click's top results are for w3schools and jQuery. I discuss this in meta here. — Benjamin Gruenbaum 8 mins ago
That's pretty sad :/
 
@Zirak Coffeescript2 gets created?
 
I actually like CS, mostly because it's extremely similar to JavaScript except for some small parts.
Also, I agree with that stance.
 
I like CS's ideas, but I'm just not all to fond with some of the syntax specifics
also, it's too much rubyish in the sense that there are a guzillion ways to do one and the same thing
 
@AnPel 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.
 

« first day (1001 days earlier)      last day (3946 days later) »