« first day (705 days earlier)      last day (4471 days later) » 

00:06
@Loktar well for some reason i still can't iterate through it in IE
-1
A: Submit form without page reloading

heyWhy better without ajax or jquery? Jquery is very powerful and user-friendly and it is actually easy to learn, if you managed to learn php, jquery will be just fun. Check this: http://api.jquery.com/jQuery.post/ , but before that, learn jquery basics: http://jquery.com/ Believe me, your visitor...

hey @tereško
ok i think i got it
must be a problem with each in IE but i already know i can't use a for loop
@Loktar i just stumbled over this in jest source
resource.source.onload = function(callback, res){callback.loadImg(callback, res)}(this, resource);
anyone have experience with CORS + CANVAS + VIDEO?
why exactly are you doing it this way, instead of just calling this.loadImg ?
00:12
:?
/me thinks
OH
yeah theres a weird issue
onload doesnt always mean its loaded
it was a crazy bug
cant figure out how to stop "Unable to get image data from canvas because the canvas has been tainted by cross-origin data."
and this helps.... how? :D
@ChadScira gotta be on the same domain
@GNi33 tbh the resource loading was/is the weakest part
I had so many issues with it
@Loktar you cant use access-control-allow-origin ?
i'm in the middle of it right now, but i suck so bad at this :(
00:14
actually that should work
heh well dont take what Ive done as anything amazing
I need to go back and add/fix some things
can't seem to figure out how to organize all of it
like I should be using indexOf in a few spots
@Loktar so the implementation of the spec is broken?
@ChadScira im not really sure, I havent actually done with it allow origin
@GNi33 I should upload a sample proj
well, i'm writing my own for pure "educational purposes" for myself.
i guess that will include a lot of trial and error until i get on some path that leads me somewhere anyhow
00:16
ah you mean a game engine ok
yep
yeah man theres so many great examples out there now
the biggest thing in mine is the sprite object
would you recommend one?
I havent really used any, but I hear Impact is really good, and Craftyjs
the first version of mine will pretty much only be sprite-based stuff
00:17
impact cost $$
trying to write SkiFree, but built from scratch
lol I just kept adding stuff to mine
I need to go back and work on it
oh, craftyJs looks nice
I think that was the last thing I added
@Loktar yeah, i've seen that one
00:19
I prob should just concentrate on modules for existing game engines.. but when I started there werent really any around
they were all young
i think Ill make a pen out of the particles
@Loktar dude make your own. Rather, expand it. I'll use it!
@rlemon no dont dude..
there s much wtf in it :P
blessing in disguise how much you learn in liek 6 months
dammit, it's 02:30 am again
Well fix it!
I look back and im like oh hell why did I do that, that way
00:20
need to get up at 07:00, goddamn hacking
lol sucks @GNi33
8:20pm hers and I'm already drunk
yeah maybe instead of taking over peoples projects at work ill fix it
only 7:20 here
lol that a boy. Get paid to build open source projects
you're in the same time zone as chicago
whenever i get stuck on a thing like that, i feel like the biggest idiot ever. need more practice
00:22
yeah im Central
Est
Anyways. Back to diablo
meh, don't make me start FTL now...
haha
@rlemon you going to play torchlight 2 at all?
i got big sleeping issues anyhow
if i'm not falling asleep the next hour, i'll just pull through the night
crafty mixes up DOM and Canvas pretty hard, huh?
var base = document.getElementsByName('detaillist');
for some reason this wont return a freaking array for me does any know a different way to make an array
00:29
What does it return?
in IE9 it doesnt seem to return anything
i have console.log(base); returning a single empty space
ok never mind now im getting object HTML collection
What was the issue?
still the issue
basically i make an array of a bunch of divs, those divs are then selected and the selected div gets a fadeIn while the others are hidden
however the for (which is now an each) is not iterated even once
the supposed cause being that my array is not an array so there is only one entry in each
for some reason roundabout doesn't like being used in fiddle
00:36
Uh...huh =P
i've been at this for 8 hours so im a bit weary
ill make somethign for fiddle
Time to leave it? =)
can't
alright guys, i'm out, good night \o/
00:46
G'night.
@CallumMcLean jsfiddle.net/qbuum
it works there
00:58
I just don't get it
works fine in js fiddle IE and FF works fine in FF implimented
just wont work in IE
01:13
good mornin'
Is anyone around? at all?
questions would document.get work in a linked js file
@Jeebsion morning
01:30
0
Q: First Wordpress plugin and code review

