Sunday, November 30, 2008
Implementing Events
After reading through the chapter 3 times and then doing the worksheet I was finally ready to try and attach some of the code to my website. Big mistake. The first things that i encountered is trying to understand what the programs were doing. I can go through and read the text and follow along and get a semi clear understanding of what is being done. But to try and think through the problem and come up with the code on my own seems to be an eternity away not to mention a few trillion brain cells that i don't have. The more i work through the problems in the book the more that i realize that working with a library that you understand is vitally important. In fact most of the techniques and lessons in the book seem to depend upon the core.js library as its backbone. This is a little frustrating because there are a lot of different libraries out there. So you have to learn how to use each different library that you come across. The other problem that i have found is trying to remember the massive amount of information and concepts being thrown at me. The chapters are deceptively complex. As far as implementing the tooltip and the accordion list i found multiple problems with both. First of i decided to put them on my main webpage. So I had to adapt the CSS to work within what i had already set up which wasn't to tough. But there is still a problem of the tooltip displaying underneath the other links on the page. I cant figure out how to get the tips to display on top of the link underneath it on the page. The other problem i found was with the accordion. I made the ul list according to how the book specified but then i had to spend three hours messing around with the CSS in order to get it to display anything at all. And after it was all said and done the result was a 20 px padding set on the ul that no matter how hard I think I cant figure out how to get rid of. This is going to bother me until i get an answer.
Subscribe to:
Post Comments (Atom)
2 comments:
I feel your pain. It's a little frustrating to have to depend on the core.js library as a backbone, when I don't really understand exactly what it contains.
As for the accordion and tool tip, I had the same problems. It sounds like it should be so easy to just implement what they already give you, but it's actually harder than writing something from scratch, I think.
Those core files are the magic keys to making our JS work. Just figuring out which one goes with what can be confusing. I have to open the original files and look in the head of the document to figure that out. Thanks Firebug! The core files are all named "core.js" and look similar. And they look scary! I still don't know exactly what the core library does, other than make things work correctly.
I hope you figured out that tool tip. I still can't get my background change to work correctly; the accordion wasn't too complex, I just didn't touch too much of the code.
Good luck!
Post a Comment