« first day (292 days earlier)      last day (4657 days later) » 
00:00 - 16:0016:00 - 00:00

4:00 PM
its because of how the plugin initially puts errors
 
Not the best code in the world.
 
after a form submission
its how the plugin works
Do you have a better plugin you would suggest for form submission?
 
I don't generally use plugins, unfortunately.
I find them bloated, and feature-stuffed.
 
... which, honestly, follows from jQuery itself.
 
4:04 PM
@RyanKinal Thank you! Someone who shares my opinion!
 
Some really my problem still remains. What do you think I should do?
 
@JeffDavidson Is a custom solution, for some reason, out of the question?
 
no
I'm just looking for something that will solve the issue
 
So, you want errors to appear below their form fields, correct?
 
user1385191
@TheAwesomeOne I'm referring to a property like HTMLTableRowElement.rowIndex
 
user1385191
4:08 PM
except for use with Node.childNodes
 
Well here's a good question. Would it be smarter to put each under the form fields if an error exists OR list ALL errors in a div under the form.
 
user1385191
anyways, here's a solution to the problem described:
 
user1385191
 
@MattMcDonald Oh. I avoid tables as much as I can.
 
user1385191
note that onclick on select doesn't work
 
4:09 PM
@sebas @MattMcDonald's got your solution, man
 
Well, in either case, I would probably construct the HTML for the errors statically (i.e. in the actual HTML, not the JavaScript), hide it initially, and then simply show it when there's an error.
 
@RyanKinal have you ever worked with that plugin before?
 
@JeffDavidson Nope
As I said, I tend to write my own solutions (with jQuery, or with plain JS)
 
Hmm I'm thinking about doing away with it.
 
Because I enjoy creating things. And I enjoy knowing how and why they work when I'm done.
 
user1385191
4:12 PM
POJSā„¢ is king :)
3
 
+ fav
 
@MattMcDonald Er... POJS?
 
Well do you have any usable solutions for form submission or are you keeping those for yourself?
 
@RyanKinal plain old javascript
 
@teresko Ah :-)
 
4:13 PM
@teresko Ah. He'd gotten me confused there as well.
 
from the POSH
 
user1385191
I think two techniques I'm going to use more often are do...while loops instead of while loop variable assignment and objects as white/blacklists instead of arrays for quick checking
 
@MattMcDonald: combine that with reversed-while loops when possible and you're as fast as you can get in ECMAland
 
Reversed while loops? What do you mean?
 
wow ... just noticed that latest opera's alpha has some memory management included .. the memory usage dropped significantly as i closed some tabs
@TheAwesomeOne do{}while();
 
user1385191
4:16 PM
while(--i)
 
How is that different from normal while loops?
 
`for(var i = 0; i < something.length; i++) { } // default loop`
`var len = something.length;`
`while( len-- ) { } // reversed while`
 
@MattMcDonald's is what they are talking about
 
user1385191
"reversed" generally means the iterator goes down
 
oh ... that one i have been using for ages , @MattMcDonald
 
4:17 PM
Ah. Where you decrement the value
 
reversed while loops are the fastest loops available in javascript
 
I hate it when I figure out the answer to a question on which I set a bounty.
 
thought i would agree with Crockford that it would be pretty nice if JS had only one loop operator : loop{}
 
@jAndy did not know that. sticks into JS brain sector
 
@teresko Agreed.
 
4:18 PM
@Thomas: I guess things like that you only know by having no real life eh ? :p
 
@jAndy Why would they be faster than normal while loops? Wouldn't they just be useful in different situations?
 
@jAndy rofl. nice comeback. ;)
 
@RyanKinal dont question the rules
 
@TheAwesomeOne , it kinda depends on your definition of "normal loop"
 
@jAndy :\
are you saying looking up the prototype chain 10 levels is as computationally expensive as looking up 1 level
 
4:22 PM
@teresko Well, a normal while loop would be one where you increment the value every time the code is run
 
user1385191
"...that's the only way you can get anything significant started in software, believe me" [Guido van Rossum of Python fame on having no social life]
2
 
@Raynos ... really? You're going to tell me not to question the rules, when I have absolutely no idea where they came from?
 
