On Jun 4, 4:04 pm, MorningZ <morni...@gmail.com> wrote:
> I'd suggest to understand why your dynamic objects are wired up,
> thoroughly read this article
>
> http://www.learningjquery.com/2008/03/working-with-events-part-1
Thanks, I'll read it carefully.
> understanding "why" is the solution of fixing your issue
Quite.
> "as even to do the simplest thing you need to fully internalise the
> whole framework"
>
> I'm not exactly sure what "internalise the whole framework" is
> supposed to mean, but I can say from personal experience that I have
> been using jQuery for a year and a half now, and i've had to go inside
> the jQuery core file *maybe* 4-5 times, and mainly just to learn what
> things were doing for my own knowledge
I mean that I have to internalise the conceptual structure of jQuery
in order to use it for the simplest things. I did initially approach
the framework as a possible timesaver, thinking that I could just copy
and adapt a few functions and save myself a lot of JS coding. Well, I
can do that, but in order to use those functions I need to understand
in depth how jQuery works, and to understand that I need a good
understanding of JS and the DOM. The answer that Waseem gave above is
a case in point - I'd never in a hundred years have found the 'live'
construct as a solution to my problem. And yes, I do have the 'hussar'
book.
Maybe it's just me - like human languages, you sometimes come across a
programming language that you really struggle to get your head around,
and jQuery is one of those for me (yes, I know it's not strictly
speaking a language but a framework). It is the dog's bollocks and no
mistake, and it is very handy to have functions which I know will work
in all browsers, and the plugins, especially the UI plugins, are
absolutely excellent and would take a year and a day to replicate in
JS and CSS. And I do appreciate all the hard work the developers and
documentors have put in. But it is not a language to dabble with, as
perhaps Mootools is - you really have to immerse yourself in jQuery to
use it, which means a large time investment at first which I wasn't
prepared for. Now that I have become a little familiar with the thing
I'm just starting to see time savings and productivity improvements,
but it's been a steep hill up to here. After all the time I've put
into it I'm now committed to it, come hell or high water ;-)
Cheers
Fred
No comments:
Post a Comment