FajitaNachosThis is my first Wordpress plugin. I would love some input from the WP/PHP/javascript guru's out there. It's a simple plugin that saves a post using ctrl+q and opens a preview in a new or current window. <?php add_action('admin_menu', 'plugin_admin_add_page'); add_action('admin_init',...

02:29
iOS 6 rocks
I am loving the webinspector
but i will switch to n android soon :-/
its not that good :-(
WUT IT SUPPORTS WEBAUDIO
wow it supports css-filters
i wonder if it supports mediastream
03:01
developer wise me happy
user wise me sad
- iOS 6.0 -
03:40
Even the worst, most basic, crappiest program ever made can be turned into something absolutely mind blowingly awesome, with a good solid foundation that has an ability to expand and be extended. jQuery would be a perfect example, except jQuery doesn't really do anything on it's own. It's just crap that doesn't do anything to begin with.
@Abhishek iOS 6 is no exception. Crappy user experience, with all the tools there to make it very-very good.
@andrewjackson lol
@andrewjackson iOS 6 has tons of features but what dipressed me is
it looks fricken same as iOS 5
Well, I don't mess with iOS tbh, just going from what I hear...
But isn't there some way to replace that?
nah
i dont wanna jailbreak this
to do it
The ability to change the UI seems kind of essential imo
That's what I mean, you shouldn't have to
....In a perfect world
aha iBooks is good :D
me happy me gets to read
03:47
Hey all, im having an issue with a contact form, when submit is clicked it sends me back to the top of the page, can someone help?
"iBook" used to be what they called their laptops lol
@matt jsfiddle first, ask second
well I have a live link, not a jsfiddle is that ok?
that's usually fine too
feel free to fill it in, you will notice it hops to the top after :S
I also pasted the contact div here: jsfiddle.net/7bqq3
worked find for me
sent me here
03:53
it didnt send you to the top?
try clearing your cache
yes but then you dont see the "thanks" message...
it should go back to the #contact anchor
set the form action to "#contact-form"
actually...
it does to process.php
then process.php redirects back
so have it redirect to index1.php#contact-form
1 sec let me look
should I modify it in the process.php?
//redirect back to form
header('location: ' . $_SERVER['HTTP_REFERER']);
}
yes
header('location: ' . $_SERVER['HTTP_REFERER'].'#contact-form');
04:00
thanks, let me test :)
Thank you! :)
optionally, you can set it to "#contact" too, that might be a little better
you're welcome
yeah but contact form is set to the correct vert position
or do you mean remove the HTTP_REFERER part
I mean do this instead:
header('location: ' . $_SERVER['HTTP_REFERER'].'#contact');
#contactus actually :)
well, either or works
as long as there's an element with "contact" as it's id
04:04
gotcha
now my other issue:
http://stackoverflow.com/questions/12505881/ie8-compatibility-issues-overflow-scrollbar-issues
but you have helped me enough :)
ya, I'm actually on my way out
good luck though
Thanks a lot
0
Q: IE8 Compatibility Issues - Overflow/Scrollbar Issues

mattI having issues with scroll bars displaying on IE on a site I have been working on. I am on OSX so unfortnealty I cant quite test it to see where the overflow (I assume) issues are coming from. I was hoping someone could help, here is the site. It should be full width and no scrollbars anywhere...

04:36
2
Q: How to make sure requests are from my website?