then again , a while(i--){} could be thought of as micro-optimization , but you should keep in mind that between this and worst case scenario are 1-2 orders of magnitude
 
@Raynos: yes I'm basically saying that
 
echoes @RyanKinal
 
4:23 PM
@Raynos: V8 and Spidermonkey both analyse your code and create lookup access tables, doesn't really matter how deep the chain is
 
anyway , guys , i'm off to play something
 
user1385191
 
Something like?
Anyway, enjoy!
 
@teresko Good luck
 
@Raynos: but of course, in any old'ish implementation, it would cause a HUGE performance issue having really deep chains
 
4:25 PM
@TheAwesomeOne Divine Divinity : en.wikipedia.org/wiki/Divine_Divinity , one of that last big budget 2D RPGs that was made
 
@Raynos: so, you're suggestion is still live, even if i would re-write it a little
it's ok to have deep prototype or scope-chain propertys, you only have to create shortcuts to those within your javascript
 
Hey guys, I got a funny joke.
php.js.
 
var myRef = Some.obj.which.is.pretty.deep.myRef;
 
@Incognito Bwahahaha!
 
@Incognito Hahahaha
 
4:27 PM
and just access that variable then, so no lookup process needs to happen in "older" engines
 
Anyway... I was just awarded a free half-day off of work. Later suckers.
 
@Incognito : import com.language.php.js;
 
user1385191
quite honestly, who would ever want to replicate stuff like str_replace?
 
user1385191
that's where PHP falls flat on its face and gets sand kicked on it
 
user1385191
oh, f... they replicated array_push too
 
4:30 PM
Who did?
What are you talking about?
 
user1385191
php.js
 
I thought the php.js thing was just a joke
It's real?!
 
Why would anyone bother?
Oh
 
@RyanKinal Dang. Enjoy!
 
4:31 PM
@RyanKinal Yeah, I don't work. Too young to, so you're the sucker! :D
 
RT @Script_Junkie: Building Mobile JavaScript WebApps With Backbone.js & jQuery: Part I http://bit.ly/r7OkVb
 
@TheAwesomeOne Welcome to the seventh circle of hell, Dante.
 
rofl @Incognito
 
@Incognito Hahahahaha
 
"IE6 is real?!" ..."God? I think we need a new circle of hell. 7 isn't enough"
 
user1385191
4:33 PM
there are two big things that bother me with PHP:
 
user1385191
a: extremely inconsistent parameter order
 
user1385191
b: having to pass in the object you're performing a function on in as a parameter in most cases
 
Second that.
 
user1385191
with str_replace, the string is the last param
 
user1385191
with array_push, the array is the first
 
4:37 PM
Oh, here's a question
 
okay so I had to come back to ask this question.
does this look right to everyone.
 
You go first
 
$('a.checkAll').click(function (e) {
e.preventDefault();
$('.dataTablePageList').children('tr:eq(0)').find(':checkbox').attr('checked', this.checked);
});
 
user1385191
AAAAAAAAAAAAA
 
If we could have signatures, mine would be, "I don't do jQuery."
 
user1385191
4:38 PM
can we see the HTML you're dealing with?
 
My question is, how long would AJAX requests take to timeout?
 
user1385191
tables have tons of good methods for selection
 
I want to do the long-poling thing that Comet does
 
@ThomasShields One day, if I have kids, I'll tell bedtime stories to frighten my children, they will be about IE6. One day, they'll know the booggyman is real.
7
 
If you have to do make a mini-site be extremely light weight and fast, what would do? AND would u divide the layout into multiple php include files one per div and then call them with php includes from the main php page?
 
4:39 PM
But I was wondering if I could simply make the PHP file being requested loop a sleep timer till there were new replies.
 
@Incognito LOL. good idea. muuuhahaha.
 
or is it in vain to do the php include thing
 
> And IE6 wouldn't even render the CSS correctly, but people kept using it ten years after it was made, it would follow you to the ends of the internet and haunt you. It snuck into people's computers late at night and wreaked up the place!
 
user1385191
Our hero said to the foul beast "display: inline"
 
user1385191
...and it dissipated into the night
 
