Added: 8 months ago
From: JREAMdesign
Views: 2,097
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (18)

Sign In or Sign Up now to post a comment!
  • Did it! jsfiddle /unbmd/1/

  • I've found a bug: jsfiddle /unbmd/ .

    Try looking in console so you shall see first variable works, and second doesn't.

    Than, delete .bind(this) so you shall see first variable doesn't work, and first work.

    I could make _ww variable in global scope, but I don't think is a good ideea.

  • @JREAM - Prototype is a powerhouse but maaaaaan is it a lot of key strokes in comparison to jQuery.  i've found myself clinging to jQuery though in the quick hitters, but when i'm on application or commercial level projects i tend to utilize Prototype because it just "feels" more appropriate for some reason. But i'm guessing this debate will rage on.

  • @goon245 I agree 100% with you. I know Apple uses Prototype, they are a huge company! If JQuery had the Object extension, Class Creation built in, and Templating built in, Id be very happy. The Object object in Prototype is just awesome, I wish JQuey had it :(

  • esa idea es infinita muchas gracia spor la info :D

  • @rapblack2 Hope you understood the video because I have no idea what you said!

  • @JREAMdesign si no entiendes español te lo digo en inglesI think the idea is infinite thx u

  • Thanks! Coming from PHP, I'm having trouble understanding how one would go about programming an application in Javascript. This helped a bit.

    I read D. Crockford's Javascript - the Good Parts, but while it certainly was helpful for my coding style in general, it doesn't really show how to go about making apps in Javascript.. It's got like 20 ways to build objects (as functions, JSON, prototype, etc...), with no clear guidelines on when and how you should use which.

  • @MelvinSF Weird thing about JQuery is the do something funny with 'this'. I cant decide if I like Prototype JS or JQuery better, because JQuery is much more pleasant to type, but Prototype has classes and templates built in if you wanna go custom the whole way rather than use 3rd party plugins.

  • @JREAMdesign Hmhm. With prototype I was referring to Javascript's built-in prototype feature, which I think is something like PHP's extends..maybe..but...not quite..or something. I think "this" referring to the function itself is because of Javascript treating these functions (anything, actually) as objects.

    The Prototype-framework/library supports classes, though? That's very interesting, I'm going to check that out.

  • @MelvinSF Oh I see. Sorry I was a bit off topic. Prototype supports an easy way to create classes. However, JQuery's John Resig recently made a class creator to lay on top of JQuery but I haven't tried it out. It's a hard decision for me, because JQuery syntax is so nice, and getting used to Prototype $ $('.classSelector').invoke('ob­serve', 'click', function(e) {}); is a bit odd.

  • @JREAMdesign That's OK. Cool stuff. I am definitely going to dive deep into Javascript once I finish up my current PHP project.

  • Gracias, por aclarar esa condenada duda que tenia con el bind !!! , un saludo desde México..

  • Nice tutorial :D

  • nice for practice =] but why everything is still teaching the basics?

    i am learning to learn xslt , i would appreciate if you come up with a tutorial for that?

  • @programmingismylife Because its a ton of work to make a long tutorial and get people interested :\

  • @JREAMdesign

    i really appreciate your efforts for making these tutorials, i learnt quite a bit from your tutorials =]

    but i have got my hands dirty with XML and XSLT these days and looking for help.

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more