« first day (269 days earlier)      last day (4680 days later) » 
00:00 - 18:0018:00 - 23:00

12:00 AM
@MattMcDonald yay! plain ole JS!
 
 
1 hour later…
1:14 AM
@MattMcDonald so, what happens if I have <div class="foo foo"> and call removeClass('foo') ?
Or if I have <div class="foobar"> and call addClass('foo') ?
 
1:34 AM
@hallvors the world erupts into a flaming ball of fire and <blink> tags rule the earth, naturally.
 
user1385191
 
RT @stevefaulkner: #HTML5 Accessibility Chops: ARIA landmark support http://t.co/7R0drBf & test results http://t.co/QQfjSMZ JAWS, NVDA, ...
 
2:51 AM
Could node.js ever become as fast as python or java?
 
 
3 hours later…
5:48 AM
hi all
i am using stack over flow for the first time
and that too with chat
i want to ask
a question
would any one help me
?
@Nathan would you help me out?
 
 
2 hours later…
7:33 AM
i invite all to my question : stackoverflow.com/questions/6613526/…
0
Q: JQuery UISortable gets fine on Ipad, but normal links on listing fail now

SohailI had a problem that jQuery UI sortable was not working on iPad/iPhone for my record list. I have [edit] and [delete] links in front of each record, the problem of ui-sortable is fixed by http://furf.com/exp/touch-punch/sortable.html, that was just to include one js file that remap touch events t...

 
 
1 hour later…
8:44 AM
@Lime what do you mean?
The asynchronous web server is already faster
V8 is faster then python
You have to define "faster". I believe node.js already is faster then both.
 
9:05 AM
RT @assaf: v8: a tale of two compilers http://bit.ly/oe14mM <- interesting look at V8's two compilation strategies
 
9:47 AM
posted on July 12, 2011

After the astounding success of Mobilism 2011 we lost no time in planning the next edition. Therefore we're proud to announce that Mobilism 2012 will take place on 10th and 11th of May 2012 in Amsterdam. We booked Tuschinski for a venue: a riotously art-deco cinema in the very heart of Amsterdam. We also booked Jeremy Keith for moderating the mobile browser panel once more, and are currently

 
10:06 AM
Feedback appreciated ;)
1
Q: Are there any limitations of an idealistic web application

RaynosLet's assume the following two assumptions are true. Your entire userbase has broadband access everywhere There is an imaginary browser X that implements the entire draft specification of the HTML5 and WHATWG groups, consistently and all users use browser X. What are the intrinsic limitations...

 
10:17 AM
2
Q: Are there any limitations of an idealistic web application

RaynosLet's assume the following two assumptions are true. Your entire userbase has broadband access everywhere There is an imaginary browser X that implements the entire draft specification of the HTML5 and WHATWG groups, consistently and all users use browser X. What are the intrinsic limitations...

0
Q: How to protect source code when game is developed in HTML5/Javascript

Huang F. LeiIf a game client is developed in Javascript, the source code can be found in browser. It's dangerous, because it's easy to hack the game, and patent can't be protected. Are there any good ways to avoid this, e.g Javascript can be compiled to binary file then browser load and run the compiled ja...

 
10:29 AM
Speed? V8 is a beast. JavaScript is only a factor of 3 away from C++.
where does that number come from ?
 
A benchmark
showing that C++ is only a 3x faster then v8
Do I need to list my source on that
 
ehh dunno, but I would like to see the source personally :)
 
Google v8 benchmarks :D
 
11:12 AM
I would like to create an image editor with mootools. Is it possible to remove the image background using Mootools.
 
 
1 hour later…
12:31 PM
@Kyathi I'm gonna go with "no" on that one.
 
1:17 PM
@Kyathi , you can do with mootools everything what you can do with javascript
 
Mac
1:29 PM
Hey, anyone available to quickly help with a jQuery dragable problem?
 
Hey Can you guys help real quick?
 
Mac
@SirB With what?
 
@Mac I don't know anything about jQuery draggable, sorry
 
opening a link in a new window. can you quickly point out what i did wrong? ` $("#jsddm li ul li a[href*=/our-blog/lig-employee-benefits-blog/]").attr('target', '_blank').attr('href', 'http://google.com');
});
` ?
 
@SirB Pro tip: just ask the question
 
Mac
1:31 PM
@RyanKinal Ahh ok, no prob
 
How can i format the code for the chat?
 
@SirB ctrl-k
 
  $("#jsddm li ul li a[href*=/our-blog/lig-employee-benefits-blog/]").attr('target', '_blank').attr('href', 'http://google.com');
});
 