4:41 PM
quoth the useragent string, MISE6.
 
Le lunch time.
 
@MattMcDonald why is your name italicized?
 
@Incognito @MattMcDonald rofl.
 
user1385191
I'm one of the room owners
 
4:42 PM
ah ok
 
@MattMcDonald "zoom:1," quoth he! And "MSFilter:prog!" And having sent the beast along he feasted on some grog. ;)
 
user1385191
if you really want to scare someone, talk about IE 5 Mac
 
user1385191
floats = broken
 
user1385191
it makes my site blow up
 
4:45 PM
...and you care about IE5 Mac because...?
 
Oh, any of you guys good at designing websites?
 
user1385191
I don't, I open websites in it for fun
 
user1385191
plus it's the only IE version I can get working at work :(
 
@ThomasShields IE5 Mac?
Say what?
 
@TheAwesomeOne I like to think I am. I'm not.
@TheAwesomeOne yeah MS toyed with a Mac version for a while. They dropped it.
 
4:47 PM
Did Microsoft do that? Or is it some side-project?
Oh
 
@MattMcDonald ah okay. lol
 
user1385191
Internet Explorer for Mac (also referred to as Internet Explorer for Macintosh, Internet Explorer Macintosh Edition, Internet Explorer:mac or IE:mac) was a proprietary web browser developed by Microsoft for the Macintosh platform. Initial versions were developed from the same code base as Internet Explorer for Windows. Later versions diverged, particularly with the release of version 5 which included the Tasman layout engine. As a result of the five-year agreement between Apple and Microsoft in 1997, it was the default browser on Mac OS and Mac OS X from 1998 until it was replaced by Appl...
 
@ThomasShields Hahaha, I'd like to think that way too.
 
That's what I have for the checkAll
The code I showed is in the module.js file
 
4:48 PM
I once made a site with some of my Flash animations (to show off to my friends), with only some tables. It looked horrible. Still does.
 
@TheAwesomeOne actually, see for yourself. I like to think my site is good; but it's probably a load of crap.
@TheAwesomeOne tables?! layout? gag
 
@ThomasShields EXACTLY! I didn't even know JavaScript then. But hey, I was about 11.
Oh, and your site looks good.
 
@TheAwesomeOne be glad you even knew anything at 11; that's awesome.
thanks.
 
Better than anything I'd design
 
4:50 PM
Yeah, that's why I put the site up to show off, even though the design sucked.
 
I just realized all of the starred messages I have starred. I must be star-hyper.
 
@Matt did you see my stuff
 
Hahaha, I'm a reply-to-everyone-if-I-can-hyper. You're probably better
 
@ThomasShields hey bud remember that arduino conversation we were having?
 
@TheAwesomeOne i reply a lot too. @TheAwesomeOne you know? :P
@Gavin yeah. with the geolocation stuff?
 
4:53 PM
@ThomasShields Hahahaha
 
@TheAwesomeOne ;)
 
yessir!, any insight on the best way to interface with the 4 major smartphones?
 
@Gavin i've heard phonegap.com is good.
 
for arduino stuff?
or just cross device?
 
@ThomasShields How do you have the teen web dev & designer thing on your account?
Just another privilege you gain with rep?
 
4:55 PM
because I am trying to figure out how to have my device interact across the different devices as a pinpoint
 
@Gavin that's for cross-platform apps, which you could then integrate with arduino.
 
OOO ic!
 
@TheAwesomeOne click on your tile and then click "User Profile" and it'll take you to a chat profile you can edit.
 
@ThomasShields Oh. You can add "possibly blind" and "kind of dumb" to my list of flaws, I guess.
 
@TheAwesomeOne hey no sweat; you're new here. lol tho. :)
12:57 + Hungry Me + Food Downstairs = bye guys. :)
 
4:58 PM
Hahaha, bye!
I'm going to leave as well. Bye!
 
5:22 PM
anyone here alive?
 
5:34 PM
@ChadScira no im just undead
 
lol
so someone asked me if we could make some of our CSS 3D demos work in browsers that dont support CSS 3D
do you know of any pseudo-3D DOM engines?
or at least a guide on how to handle all of that math
 