HermioneSome smartass people are using my api-centric web app to clone my service and make it appear like their own. Is there a way to make sure all ajax requests are for/from my website? Sure I could use the referrer header but they could easily fake it.

05:11
I dont know why was apache.org opened in my browser
for so damn long
@AmaanCheval HAPPY BHARAT BAND :d
:/
Mumbai isn't completely shut
I may have college
lmao
Jabalpur is shut down
No shops open either?
05:40
nope
05:54
Damn. I'm going to have to download iOS 6 through iTunes
It'll take 3 hours
06:15
What’s new in the iPhone 5 and iOS 6 for web developers: http://mths.be/bjh
hey amaan, you sure that I can trigger click event on a disabled checkbox?
But thats what you told me to do yesterday
I'm not sure till I try it
06:18
Hmm, you can't
Sorry
7
Q: Remove disabled attribute onClick of disabled form field

iamgoatI have a form field that starts out disabled and has an onClick to enable it. The onClick doesn't fire (at least in FF) nor does a simple alert(1);. The hacky version is to show a fake form field in its place that "looks" like it's disabled (grayed out style) and onClick, hide it and show the c...

You want to disable moving focus using the tab key, right?
Shouldn't e.preventDefault(); work?
Don't know, can it still be clicked then ?
06:21
Yeah, totally
onkeydown, check e.which
If it's equal to the tab key's, which is 9, I think, then e.preventDefault();
huh ?
How to write that ?
or read about it, because I understand not :-/
This prevents losing focus on hitting the tab key on all input elements
elem.addEventListener('keydown', function (e){
    if(e.which === 9){
        e.preventDefault();
    }
}, false);
That's the main part
But i don't want to prevent them losing it, but from gaining it. Because It's like working in a "datasheet" have a column of input type=text, and a column next to them with checkboxes.
So to make it fast to enter data, tab - write number - tab - write number, instead of double tab.
maybe just onclick = focus textfield ?
06:27
What?
I didn't get you
What exactly happens on tab?
If I'm in my data column, and I hit tab, then focus goes to checkbox.
But you want it to go to the input?
But I wan't it to go to next data field instead
Shouldn't your HTML be that way, then?
They are both input :P just type=checkbox and type=text
That way ?
06:29
Yeah, have all your data fields next to each other
Have the checkboxes in the end
It's tabular data, created on submission from elsewhere
Position them with CSS
So it's in table
Hmm
Okay
I've got a hacky solution
But I think I can do it, because I know the name of the next input=text so i can take that and .getFocus() ?
06:30
Oh
Yeah, totally
Attach something to every input that's next to a radio or checkbox
That prevents tab from losing focus
And it .focus()'s the next input
Assuming the names are related somehow?
Ahh yeah ofc, now I do it on click.
Is there a onFocusGained event?
onfocus
I didn't talk about onfocus, though
That works indeed. But won't it be more trublesome adding that eventlistener to every line?
Make it more general
Add to all inputs with say the class of "last"
06:38
http://jsfiddle.net/Le9UX/2/
?
To go to the next element with the class "next"
@AndersMetnik Yeah, that works
I thought the onfocus would fire onclick
And it's not done in a bad manner is it? :)
Doesn't, so it's perfect
@FlorianMargaine Sup?
I'm engaged
Morning Florian
@FlorianMargaine I'm sorry to hear that ;)
06:41
Like to-be-married engaged?
Congrats!
thanks
@AndersMetnik haha :p
In Danish "to be MARRIED" is called "at blive GIFT" but our word gift, also means poison ;)
So we say married is not something you get, it's something you take ;)
But congratulations if you entered it voluntarily ;)
07:02
@AmaanCheval time for a followup?
http://jsfiddle.net/Le9UX/3/
I'd like to mark the content of box, if possible
@AndersMetnik Mark?
Like select?
That already happens
(By the way, shift+tab won't work here)
What's shifttab?
Focus on the previous element
That's ok :)
Hmm it doesn't focus in my project but it does in fiddle, :/
O.o
Got a link?
07:06
Is there some kind of css property that does that?
Sorry it requires login :)
That does what?
make it non selecting onfocus
Yeah, but it isn't exclusive to onfocus, I think
Unless it was applied :focus
Just need to search through the css sheet for it, you know its name?
I think it's user-select
07:08
Ahh nevermind, it's my onKeyUp that does it
Good to see the DOM Enlightenment book by @codylindley - for FREE - is available at http://domenlightenment.com/ Proper DOM scripting, no libraries
so on my gfs bday
i wanted 2 make it special
And it'll probably be a website, won't it?
she plays games , likes purple , sooo
@AmaanCheval nice
07:22
i boght her an alienware
with default purple accent :D
You must be rich, man :D
@Abhishek you bought it already?
not rich , i earn enuogh nd save stuff
@FlorianMargaine yeap
i knoww some desktops can beat the specs but
for 1.3k i7 3rd gen , 8 gig ram , 1.5 Gig GPU , 2 TB HDD in alienware build is good
07:25
@Abhishek 1.3k dollars?
tbh, I wouldn't accept such a gift if I were your gf
why :-| ?
I wouldn't either
Maaaybe :p
How long have you guys been going out for?
lets bet 100 rep on she would like it ?
known each other for 2 and half years
07:28
She'll probably appreciate the gesture
Can't say if she'd accept it
we shall see :D
if she likes it i will tell yew , if she doesnt i will tell yew :D Lol
I doubt she'd say she doesn't like it
Even if she doesn't
@AmaanCheval shes a gamer >_<
a die hard gamer
anyways i need to get re-factoring done
See you
i am afk , if ya need help ping me
what the heck is happening there ?
07:40
@Abhishek it's a little helper method
!!~ ?
what does that do ?
ah ^
that's not necessary actually
it's the same as ~
it's just that ~arr.indexOf returns 0 or something else
and !!~arr.indexOf returns true or false, so it feels cleaner
! casts to boolean and inverts
the second ! inverts back
got it :D
// i am reading ur code again for modulerazing my mess
function getAllPersons(){
var url = "resources/person";
$.get(url, function(data) {
var obj = $.parseJSON(data);
alert(obj);
});
}