Although, backticks will generally work for in-line formatting
 
Is my syntax above correct?
 
1:33 PM
@SirB Assuming that the }); is the end of a document.ready or a click or something, it should be.
When does this get run? Is it an onready, or is it an onclick, or... ?
 
on ready
It looks fine to me but when I refresh the page my Error Console says " Syntax error, unrecognized expression "
 
@SirB Huh. Odd. What happens if you remove the attribute selector [href*=...]?
 
It adds a "target blank" to all my a tags within jsddm
I found out what i was doing wrong! Thanks @RyanKinal though!
 
@SirB No problem
My goal is, often, to guide someone to a solution, rather than find the solution myself :-)
 
Thanks for looking into it
Nice i like that.. Stackoverflow rocks because of members like you! Keep up the work
 
1:59 PM
there is some sort of error
my slideshow at the bottom of the page appears in chrome but not firefox
what could be wrong o.o
if there was some sort of error i could have something to work with but in this case im clueless
 
Mac
@ErrorErrorError I'm running Firefox 5 and I see your slide show.. What version of firefox are you testing it in?
 
1.8
 
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.18) Gecko/20110614 Firefox/3.6.18
 
:-D
 
would like to know how many main java script are there?
 
2:06 PM
i have the latest one no?
it should give me optino to update
my itnernet explorer runs the slideshow too
 
Mac
@ErrorErrorError The latest is version 5
You have 3.6
 
i recently had just updated i thoguht ti was updating me to latest version lol
when i check for updates, says no updates you will be notified if there are any udpates
 
aww...ok where it is let me check?
 
Mac
For a major version update, e.g. from 3 to 4, 4 to 5 I believe you have to download from firefox's website
 
oh alright thanks a bunch
 
2:10 PM
no worries
 
Mac
@ErrorErrorError no prob
 
would like to know how many main java script are there?
 
@SbSangpi I don't know what that means
 
Mac
same, what do you mean by 'main java script'?
 
aww actually I mean like java script for programming and for website..
r that two java the same?
sorry ..is my Q clear?
 
2:14 PM
@SbSangpi Are you asking if Java is the same as JavaScript?
 
@Mac all of a sudden it has started working withotu the updates, computers are very complex weird machines lol
 
@RyanKinal yes. right.
 
Mac
@ErrorErrorError lol, maybe it was a cached version of the page you were viewing! :)
 
@SbSangpi No. Java and JavaScript are completely different animals.
 
Mac
Good to know it's working now though
 
2:17 PM
Ah, caching. The bane of JS developers everywhere.
 
@RyanKinal aww.. i see..now thx..
 
why isnt jsfiddle working... :-(
 
Mac
Oh noes, look's like it's gone down :/
Arrgg, I was halfway through doing something on there as well lol
 
@Mac -- jsfiddle clone: helpmetestthat.com/diddle
 
lol
 
Mac
2:24 PM
@Neal Thanks :)
 
@Neal 'morning
 
Mac
ha lol, can't believe its called diddle!
 
@RyanKinal mornin
@Mac hmmm diddle has errors
 
Mac
ow
 
use jsbin.com?
 
2:26 PM
@Neal Oh, the inappropriate things that could be said about that comment.
 
@RyanKinal oh the things...
@Radu i dont like it
not good for js lol
i want to test this question:
 
yeah, but if fiddle is down..
 
0
Q: Using FileReader in Chrome

user840866I'm going to make a page that allows dragging an local image onto it. Here's my code, which doesn't work in chrome The problem is reader.onload event didn't trigger, onerror did instead. So what's the reason? And how to fix it? Many thanks. var oImg=document.getElementById("img1"); oImg.addEv...

 
Mac
Have got to go for awhile anyways, Cya everyone :)
 
latr
 
2:36 PM
@Neal What do you think of G+ so far?
 
@RyanKinal its cool
u?
i see u post non stop lol
 
@Neal Heh, yeah. It's pretty sweet. I'm still figuring out the best ways to use it, and I still have to use Facebook for some things, but I like it a lot.
 
@RyanKinal lol yea its fun. did u try out hangouts yet?
 
Events being the big one
@Neal Not yet. I'm planning on setting one up tonight, or maybe tomorrow.
 
@RyanKinal lol cool
eventually g+ will have events i hope lol
 
2:39 PM
I would assume they're integrating it with Google Calendar
Just haven't rolled it out yet ;-)
 
@RyanKinal true true. twould be good as well if they added a gmail tab on the side instead of having to reload it all the time at the top
 
