Thanks, that works reasonably well.  It still requires a cut/paste, but I 
guess that's a security feature of javascript.  I'd add on to it, but I'm 
not "bored enough" right now, David.  ;)

I was surprised by how much code would fit in the "location" box in netscape;
have you hit any code-size limits writing "bookmarklet's"?

At 11:42 PM 6/17/2001, "David A. Desrosiers" <[EMAIL PROTECTED]> wrote:
>       I was tinkering around today with a google applet I cooked up in
>Javascript (and I don't profess to be a javascript programmer), and decided
>to take a shot at making a Plucker "bookmarklet".
>
>       After about 4 hours of tinkering and testing, I've come up with this
>so far. If you take both of these parts, and stick them in your bookmarks
>somewhere, call one "Get" and the other one "Set", you'll see what they do.
>
>       In a nutshell, when you're viewing a webpage in your browser window,
>you can select the "Set"  bookmark (mine sits on my Netscape toolbar, easy
>access) and it will then walk you through a brief "wizard" asking you a few
>questions about the page in question. I added some flashy things to it, like
>the ability to count the links in the page shown, and so on. It then sets a
>few local cookies on your system with these parameters, which are then read
>by the "Get" bookmarklet.  The "Get" bookmarklet will read these cookies,
>and then pop up a window with the proper plucker-build syntax in it. Since
>this is client-side, this can all be used offline also for local files.
>
>       I stopped after URL, Maxdepth, and BPP, but you can see how easy it
>is to cut and paste to make them all work. I offer this up in the "Release
>Early, Release Often" phase of open source. I'll be adding a bit more to
>this, and adding the ability to walk through a full-blown Javascript-based
>form (checkboxes, dropdowns), and then writing out to a file. Since
>Javascript does not allow me to launch any client-side app (such as
>plucker-build), I have to resort to the user initiating that part.
>
>       Hey, I was bored =)
>
>       Here they are, attached to this message. In order to use these, you
>have to cut and paste the FULL code shown for each one into the Location
>field of your Bookmarks for both "Set" and "Get" (two separate bookmarks).
>Treat the full code as a URL and paste it all in.
>
>       If anyone has fixes, additions, whatever, send them back to the list
>for everyone else to enjoy!
>
>       Hope everyone had a great weekend. The idea for this goes out to Ben
>Chess, since he got me thinking about how to handle this in a more portable
>fashion.
>
>
>/d

Reply via email to