« first day (405 days earlier)      last day (4542 days later) » 

8:00 PM
context-free is totally not what I'm thinking of. is getting terminology he should really know better mixed up
 
anybody knows how to open a second-step form on a colorbox pop up when i submit the first-step?
at this moment im opening the second step on a second page, and i want to do it on the same colorbox popup but dont know how :S
 
@sebas Ajax?
 
maybe but how ?
 
Well, what is colorbox? A script?
 
@ŠimeVidas But really my point is that it is only a context-free language if they are separate goals
 
user1385191
8:08 PM
>>> 0x000000.toString(16)
"0"
 
user1385191
sigh
 
@ŠimeVidas yes its a popover script
 
@sebas So, you load a web-page into colorbox, and then submit it...
?
 
exactly
and i need to submit the popup form to a php page AND then load a certain other form that is on a div
 
@sebas on a div?
 
8:14 PM
@ŠimeVidas this is the situation: a form loads on a colorbox popup, then when i click submit i want the form to be posted to a particular php script (that processes the form data) AND then want to show on screen another form (that would be step2)
as of now all im doing is posting form1 to another php page but i dont want to do that anymore
what im looking for is a way to post the data to that php page (ajax?) and then show the second step which would be another form, hope its clear now
 
@sebas That other form should load inside that same colorbox?
 
exactly
 
@sebas Well, use .submit() to fire off the Ajax request....
Inside the submit handler you cancel the submission and make an Ajax request...
(instead)
 
@Raynos Right, but now we're just sending data, I don't like convince methods, they add to the API. The API should just be accessors/mutators/actors/data, not aliases.
 
@ŠimeVidas but how can i cancel the submission inside the .submit ()
 
8:18 PM
e.preventDefault();
 
and then how can i load the second form
adter submussion
 
where e is the event object (the first argument of the submit handler)
In the Ajax callback you display the second form...
@sebas Read here: api.jquery.com/jQuery.post
 
@ŠimeVidas this is what i have so far, can u take a look? i dont understand how to display the second form on the callback
btw the #cargando is just a loading image on a div
 
@sebas You know you can post questions on Stack Overflow, right? :)
 
@Incognito so var $ = function (id) { return document.getElementById(id); } is bad?
 
8:22 PM
ok u are right
 
@Raynos Generally, yes. It breaks readability. What the hell is a dollar sign constructor?
 
user1385191
it's just dumb
 
user1385191
you obfuscate the purpose of the method
 
Sure if you want to make your own short-hand methods, go ahead, but why is it core to the software?
 
@Incognito I like utilities
Meh he choose to do that because he found it useful
 
8:27 PM
@Matt Well var 42 throws...
 
user1385191
whoops
 
user1385191
1 message moved to bin
 
user1385191
var get42 = function () { return 24; };
 
@Raynos I know, but I don't like it. It makes people think magical things, then it become a pain to maintain, lets say he wants to change the POST to a GET.
It's like using $.get("file") all over again.
 
Unit tests I love you
The satisfaction of refactoring and passing unit tests is win o/
win \o/
 
8:55 PM
 
Where's the special effects?
I expected to see at-least this:
 
user1385191
why on earth would you compare values client-side?
 
@MattMcDonald Eh?
What kind of values? There's a whole whack of equality operators.
 
user1385191
I'm just wondering why you wouldn't fetch the two values with cURL then compare them
 
@MattMcDonald because he build the website quickly
he used whatever tool worked at the time
its a throw away site with throw away code
 
user1385191
9:01 PM
heh
 
user1385191
kind of depressing that the linux kernel isn't first :(
 
9:51 PM
@MattMcDonald I'd be a bit upset if that many people were workign on it.
Anyone suggest a good memcached tutorial?
 
@Incognito no tutorial needed.
It's very simple.
 
Yeah it's pretty straight forward now that I've read the wiki.
set, add, read. wrap it in stuff.
Alright everyone I'm headed out, cheers.
 
The hard part is benchmarking and finding bottlenecks where it will actually help.
 
user1385191
lol, the recommended videos
 
user1385191
10:02 PM
finally, someone that says the DOM isn't a mess
 
Who does?
Anyone who says the DOM is a mess is an idiot
 
Ugh
He means "cross browser bugs are a mess"
 
user1385191
he means "my code is a mess"
 
He means both. document.getElementById is fine, IE just sucks at it
 
user1385191
10:11 PM
id/name problems can be mitigated by good markup
 
user1385191
I think the funny part about IE's DOM deviance is they actually grasp the concepts fairly well
 
user1385191
in some cases, they just do too much (or mix up 2 things)
 
@MattMcDonald do you have any tips for emulating an event system
I need to write a full event system because IE's build in event system is no good
 
user1385191
callbacks, unique ids, and nodes
 
Im mainly going for the bridging of the real event system
say you bind an event to documentElement and body of the same type ("click")
 
user1385191
10:16 PM
I think Mr. Wetzel talked about this once
 
My main issue is, for real clicks
should I take the real event object or clone it?
theres a conflict between the capture / bubble tree for my emulated event system and the bubble tree for the real event system
 
user1385191
no, build your own
 
if I wanted to re-use the event object from the real event system I would get into trouble with two sets of states being merged into one
> If you don't know that $.fn is an alias to $.prototype you should quit
 
user1385191
a bit of irony coming from a dojo dev
 
Heh
 
10:36 PM
that hookio thing in the gansta talk is pretty cool.
 
Goodnight @all
0
Q: jquery-mobile multilevel menu with multilevel array

wHiTeHaTThe equivalent php version of what i want is answered here: Creating a multilevel array using parentIds in PHP I'm following a jquery mobile documentation for dynamic page generation. The goal here is to follow links and generate the "next" pages from an provided array. The documentation is pro...

 
0
Q: Is duck typing a subset of polymorphism

RaynosFrom Polymorphism on WIkipedia In computer science, polymorphism is a programming language feature that allows values of different data types to be handled using a uniform interface. From duck typing on Wikipedia In computer programming with object-oriented programming languages, duck t...

@Nathan hookio is epic wins
 
@Raynos A: yes.
 
@Nathan define "A"
 
"Answer"
 
10:49 PM
Oh I see
Im more going for "authority" and "computer science theory" rather then "intiution"
 
bigger CS concepts are overlapping and fuzzy. Like everyone has different categories for testing ("unit", "functional", "integration", "acceptance", "regression") and they all overlap because they're approximating a bigger "test ALL the things!" meme.
 
heh
 
user1385191
polymorphism is just an awful buzzword
 
user1385191
it's almost nonsensical
 
polymorphism means functions accepting interfaces rather then concrete types
 
user1385191
10:53 PM
right, and interfaces can represent multiple types
 
user1385191
especially when you have interfaces that extend each other
 
user1385191
I have a lot of that in my current project
 
But duck typing is also all mixed up with the strong/weak typing idea. A "strongly typed" language like Java can still support polymorphism, at least at an object level.
Also there are plenty of tricks for emulating polymorphism or duck typing in a language that doesn't support it.
 
user1385191
there's also using objects for prototypes to emulate abstract classes
 
11:12 PM
@MattMcDonald can you explain that
 
user1385191
objects vs. abstract classes?
 
Nah dont worry
I was having a stupid moment
 
11:48 PM
-1
Q: How to select elements by name and a value check with JQuery?

Max KiellandI'm completely new on JQuery and not so used to JavaScripting yet. I have a form with named (attribute 'name') elements that I need to process one by one. I also want to update their class attribute if they are validated correctly. I collected all the form elements with: var Form = $('#'+fChil...

 

« first day (405 days earlier)      last day (4542 days later) »