Forum Moderators: open

Message Too Old, No Replies

Best book (or resource) for bookmarklets

... or right-click menu access

         

Bluesplinter

8:07 pm on Dec 30, 2005 (gmt 0)

10+ Year Member



I'm interested in learning how to create some javascript bookmarklets (at least, I think that's what they're called), that will allow me to add custom features to either my browser's toolbar or right-click menu access (or both).

Is there a book that discusses how to do this? I greatly prefer a book to an online resource. Plus, I haven't really tried to write any javascript in 6-7 years (and I didn't get into it very deeply even then), so if there is a "Best Javacript Book" that happens to have a chapter or two on adding toolbar or right-click menu functionality, then that would be prefect :)

I realize I could just hunt for pre-written scripts, but I don't want to know how to do a specific task by using someone else's scripts, I want to know how to start from scratch and create my own. So, even without a chapter on bookmarklets, I'd still love to hear what the best current javascript book is.

<added>
To put it more succinctly:
1) What's the best book to learn how to write javascript?
2) What's the best book from #1 that includes bookmarklets and right-click stuff?

All else being equal, I tend to like O'Reilly's books the most.
</added>

Bluesplinter

8:29 pm on Dec 30, 2005 (gmt 0)

10+ Year Member



Sigh, sorry, got cut off from editing the previous post by the time limit.

As I meant to say, I prefer O'Reilly books the most, but their javascript books looked to be quite old, at least in internet years... or does that matter with javascript?

Bernard Marx

10:11 pm on Dec 30, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



1) For me, a difficult one to answer. I started with a book (The beautifully titled, "How to make fun webpages"), but largely moved on from there by reading and trying to answer questions on forums. I can't think of a book I'd particularly recommend.

The O'Reilly "..Definitive Guide", and "..Bible" are usually mentioned.

2)
Bookmarklets (aka favelets)

If you're rusty with JS, it's probably easier to build bookmarklets as normal scripts first.

(Something that's rarely, if ever, mentioned...)
In IE/Win at least, it's possible to use a bookmarklets to load local script files, thus getting round any maximum character limitations, and the need to put the whole thing on one line.

right-click stuff..

(Again, in IE, not sure how in other browsers...)
If you want to customize the browsers right-click menu, it takes a minor edit in the registry. Interested?

Bluesplinter

11:22 pm on Dec 30, 2005 (gmt 0)

10+ Year Member



I've heard those two books mentioned, but I thought they might be dated by now... then again, I don't know the progression of the language itself. I currently use C# for other stuff, and it's now in version 2.0, while one of the fairly recent books I have is only up to 1.x. But just by looking at the book descriptions, I can't tell if they haven't been updated recently because the market doesn't warrant it, or simply because the info is still valid.

it takes a minor edit in the registry. Interested?

Sure :) I use Firefox most of the time, but I can use IE if needed for some tasks. Thanks!

jalarie

6:15 pm on Jan 3, 2006 (gmt 0)

10+ Year Member



There are multiple bookmarklet editors available; many have "help" buttons to guide you through the process. Try a Google search.