6:16 PM
@RyanKinal that was a joke comment ¬_¬
@jAndy wow that's impressive, do we have a benchmark to back that up?
@jAndy your right
@RyanKinal the reason we have single chains is because composition is better then inheritance
 
Do I misunderstand what @jAndy said? Why is the forward so much faster than the backwards?
 
user1385191
fyi: i is a global
 
so i should use a diff. iterator for each test?
saw your revision, backwards is still slower
 
user1385191
faster here :)
 
user1385191
6:29 PM
try the rev now
 
user1385191
ditched the length property
 
they're both the same now in Chrome 14 & FF8
 
user1385191
chrome 13 is acting very odd
 
@MattMcDonald Did they actually kill the url bar?
* realized he's on 13 also....* disregard...
 
I had a great article on prototypes chains and why they should be one level deep
I cant find it :\
@RyanKinal @jAndy as for the rules, they are a set of rules I wrote for myself to structure my code.
 
user1385191
6:42 PM
yes linkedin, early august 2011 - late august 2010 = 13 months
 
user1385191
they must be using twitter math
 
7:27 PM
0
Q: How can I duplicate "Add Custom Field" with just JavaScript?

MichaelJWI frequently need to add several Name-Value pairs to the Custom Fields of a post. At present I add these one by one, by entering the Name and Value and clicking Add Custom Field. I'd like to speed this up by entering several pairs into a single box (textarea, prompt, whatever), and have some Jav...

 
 
1 hour later…
user1385191
:)
 
?
 
user1385191
post deleted was asking about unicode + js
 
@MattMcDonald ??
@MattMcDonald which post?
nm
kk
 
user1385191
ps: you don't have to ping someone every single time you want to talk to them
 
8:41 PM
@MattMcDonald why not just want them to hear you!! :P
 
@MattMcDonald ^_^
PiNg!
my sound is off in my office (or its very looow)
 
Stupid google auto complete search bar....
I look up the formal definition of prostitute ONCE on Merriam-Webster, ONCE, now it's the first thing that pops up every time when I goto look up a word.
 
9:10 PM
does anyone know of a plugin that lets you trigger elements when you scroll past a certain div? (i cant use waypoints.js)
 
user1385191
what is "trigger"?
 
user1385191
is this in the same vein as "loading" a div?
 
i meant trigger actions. so lets say you scroll past <div class="foo">, you trigger an Alert or soemthing
 
user1385191
so, essentially calling a function
 
yep
exactly
 
user1385191
9:18 PM
how wide is the element?
 
its like 500px
its postly i need to figure out how to trigger a function when you pass it.
 
9:31 PM
any idea on how to trigger a function when i scroll past lets 293px from the top?
 
user1385191
 
thanks
 
9:58 PM
@MattMcDonald: Hi ;)
Got some DOM manipulations issues
 
user1385191
ask away
 
trying to removeChild from a currentClickedNode
brings me this error: Error: uncaught exception: [Exception... "Could not convert JavaScript argument arg 0 [nsIDOMElement.removeChild]" nsresult: "0x80570009 (NS_ERROR_XPC_BAD_CONVERT_JS)" location: "JS frame :: myJSfile.js :: deleteNode :: line 882" data: no]
 
user1385191
uh, what is currentClickedNode?
 
RT @Paul_Kinlan: Important News about Web Intents - it's official!!! http://t.co/TR5706Z :)
 
actually I'm getting the current node (targetNode) with a function
 
user1385191
10:05 PM
is this xml?
 
yes
the XML files is parsed
 
user1385191
you'll want to set the doctype to XHTML then (it's in the "info" options under "dtd")
 
originally an XML string from a server
 
user1385191
you've got a lot of sloppy code
 
user1385191
the new keyword on a function expression is a no no
 
10:08 PM
jsfiddle.net/elsevero/f2ybX/1 - here's my entire JS code
open-cs.net/tree might explain what I'm trying to do...
 
10:39 PM
I'm not getting the right xmlDoc?
 
11:00 PM
hello all
does anyone have any ideas on how to practice
im having trouble applying recursion
 
00:00 - 16:0016:00 - 00:00

« first day (292 days earlier)      last day (4657 days later) »