« first day (970 days earlier)      last day (3985 days later) » 

6:07 AM
defineProperty cannot be used in IE8, so I assume I have to use __defineGetter__
Element.prototype.__defineGetter__("classList", function(){
  var elem = this;
  return {
    contains: function(c){
      return (" "+elem.className+" ").indexOf(c) != -1;}
    add: function(c){
      if(!this.contains(c)){
        elem.className += " " + c;}}
    remove: function(c){
      elem.className = elem.className.remove(new RegExp(
        "\\b\\Q" + c + "\\E\\b")).trim()}
    toggle: function(c){
      if(this.contains(c)){
        this.remove(c)
      } else {
        this.add(c)}}}})
(lisped for compactness)
@Darkyen ^ ?
 
 window.addEventListener('orientationchange', function (evt) {
        switch(window.orientation) {
            case 0: //portrait
                rotate(this, 90);
            case 180: //portrait
                rotate(this, 90);
            case 90: // landscape
                rotate(this, 0);
            case -90: // landscape
                rotate(this, 0);
        }
    }, false);
    function rotate(el, degs) {
        iedegs = degs/90;
        if (iedegs < 0) iedegs += 4;
        transform = 'rotate('+degs+'deg)';
i treid some thing like this @Darkyen @JanDvorak
but it is not helping me out
 
(\\Q..\\E is used to improve compatibility with non-alphanumeric classes)
 
@JanDvorak didnot get you
 
@Gajini I was referring to my CL shim
 
@JanDvorak could you help me out
 
6:15 AM
Not if you beg
 
then i wont , where did i went wrong?
 
Not sure if you should set the rotation on window
 
then what can i do?
 
set it on some reasonable element. Say, your main container.
 
placehoder is my div. which holds canvas and complete game
 
6:19 AM
try rotating this
 
placeholder?
 
aye
 
nopes no use
 
are the styles applied at all?
Check in the console
Chrome can emulate these
 
i think styles are not applying for it
 
6:24 AM
@Gajini shouldn't that be capital C in orientationChange?
 
media screen is working once . if i rotate to potrait from landscape and again landscape to portrait then it is not rotating
 
Step 1: make sure the event is firing
You are leaking globals from rotate. Fix that, then we'll see
 
where?
 
All of them.
!!/tell gajini google leaking globals javascript
 
6:30 AM
 $(document).ready(function(){
        if( /Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent) ) {
    placeholder.addEventListener('orientationChange', function (evt) {
        switch(window.orientation) {
            case 0: //portrait
                rotate(this, 90);
            case 180: //portrait
                rotate(this, 90);
            case 90: // landscape
                rotate(this, 0);
            case -90: // landscape
                rotate(this, 0);
        }
now my code looks like this @JanDvorak
 
Don't do browser sniffing...
 
^
Just attach the handler and hope it gets triggered
 
Or look at how modernizr tests for it if you need to try to have a fallback
 
@JanDvorak could you change my piece of code . ?
 
6:37 AM
@Gajini what to? I'm out of ideas and I can't test.
 
ok
 
how to set onclick event for disabled button???
 
disabled buttons don't fire click events
 
@JanDvorak ya but i want to fire some operation thats what i needed
 
@GaneshKumar jQuery's triggerHandlers?
 
6:47 AM
@JanDvorak ok let me try
 
@FawadGhafoor 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.
 
Okay sir
@CapricaSix just read the first rule and it let me dont read more :)
because i was gona repost a question here :)
but now i wont :)
 
@FawadGhafoor that rule is against posting the same question over and over again.
Once is fine (but chances are we'll still ignore it)
 
yes I know and now i am not gona repost it
because its against the rules
 
You've never posted it here; but sure, we won't force you
 
6:55 AM
can i paste link to my question here please
hope you people can help
 
you may
 
thanx
0
Q: Google Maps Circles like in iPhone/Android apps

Fawad GhafoorI know how to create Markers, Circles, infoWindows etc etc in Google Maps V3.I need to know how would I create a circles with Lat/Lng, radius and ofcourse with some color that Starts from center and than disappear with certain radius and do the same again. Just like in Mobile Appplications In my...

 
user2157210
i mean i seriously dont want to regex html but this fucking parsing framework is bullshit
 
Hi!!
On this my exercise jsfiddle.net/mrk1989/zQLr4/5
For  write inside the <div> is correct to use innerHTML?
but I have the error after document.getElementById("po")=document.getElementById("check1").value;
error is ReferenceError: invalid assignment left-hand side
 
@MirkoCianfarani you're assigning to an element
what would that do?
 
7:00 AM
Can any body show me his/her cv?
 
@Twhyler 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
Q: CodeIgniter TankAuth ajax forms

TwhylerI am using the lastest version of CodeIgniter and TankAuth and all functions work properly such as login, logout, email and register. Currently when a user needs to login, you are redirected to a separate page, which is, /auth/login. What I am experimenting with is loading the login page in a mo...

 
I want write inside the dialog, the value of checkbox @JanDvorak
 
@dystroy hehe nice
 
function write(){
 if(document.getElementById("check1").checked=true){
    document.getElementById("wnd_Addparam").innerHtml="<p id=\"po\"></p>";
    alert(document.getElementById("check1").value);
//     document.getElementById("po")=document.getElementById("check1").value;
    }
}
 
7:01 AM
@FlorianMargaine hey can you show me your cv ?
 
The alert function but not function the line in comment @JanDvorak
 
@RomanticElectron uh, it's kinda old
 
@MirkoCianfarani ...("po").value=...?
 
I should update it...
 
@MirkoCianfarani you can't assign to an object. you have to assign to a property or a variable
 
7:03 AM
I am stupid but I try ("po".value is null and now I go for use .text
 
@FlorianMargaine Its in some other language 0.o :( can't get to read it
 
@MirkoCianfarani textContent(f* IE) or innerText (f* FF)
 
0
Q: Passing undefine vars. Help?

MattI am passing undefine var for my ajax function. I don't know why. I am tried of right now and getting annoying. Could someone help me? Sorry for the VERY VERY VERY and I mean VERY sloppy code. I'll probably make it better in the future when I feel like it. var dataCell = document.getElementById(...

0
Q: How to create 360 degree rotation in php?

UltimateKingI working in 360 degree rotation in php. I need to create 360 degree rotation in php and java-script. for example :This is demo link for 360 degree I just want to create 3d rotation in php.Let guide for me. Thank in advance.

 
With ("po").text or .value I have TypeError: document.getElementById(...) is null @JanDvorak and now I go for use the textContent or innertext
 
@RomanticElectron yeah it's in french
 
7:05 AM
@MirkoCianfarani well, it can't find that element
 
jaaaaaa
 
@FlorianMargaine how did you get those process bars in competences
 
did this in gimp
 
@FlorianMargaine mean how did you get those measured
did you test them?
or what..
 
oh
gut feeling
and, well, I worked with other people in those technologies
so I could kinda measure it comparing to them
 
7:08 AM
ok got ya
 
for you, js should be around 55% I guess
 
@FlorianMargaine lolx I think it would be less than that
what type of cv should I have when I have no experience in the industry
 
user2157210
no work experience at all?
 
@Nexxpresso yeah no work in industry but have experience while doing college projects and doing my own crazy stuff with technologies
 
user2157210
What job do you want to apply for ?
 
7:18 AM
@Nexxpresso Technical Writer OR development and implementation of algorithms or Software Design
 
@RomanticElectron then add this
 
@FlorianMargaine will they count?
 
do you have anything else that can count?
every first resume looks blank
at least yours won't look so blank
 
user2157210
Are your projects anyhow open source that you can add some repo_
 
user2157210
any exp even if it was just a month
 
user2157210
7:20 AM
you just need to make yourself look better than anyone else who is fresh
 
@Nexxpresso ah not yet... well I am working on a project which will take about a month or 6 weeks to complete ...and i am gonna open source that
 
user2157210
well so I guess you will have to start with just some pretty much standard cv
 
@FlorianMargaine @Nexxpresso can you proof read my cv?
 
I had a debt with you and now I have voted on a your answer @JanDvorak
Finally I use the simply innerHTML
 
Morning Florian
 
user2157210
7:25 AM
string sWordlist = doc.GetElementbyId("wordlist").InnerText;
 
@Darkyen hi
 
user2157210
does not work has to work i go die
 
Good morning romantic
 
user2157210
Indian Predator Darkyen Hello
 
@Nexxpresso @FlorianMargaine Yes or No ?
@Darkyen hows you
 
user2157210
7:26 AM
in 30 mins
 
@Darkyen 'nin
 
user2157210
break now
 
user2157210
brb
 
@RomanticElectron after 2 bottles of coke
i feel my brain is finally coming back to being functionally functional
which is functionally awesome
and not to mention interestingly incredible
 
7:28 AM
yeah that sounds awesome
 
now if i have ultimately confused you
Please accept my sincerely made apologies
 
functionally, as in haskelly?
 
@Darkyen or as in Javscript
 
@FlorianMargaine nope i am not writing code in any language
i am writing an algorithm :P , well trying to then implement it in Haskell or JS whichever makes more sense
 
pseudocode
 
7:30 AM
@RomanticElectron yes if you call half js pseudo code :D
 
?
@FlorianMargaine @Darkyen is it necessary to know working with libraries out there?
?
 
@OctavianDamiean hello
 
@RomanticElectron if it was this room would be dead
theres too fricken many
mostly you can google
 
7:43 AM
@RomanticElectron it is.
 
@FlorianMargaine y does javascript itself hurt?
 
Ubuntu pisses me off more and more, every day.
 
or does the syntax
 
@RomanticElectron js libraries are still js.
@OctavianDamiean ?
@RomanticElectron but like any language, libraries allow you to work with other ways to think, and these ways are usually used by a lot of people. So you get experience in how other people work
 
@FlorianMargaine I rather think they abstract what's happening behind and make the developers lazy
 
7:47 AM
@OctavianDamiean Y
 
user2157210
@OctavianDamiean uh
 
@RomanticElectron JS does that a lot too.
 
8:05 AM
hey guys
 
hey any one can help me for this question wordpress.stackexchange.com/questions/102618/…
 
anyone know why this returns as 1?
  var new_movement = _.uniq($.extend(true, {}, page.viewModel.selected_movement().components()));

  new_movement = ko.observableArray().push(new_movement);
 
did you try looking up what push returns on mdn?
 
@Darkyen comments on my shim?
 
how could one go about getting returned text from var opt1 = chrome.extension.sendRequest({method: "getStatus1"}, function(response) {return response.status;}); i know it souldnt work like that but is there a way around?
 
8:13 AM
@JanDvorak where was it ?
 
@Darkyen should I repost?
Element.prototype.__defineGetter__("classList", function(){
  var elem = this;
  return {
    contains: function(c){
      return (" "+elem.className+" ").indexOf(c) != -1;}
    add: function(c){
      if(!this.contains(c)){
        elem.className += " " + c;}}
    remove: function(c){
      elem.className = elem.className.remove(new RegExp(
        "\\b\\Q" + c + "\\E\\b")).trim()}
    toggle: function(c){
      if(this.contains(c)){
        this.remove(c)
      } else {
        this.add(c)}}}})
 
holy awesome
but is defineGetter supported itself on IE ?
8 for example ?
 
@Darkyen the other option isn't.
 
intresting
though thats a pretty small and complete shim :D
 
ie8 supports __defineGetter__ iirc
@JanDvorak the ending makes me think of lisp :>
 
8:15 AM
anyone know how to set a global varible from within a function created and called by chrome api???
 
defineProperty is unusable in IE8
 
@TrevorRudolph the keyword for you is asynchronous
 
@TrevorRudolph window.xxx, but globals are bad practice
Also, that^
 
well window.xxx global didnt even work
 
IE8 doesn't have String.prototype.trim
 
8:16 AM
chrome is annoying
im just gonna use jquery storage
iquit!
 
@FlorianMargaine I lisped the code so that it wouldn't cut off in chat. Though I admit I kinda like it.
 
nah, it's bad in js. It totally makes sense in lisp though, since it's only a bunch of parentheses
 
@FlorianMargaine drat. Easy to shim, however.
 
in js it's a mix of }), so it ends up badly
 
@JanDvorak What's \E and \Q? Is that a non-standard extension?
 
8:18 AM
worst part of js is some jquere where you end in )}});
 
and btw
 
@loading... start and end of quoted section
 
everything since \Q to \E is taken literally
!!>/\Q.\E/.test("\\Q.\\E")
 
@JanDvorak false
 
8:19 AM
!!>/\Q.\E/.test("a")
 
@JanDvorak false
 
@JanDvorak They're not listed on MDN. Maybe I've missed something.
 
!!>/\Q.\E/.test(".")
 
@JanDvorak false
 
doesn't seem to work out quite well :>
 
8:20 AM
huh?
 
I know Perl has them.
 
!!>/\Q.\E/.test("QXE")
 
@JanDvorak true
 
drat
I'm dropping the support of some non-alphanumeric classes, then.
Or not. It's not that hard to quote.
  elem.className = elem.className.remove(new RegExp(
    "\\b" + c.replace(/\W/,"\\&$") + "\\b")).trim()}
 
I feel like LightnessOrbits
in iOS/Cocos2d, 45 secs ago, by Florian Margaine
People. It's your choice for having an indian room, but don't flag indian messages. Flags are network-wide, and you're the only ones understanding them.
 
user2157210
8:28 AM
but you behave more than lightning queen
 
Anyone know if knockback.js uses the knockout mapping pluging?
 
@Shmiddty Did you see my ping? 66 for Space Reversal now.
 
8:54 AM
@Fasilkk 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.
 
Why always saying to me???
only..
 
loves Handlebars' with block helper
 
@Fasilkk have you been to her last memory reset?
 
No..:)
 
