« first day (437 days earlier)      last day (4736 days later) » 

user986408
00:00
thx
Enjoy
WOAH WOAH WOAH
should i be able to confirm edits? 0.o
Yes?
!Zirak /test
lol
Whadya mean?
!Zirak /test
00:06
should it be an exclamation mark? :P
yeah I changed it, so I don't get pinged to death and turn even more insane by that annoying noise
You are all part of a little test. Type AIBot:stop to leave. :-)
!Zirak /test
@Zirak W
Working y
et?
00:12
Nope
@Zirak [AIBot]: I'm not sure I understand. This site has two JavaScripts: Ping Pong and Tic-Tac-Toe.
Test
Ok, it obviously works :-)
I should go test it to some more lively chat room
No, it doesn't
It doesn't?
00:15
Mine doesn't
@Zirak [AIBot]: Wow. With this file I can chat about computers, games, food, books, myself, and software.
Test
hey
hey
function cometConnect(){
var xx = $.post('controller/method', {"messages":1}, function(data) {
$("#form").append(data);
}).complete(function() { cometConnect(); });

xx.error(function() { xx.abort(); })
}
please help me, i am going insane
So am I, but that started years ago in elementary school. Care to share your specifics?
hey
hey
everything works fine, but, when the user clicks on the logo or somewhere, he needs to wait for a response to be redirected
it gives error, but it doesn't work: xx.error(function() { xx.abort(); })
00:18
@hey [AIBot]: How long have you worked for?
@hey [AIBot]: All work and no play makes Jack a dull boy.
hey
hey
6 hours
@hey [AIBot]: I wish I had a different job; I could be a doctor.
@hey [AIBot]: My only job is to sit here talking to you.
It's a bot, don't bother.
@Zirak [AIBot]: I'm not sure I understand. A googol is a one with 100 zeros after it.
hey
hey
oh nice
00:18
@hey [AIBot]: Oh yes. Who is your best friend?
hey
hey
zirak, could you look at my code, please?
For some reason it's automatic, @Witiko didn't bother making people register to it before it starts
@hey [AIBot]: I am a chatterbot, you know.
@Zirak [AIBot]: Did I tell you that already?
true, true
Switching it off :-)
Try doing funky stuff in the error function to see that it really doesn't fire (like, alert or log or something)
hey
hey
yeah, alert works
just that xx.abort() doesn't
i have no idea why
00:20
What does xx.abort supposed to actually do?
hey
hey
i try to write live chat app
with comet (infinitive loop)
it works eprfectly
Doesn't matter, what does xx.abort supposed to be doing?
hey
hey
but, if user clicks on the logo and he wants to go somewhere, he needs to get a response before that
How do you know it doesn't work?
hey
hey
because i still need to wait for a response to go somewhere
do you have any suggestions what I should do?
00:23
I'm looking for docs on thatThing.abort
hey
hey
thanks
Care to create an example test page?
hey
hey
where to post it?
jsfiddle.net or something similar
hey
hey
what about php
i can paste only js
i have really few lines of code
00:26
It's an example. You said it doesn't stop the redirect, so make a redirect
See if you can re-create the problem in a different environment
hey
hey
if i redirect instead of aborting, i have the same result
huh. I just thought of something. If the server already received the message, it might still do stuff even if the browser stopped caring
Just create an example test page. Extract what, in essence, doesn't work.
hey
hey
my php:
while(true)
{
if(rand(1, 10) == 1)
break;

usleep(100000); // sleep 10ms to unload the CPU clearstatcache();
clearstatcache();
}