@Neal Reload it?
 
@RyanKinal yea. if u click on gmail it goes to complete diff page
a new tab even
 
Ah, right
Oh, crap. In an article from O'Reilly on writing mobile apps in HTML/JS: "Common mistakes include: Directly using the DOM. It is buggy and a pain to use. Use jQuery instead." (see the article)
 
Question :)
I'm using jQuery to make a context menu kind of thing
How do I close it?
As in, how do I add a mouseup event to window without causing major issues?
The context popup DOM is recreated every few moments, hence I don't want leaks.
 
2:52 PM
?
code?
 
That sounds... complex
 
Not much...
 
@ChristianSciberras ^^^
 
@ChristianSciberras I'd probably use .delegate(), so you're not actually attaching even handlers to the elements in your context menu.
 
@RyanKinal It's not my items that are the problem, but clicking anywhere in the window to close the popup
 
2:55 PM
$(document).click(function() {
	$('#myPopup').hide();
});
?
 
@RyanKinal ok, whats wrong with that?
 
@Neal Obviously, caching my jQuery objects, but... meh
 
I use this:
$(function() {
     var $document = $(document);
     $document.mousemove($.proxy(change_mouse, window));
     $document.click($.proxy(mouse_click, window));
});
Where change_mouse and mouse_click are functions
 
@RyanKinal What if I did that to 10k different popups, 9.999k of which, are gone?
 
@ChristianSciberras AHHH! dont do that
ull crash the system
 
2:58 PM
The problem @RyanKinal is that I'm doing multiple popups, not just one.
@Neal EXACTLY.
 
why do u have 10K popups?
 
@ChristianSciberras ... you realize that the jQuery selector will only find the popups that still exist, right?
 
@Neal - I don't. A popup gets destroyed after its parent widget is gone
 
@ChristianSciberras ok, so just give them all the same class.
u should not have an issue
 
2:59 PM
Which may or may not be immediate.
 
So, in this case, caching $('.popup') is a bad idea
 
@RyanKinal That's the point!
 
ahhhh wait
i got it
 
@ChristianSciberras Right, so the above code I posted should be just fine.
 
@ChristianSciberras how do u create the popups, i may have a solution for u
 
3:00 PM
I'm binding to an event of a DOM object which eventually gets destroyed.
 
how?
where?
code?
@ChristianSciberras ^^^
 
See the mousedown part?
 
one sec..
 

Web Developers Lounge

A place to talk about HTML, CSS, JavaScript, or anything else ...
 
@ChristianSciberras yes i see it
what abt it?
 
3:05 PM
Each time I create a new popup, I have to do that.
When I destroy a popup, its mouseup gets destroyed
 
@ChristianSciberras ....show me the code for the popup. what u have here is kinda useless...
 
But not the mousedown
 
@ChristianSciberras But... it doesn't have a mouseup. The container does.
 
Sorry, sorry. @RyanKinal's right.
 
@ChristianSciberras and why are you using mouseup and mousedown, what is wrong with click?
 
3:06 PM
Let me rephrase.
 
also why cant u use .live() events?
 
@Neal sigh doing two .click()s will cancel each other out.
Why do I have to use .live()??
 
 
@ChristianSciberras Delegation?
 
@ChristianSciberras also the 1st one gets removed bc it is attached to span. make the 1st one live if that is what is being created and destroyed
 
3:09 PM
Anyhow, that's not the point.
The point is that I'm attaching two events.
One of them is removed when the popup is destroyed.
But the other stays, hence it is leaked.
 
@ChristianSciberras Why does it stay?
 
Because I destroy the popup DOM but not the document DOM object (ofc).
 
@ChristianSciberras because u are attching one to the doc and one to the span... as i said before.... use live for the span
the one to the doc will always stay
u can use unbind for the doc to destroy it if u want
 
@Neal I don't have to use live(), it's the same as click() for my use.
 
3:11 PM
@ChristianSciberras Waitaminute... are you adding these events every time you create a popup?
 
@RyanKinal - Exactly.
 
@RyanKinal ...thats what i was asking... @ChristianSciberras is being vague..
@ChristianSciberras dont do that
make them once
bind to the class
 
I can't.
There's no class.
 
@ChristianSciberras why cant u??
so make one...
its ur code
u can do what u want lol
 
No it ain't.
That's the whole point.
 
3:12 PM
@ChristianSciberras then how is it being created. tell me and i can help..
how is the event being created
 
Via a function.
 
that fiddle was not what it was
 