Should this work?
when it is a json i get back from the $ method
@AndersMetnik you dont need $.parseJSON
it will auto prase
07:46
Ohh okay, thanks
@Abhishek How to be able to see what is in the data then?
@AndersMetnik just use the data object :P
jQuery detects wt da fuk is the datatype intelligently and then gives u a parsed object
, right ?
data.each doesn't work ? any idea?
08:26
console.log is your best friend :)
or just debug
@Abhishek as you see, I modularize to separate concepts, that's pretty much it
08:55
Hmm consider the following three lines:
console.log(divOverwriteTo, "div before Overwriting");
$(divOverwriteTo).empty()./*append(ulClone);*/  //<-- Try uncommenting this append()-call
console.log(divOverwriteTo, "div After Overwriting");
If the append() call is commented out, both console.log print an empty div
Not surprising
setTimeout(function(){alert("for 1 minute and logs the user out of a web application if the user doesn't respond to keep the applcation open.")}, 60*1000)Neil 18 secs ago
Am I being lazy?
But.. if the append() call isn't commented out, both console.logs return a div with content?
Can anyone explain this?
@AskeB. uhm, no syntax error? There's a trailing .
empty().
And yeah. You're inspecting an object, and objects can change. So when you look at the object from the console, you're seeing the changed version (which the console then caches.)
@Zirak Yeah there were a syntax error in that example
@Zirak So how do I debug then if it isn't realtime?
you know there is a debugger in firebug/chrome inspector?
like, a real debugger
where you can set breakpoints etc
08:59
Breakpoints are for pussies. Gimme a min

« first day (705 days earlier)      last day (4471 days later) »