@CésarGarcíaTapia 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.
@Dom 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.
 
9:04 AM
Ave @CésarGarcíaTapia.
 
user1125394
!!> var x=[1]; x.pop();
 
@cx "TypeError: x.unpush is not a function"
@cx 1
 
... and this – ladies and gentlemen – was the sole reason for me to learn Latin, to be able to greet people with clearly Latin names.
Now that you all know, you can admit that it was a legit reason ...
 
...
@OctavianDamiean y u hate ubuntu
 
I'll tell you later today.
 
9:12 AM
i hate u nao
 
That's ok.
 
You hate Ubuntu?
 
9:33 AM
@userabuser 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.
 
o/
 
If anyone wants to earn a quick $50 via PayPal, I have a question here that could sure use some <3
 
are you going to abuse people that answer?
 
in several languages including klingon, yes.
 
9:43 AM
@jayrajGoswami 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 have get all value check items list in use javascript
 
user1125394
!!/choose ubuntu "another os"
 
@cx ubuntu
 
user1125394
of course
 
@Duikboot 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.
 
9:54 AM
hello :)
I am trying to implement an 'pop up' for is a user changes information in a php web-form
I currently have the following code running : http://pastebin.com/JUdccaBj
But when the user clicks OK I would like to submit the form
Can ayony suggest me some tips how I can handle that?
 