Think about it like that.
 
@ChristianSciberras im not going to help if u dont answer my questions...
 
It's all created from a function call.
 
3:13 PM
WHATS THE D*$(& FUNCTION....
 
@Neal I've answered every single question.
 
lol
@ChristianSciberras no you have not. what is the function. how is it created. all you gave me was a fake fiddle
 
The darn code is there, in that jsfiddle.
It's just wrapped in a darn function.
 
@ChristianSciberras you are not creating anything in that fiddle!!
i see no popups. no nothing
 
uh, give me a sec and I'll rewrite it for you...
 
3:14 PM
@RyanKinal am i hallucinating?
 
@ChristianSciberras jsfiddle.net/Dzctp/1
@Neal It's a simplified example. No creation, just events.
@Neal Use your imagination ;-)
 
@RyanKinal ...
 
@RyanKinal That's great!
Perfect!
 
@RyanKinal lol i ddnt know abt the .one() function. is that new?
no its not
 
@Neal Nope. Been around for a while.
 
3:17 PM
lol ddnt know abt it
 
3:29 PM
 
thats awesome @RyanKinal
 
@ErrorErrorError the bottom goes off the page a bit
out of the content area
other than that its alright, id add some transition maybe
like fade or slide
 
not on my browsers o.o
 
im using chrome
 
3:35 PM
me too
 
weird
 
it works fine for me on chrome firefox and IE
 
let me look at it in ff
yeah does the same for me in ff
 
thats odd :S what version of FF u have
 
@ErrorErrorError looks like crap in chrome... same as @Loktar said
 
3:36 PM
chrome 13 dev
ff 4.0.1
 
it looks like that
 
yeah that
 
im in chrome 12 dev
 
thats how it is for me
 
@ErrorErrorError thats nice for you, but it dont work for us
 
3:38 PM
for me it's like neal says
in its pic (chrome 14.0.814.0 dev)
 
y doesnt it :S?
 
u cant code to urself. u need to code to ur users
 
yeah thats weird @ErrorErrorError idk why it would show like that for you
 
what version of chrome u got?
looks the same crappy in IE8
 
i think then that all my browsers msut be outdated...
 
3:39 PM
crappy in FF
 
click the wrech
and go to about
 
FF5
 
i know this is JS but I know some of you do .net dev and the .net room is empty, how bad is it to use literals rather than repeaters? Im just hating the extra generated markup so have been using literals rather than repeaters. Only dirty thing is the markup in the code behind, thoughts?
 
now updating to FF6
 
@Loktar Repeaters, afaik, don't have any extra generated markup.
 
3:40 PM
yep still bad in FF6
 
Another question :)
 
i thought they made a div by default
 
Assuming, of course you're actually using <asp:Repeater>
 
Anyone know a regex for valid element names? (name="daname")
 
yeah
 
3:41 PM
@Loktar I don't think so
 
heh well I might be going literal crazy for nothing
 
i jus upgraded to latest firefox still fine no issues
 
@Loktar Yep ;-)
@Loktar Gridviews are where you get all the nasty
 
bah oh well ty
 
[a-zA-Z_:][-a-zA-Z0-9_:.]
weird :)
My text just went into @RyanKinal
 
3:48 PM
can somebody please help me with this
 
@ChristianSciberras What the what now?
 
See the regular expresion?
 
@ChristianSciberras Yes
 
It was in reply to my question.
 
@ChristianSciberras Okay
 
3:49 PM
And it went into your last message? O.o
 
@lovesh I'm running into similar problems right now, actually. I don't know if there's a good generic solution.
@ChristianSciberras Totally not seeing that
brb, lunch is here :-D
 
OK.
Just did an F5 and all's ok.
Strange. :P
 
@lovesh persentages are relative to the parent element
 
@RyanKinal can u give me an advice whether i should use pixels,%s or em . i have read pixels are absolute units but they behave like relative units
 
I would use px or em, if it is for mobile: definately em
 
3:53 PM
@gar_onn if they are relative to parent then as the parent enlarges they should to and not overlap other elements
@gar_onn why not percentage?
 
are there words in the real elements?
 
@gar_onn what do u mean?
@gar_onn words?
 
user1385191
@lovesh for what declaration?
 
@MattMcDonald what declaration? i didnt get u
 
when you test this code in your browser, are there words in those element?
 
3:56 PM
@gar_onn yes there are . the forms have labels and labels have text. text enlarges but it mixes up with other elements
 
user1385191
[body] <- selector
{
	[{width:} <- property {auto;} <- value}] <- declaration
}
 
