brad's life - Weekend hack: Shared whiteboard in JavaScript [entries|archive|friends|userinfo]
Brad Fitzpatrick

[ website | bradfitz.com ]
[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

Weekend hack: Shared whiteboard in JavaScript [Mar. 14th, 2005|03:50 pm]
Previous Entry Add to Memories Share Next Entry
[Tags|, ]

My adventures with XMLHTTPRequest and a never-ending HTTP response:

Draw and chat with your friends: (or play pictionary!)

http://www.danga.com/misc/jsdraw/xmlhttp.html

Just a prototype. Requires FireFox at present. IE is lacking a number of useful features.

Soon to be added:
-- named spaces, so people can make their own space w/ friends, and not fight tons of people on the net for drawing
-- colors / color picker
-- brushes
-- infinite board
-- see nicks, not IPs, in chat
-- server-side saving of old wiped images (so clients can see last 20 images)

Enjoy.
LinkReply

Comments:
[User Picture]From: eli
2005-03-14 11:52 pm (UTC)

(Link)

So like....MS NetMeeting?

Heh...just fucking with ya. I haven't checked it out yet, I'm sure it's cooler.
From: sherm
2005-03-15 12:18 am (UTC)

(Link)

Heh. I had the same thought. Brad, upon finally selling all his businesses, finds himself back in 1996. :P
[User Picture]From: boggyb
2005-03-14 11:56 pm (UTC)

(Link)

I've finally found a reason for me to get Firefox.

(Win2k + IE6, only spyware I've ever been hit by are cookies)
[User Picture]From: bitwise
2005-03-14 11:59 pm (UTC)

(Link)

Amazing how bleeding edge cool tech can make highly educated professionals look like five year olds fingerpainting and cutting each other's hair.
[User Picture]From: taral
2005-03-15 12:02 am (UTC)

(Link)

Awesome. Neverending responses mess up proxies though.
[User Picture]From: dakus
2005-03-15 12:03 am (UTC)

(Link)

slicker than owlshit!
[User Picture]From: curbside_yogini
2005-03-15 12:14 am (UTC)

(Link)

lol new entertainment for the evening!
From: pinterface
2005-03-15 12:23 am (UTC)

(Link)

Congratulations on creating the first web page to make my copy of Firefox suck up over 300MB of RAM more than it already was! (Granted, I've only had it for a week.) Probably could have gotten higher, but I ran out of pagefile. ;P

[User Picture]From: iamo
2005-03-15 12:31 am (UTC)

(Link)

Heh yeah, this is cool, but it'd be cooler if it didn't absolutely destroy my machine.
[User Picture]From: chris
2005-03-15 12:42 am (UTC)

(Link)

huh i was wondering what happened to firefox.
From: sheehan
2005-03-15 12:40 am (UTC)

(Link)

mine claimed 830 megs... i'll stick to MS paint :)

--scott
[User Picture]From: avatraxiom
2005-03-15 02:37 am (UTC)

(Link)

Very streange. My Firefox is fine. I'm on 1.0.1 on Linux, though. Maybe it's something in the Win32 GFX, or something that was a problem some time before 1.0.1.

I do recall a problem with animated GIFs in much older versions -- it could be something similar.

-Max
[User Picture]From: jojobear99
2005-03-15 03:13 am (UTC)

(Link)

least it even loads in firefox... ;-)
[User Picture]From: denshi
2005-03-15 12:48 am (UTC)

(Link)

Sweet hack!
[User Picture]From: eru
2005-03-15 01:11 am (UTC)

(Link)

the social dynamic that's forming is amazing. also, my robot drawing kicked ass.
[User Picture]From: youngoat
2005-03-15 02:00 am (UTC)

(Link)

I agree with both of these statements.
[User Picture]From: loganb
2005-03-15 01:20 am (UTC)

(Link)

It is far more useful to show IP. Why, I just ran into someone from my school 'cause they're on IP block is 137.112...
[User Picture]From: yiyi
2005-03-15 02:06 am (UTC)

(Link)

[User Picture]From: jes5199
2005-03-15 03:19 am (UTC)

(Link)

i was playing with this sort of thing
and generally i found that i had more luck getting the damn thing to work at all by using lots of tiny complete requests, rather than holding a connection open.
(holding a connection open had a habit of crashing firefox, crashing apache, crashing php, etc etc)
[User Picture]From: noogz
2005-03-15 03:32 am (UTC)

(Link)

that's super cool!! I'm glad i have firefox...

although you might want to make the thingy saying how many people are drawing a little bit bigger. I clicked in, and saw this cool penguin picture, and doodled, not realizing someone else was doodling. OOPS!!

sorry!! :(
[User Picture]From: jarodrussell
2005-03-15 05:38 am (UTC)

(Link)

So cool!
[User Picture]From: czircon
2005-03-15 09:54 pm (UTC)

(Link)

Dude, you should totally incorporate this into LJ somehow. Like, give everybody their own whiteboard with custom friends group access. And stuff. (Paid users only, of course!)
[User Picture]From: firelegend
2005-03-24 03:42 pm (UTC)

(Link)

Doesn't seem to work in firefox for me :(
[User Picture]From: repalviglator
2005-10-23 06:02 am (UTC)

(Link)

Did you ever get anywhere with this? The link isn't working for me. I was interested in having a free web-based whiteboard. I think that would be pretty sweet.
[User Picture]From: brad
2005-10-23 02:24 pm (UTC)

(Link)

Reload this journal entry.... I updated the URL to remove the port number.