0
Q: Autocomplete jQuery UI plugin with mCustomScrollbar?

meshuaiI have try to make a tag in which I use ui-autocomplete to autocomplete. And I use mCustomScrollbar to make a scrollbar when the height of tag is larger the max-height. But the problem is the scrollbar cannot display and the scroll content is still on the top. Why is that? How to fix it? This ...

 
@Demorus 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.
 
yo zirak
Man got a question to ask you. Recently tried to play around with some javascript, check it out in firefox rolfvohs.com/audio_samples.php
however, no idea why it doesnt work in webkit. Basically what it does it gives every class that has the animation BouneinDown a different delay value:
window.onload=function(){var e,t=document.querySelectorAll("div.bounceInDown");for(var n=0,r=t.length;n<r;n++){e=Math.round(Math.random()*7e3)+"ms";t[n].style.animationDelay=e;t[n].style.WebkitAnimationDelay=e}}
 
10:18 AM
y0 brother bro @Zirak, 'sup son ?!
 
hello
 
i have get all value check items list in use javascript
var checkList = document.getElementById("<%=ChkListAddiction.ClientID %>");
var options = checkList.getElementsByTagName('input');
var listOfSpans = chkBox.getElementsByTagName('span');
for (var i = 0; i < options.length; i++)

{

if (options[i].checked)

{

alert(listOfSpans[i].value);

}

}
 