@MattMcDonald is this in reply to my ques because i cant make anything out of it
ya but i have used em only for margins and border. all positioning is done in terms of percentages
 
5:06 PM
hows the slideshow now :)?
i made it fade and fixed the formatting
 
user1385191
"$ is not a function" lol
 
yeh i know
i deleted it
 
@ErrorErrorError $ is not a fn? why is that there?
 
its gone
 
y?
kk
 
5:08 PM
i was playing around with it forgot to delete it lol
hows the slideshow now?
made it fade
 
user1385191
it's there because he didn't load jQuery
 
when i try to center that div the images inside et centered but not that big black box with images, any idea how to move it?
apparently centering div is different from centering images
 
user1385191
yes, divs are blocks, images are inline
 
user1385191
I'd suggest you cease all activity and learn CSS properly
 
user1385191
(amongst other things)
 
5:13 PM
22 secs ago, by Matt McDonald
I'd suggest you cease all activity and learn CSS properly
Yes. That.
 
i know that but the css i followed didnt tell how to move div
i learned it at html.net
i have learned from google however to do it liek this:


#wrapper {
  	position: absolute;
  	bottom: 50%;
  	right: 50%;
  	height: 500px;
  	width: 600px;
}
#container {
  	position: relative;
  	left: 50%;
  	top: 50%;
}
most css tutorials wotn discuss about div centering
google i guess is my only choice
 
5:26 PM
@ErrorErrorError You know the width of your container, right? And the width of the slideshow?
Do some math, and set some margins.
Don't use position: absolute
 
0
Q: Play an mp3 file before a JavaScript alert is fired

neoI want to play an mp3 on a html page and then put a alert message, but using the code below, the mp3 is not playing unless the alert message is first cleared. So is there any way I could play the complete mp3 first and then have the alert message? <EMBED src="file.mp3" autostart=true hidden=t...

RT @HTML5Grind: Construct 2: Create HTML5 Games Without Writing Code http://bit.ly/p7TL1M #gamedev
0
Q: How to automate login with a webapp?

ShahabI'm trying to log into a (what I assume to be a) webapp and I get stuck trying to log into the website. Using WWW::Mechanize does work but in the response's, from my post, content it print nothing more than a couple HTML Javascripts: var msgTimerID; var strForceLogOff = "false"; functio...

 
5:48 PM
> Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
I ♥ 500
 
:D
IT is currently crazy with updating our internal stuff
they're finally going to update JIRA to the latest version on friday
 
Sometimes I think I spend most of my professional life staring at 500 Internal Server Error
 
right now we're like 2 versions behind... and it SUCKS
 
JIRA is big big big
 
user1385191
@Nathan yep, love that one. full of irony
 
5:50 PM
Actually JIRA is remarkably functional for a big big java thing.
 
@Nathan And slow... over VPN... gosh
the UI in our version sucks so hard
it only does AJAX for sending to the server... page reload after each operation
 
I'm just amazed when I see any java thing that sort of works.
 
they added so many different type of tasks/stories etc.
the list that contains them wasn't designed for it and easily overflows a xxxx by 1600 display
and you can't scroll it down >_>
you have to zoom the page in order to add stuff
 
I'm working on a function that will annotate a span of text. By annotate I mean insert notes between lines, highlight, stuff like that. I'm passing an array of objects that describes the desired annotations. Do you think it makes more sense to loop over the annotations and try and fit in my modifications there or loop through the text line by line?
 
@IvoWetzel our facility uses/pays for a much worse big big java abomination that has 4 MB pages and is constantly going down.
 
5:53 PM
considering that some annotations will overlap and some may spill over into subsequent lines
 
have the tried Icefaces already ? :D
 
I didn't see any icefaces (but it may be back there), just way way way too much jQuery and horribly stupid design.
@Radu either way will require about the same number of iterations, right? Just guess.
I usually can't figure that sort of thing out until I've done it once.
 
yeah, I know it probably amount to the same work, I've already started coding it both ways but I feel that even typing out my questions helps clear things up
 
user1385191
remember, text in the DOM consists of text nodes
 
I'm pretty sane but this is one of those times when I feel like I need to talk to myself out loud lol
 
user1385191
5:56 PM
some whitespace, some not
 
@Radu yes... I find many times when I'm too mentally tired to make progress, if I try to write out an explanation of the problem it helps immensely.
so anyway... I better work on my 500 error :)
 
00:00 - 18:0018:00 - 23:00

« first day (269 days earlier)      last day (4680 days later) »