echo rand(1, 100);
flush();
It doesn't matter
So far all I've got is that xx.abort doesn't work. I don't know what that actually means
AIBot:start
@Witiko [AIBot]: Greetings, Internet user.
AIBot:stop
@Witiko [AIBot]: Wait. Don't leave yet.
GGG
GGG
00:32
lol
@GGG Wanna try the bot out? :-D
GGG
GGG
i think we should go to room for bots
right, I lost the link -_-
my progress...never done this before so let me know what you think
00:37
!Zirak /mdn String.split
@Witiko Good news, I managed to make the same-room policy...
It took this long because I'm an absolute moron
GGG
GGG
@Purmou it's not moving :(
@GGG that's why i said progress xD
i've never even done objects or whatever that is lol
GGG
GGG
lol
and i can tell that it's awful
but practice makes perfect
GGG
GGG
constructors
00:39
yeah, never worked with constructors, or making my own at least
user986408
me again.. (today i learned a bunch of js stuff ;)).. i created a div dynamically with js and assigned it a class (firebug even shows me the div with the class in the body) but i can't see it
hey
hey
has anyone tried to implement live chat with php+jquery+comet?
user986408
note: i have declared a width, height and visible border with css
is it appended anywhere in your code?
how do you center a canvas? :P
GGG
GGG
00:40
@ThatWebNerd did you attach it to your document
user986408
yep to the body
GGG
GGG
so you have like document.body.appendChild(myNewDiv)?
do i have to use css to do that?
user986408
firebug displays it at the bottom of the body (after several other divs)
user986408
document.body.insertBefore(my_div,wrapper);
GGG
GGG
00:41
@dualCore pretty much
user986408
var wrapper = document.getElementById('body');
var my_div = document.createElement('div');
i see
does the div have a closing tag, does the class you assigned it have display:none?
@GGG thanks
GGG
GGG
np
user986408
00:42
yep closing tag, and no display:none
Does it have any content?
post a question
user986408
no content
you know, that's a good point Zirak XD
user986408
just the css
00:42
well tat's why you can't see it
is there a background color?
Bitchy thing, these elements. If they're empty, they aren't actually visible
huh, i cant find out how to do that
user986408
if i declare a div without content but assign it a "border:1px #F00 solid" i see it
you have a width and height set, but if the background color is the same as whatever is behind it, then it doesn't show
user986408
in html tough
00:43
what code do i use to center an empty canvas in css
@Zirak he has widht and height set so it should be visible
user986408
yes
again, the background color
is it the same as whatever is behind it?
@ThatWebNerd Show me dah codez
user986408
second
GGG
GGG
00:43
@dualCore try giving it an absolute width and margin:auto
My head is about to explode, brb
user986408
didnt format it well ..
@GGG huh?
I'm new with all this
GGG
GGG
style="width:400px; height:400px; margin:auto"
00:46
Seriously? Semi-static style creation?
user986408
i've no css :(
user986408
file*
style.innerHTML = '.chatlog { width:200px; height:600px; position:absolute; border:1px #F00 solid; }';
at first i was like
Also, you didn't add the style tag to the DOM, so it isn't parsed
And no need to use innerHTML for not setting html. Set its text content.
@GGG hmm, that didn't do anything as far as i can tell
GGG
GGG
00:47
hmm
isn't there something i have to put in css?
like: canvasOne {center;}
(that doesn't work though)
GGG
GGG
can u put this on jsbin or soemthing
I have to leave, I'll keep looking for how to do this
var style = document.createElement('style');
style.textContent = '.chatlog { width:200px; height:600px; position:absolute; border:1px #F00 solid; }';
document.head.appendChild(style);
@dualCore of course that doesn't work, CSS works like property: value
00:48
That was @ThatWebNerd
GGG
GGG
@Purmou he's new at this
@GGG did that come off as rude? i have to work on that...i'm just a bit blunt sometimes
GGG
GGG
well "of course" is subjective is all i'm saying
it probably isn't at all obvious to him that it doesn't work
(or he wouldn't have typesd it)
user986408
@Zirak so many stuff to consider :D.. working, thanks again
@dualCore: CSS is a collection of properties which are associated with values that dictate the appearance of the page...{center;} doesn't work because it's treating center (a property that doesn't exist in the CSS spec) as a value-less property
@ThatWebNerd: Why are you dynamically making the style element again?
user986408
00:52
@Purmou because i'm trying to write a userscript
@ThatWebNerd It makes sense once you think of it. Correct, you've picked the berries from the trees, but if you don't put them in the basket...
user986408
actually i'm learning javascript this way..
ah, i see
user986408
theres no better way to understand dom..
user986408
i ve learned so much today :)
00:52
damn straight, lol
user986408
@Zirak yea :)
Once you think of the DOM as a data structure, stuff makes sense
there was a user some time ago
he kept referring to elements as "DOMs"
"the parent DOM"
"the child DOM"
sigh
user986408
:D
00:54
i was like "wtf"
let me go see if i can find it...
ah forget it, i'm busy
It's not actually inaccurate, you can have several trees, but I'm guessing it wasn't what he meant...at all
btw, my bot is running now if anyone needs it or just wants to play hangman

« first day (437 days earlier)      last day (4736 days later) »