@jayrajGoswami please edit the message and press Ctrl + k to format the code
 
10:42 AM
Hi
For some reason this: $('.class').live('blur',function () { } are executing twice when the textarea is not longer selected
` $('.coachComparison').live('change',function () {
//Ajax stuff here
});`
 
11:00 AM
Don't use .live
ever
 
what then?
 
!!/tell I'll-Be-Back jquery on
 
Too bad i am using 1.6
 
Don't use 1.6
ever
 
11:03 AM
lol
 
Seriously. Browsers change. So jQuery, which is a compatibility layer over browser differences, has to change too. If you have bugs and use an old version, you only have yourself to blame.
 
I will try 1.7 - i hope it won't break
 
Use 1.10...
 
or the latest yes.
so how would you replace ` $('.coachComparison').live('change',function () { ` to On?
the .live() method has been deprecated since jQuery 1.7 and has been removed in 1.9.
Ahh too risky at the moment
Will use jQuery 1.7 at the moment
and slowly upgrade to 1.10
 
11:24 AM
this is not working `$('.myclassname').on('click',function () {'
i replaced to live to on
 
@I'll-Be-Back You didn't read the documentation, obviously.
See this question and answer
1
Q: Jquery .on() not working on dynamic content

edelweissI have a tag A in which when clicked on, it appends another tag B to perform an action B on click. So when I click on tag B, action B is performed. However, the .on method does not seems to be working on the dynamically created tag B. My html and jquery for tag A is as below <a id="address" ...

 
Anyone good with SEO ?
 
Cool thats work
 
!!/welcome dievardump
 
@dievardump 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.
 
11:27 AM
:p
 
It would be faster to have proper selecter instead of document.body ?
 
@I'll-Be-Back yes. But don't spend too much time on client side performances if it's fast enough
 
Cool
$(document).on(events, selector, data, handler);
How do you know what the document would be from ajax popup?
What do you think of this code:
` $(document).on('blur','.coachComparison',function () {
var Ids = $(this).attr('id').split('_');
var fieldType = Ids[0];
var coachId = Ids[1];
var value = $(this).val();
$.post("coaching-ajax.php",{ action: fieldType, coachId: coachId, value: value }, function (j) {
//
},'json');
});`
 
11:52 AM
@dievardump yep
 
good afternoon gentlemen
Can anyone point me to a good resource on OAuth for javascript? I'm having very hard time implementing a simple twitter interaction in a google chrome extension
 
@FlorianMargaine Did you look at the URL of the original comic image ?
 

« first day (970 days earlier)      last day (3985 days later) »