Antville Project

Bookmarklet

Does anybody have good javascript code for bookmarklets lying around? I'd love to have one for Antville. Ideally it would transfer the current page URL and page selection, but I'm not very versed with these things.

comment    

 
tobi, September 11, 2002 at 3:06:56 PM CEST

Re: Bookmarklet

i think the blogger bookmarklet (code also below) could be quite a good starting point to develop something similar for antville. however, what you need first is a create form that puts values derived from an http query into the right form fields...

javascript:Q='';if(top.frames.length==0)Q=document.selection.createRange().text;void(btw=window.open('www.blogger.com,'bloggerForm','scrollbars=no,width=475,height=300,left=75,top=175,status=yes'));btw.focus();

link  

 
tobi, January 5, 2003 at 6:05:52 PM CET

Re: Re: Bookmarklet

just added tiny code in antville/story/macros.js to provide an interface for posting from "anywhere" into the story editor.

now the following javascript should work (certainly antville.org needs the cvs update first):

javascript:blog='project';str='';if(top.frames.length==0)str=document.selection.createRange().text;void(location.href=''+escape(blog)+'.antville.org')+escape(document.title)+escape(' ')+escape(str));

hence this could be a first, a simple version of the desired antville bookmarklet...

please let me know what you think.

link  


... comment


The Antville Server Fund has been a great success. Thanks to everybody who contributed!
online for 8550 Days
last updated: 1/4/11, 10:22 AM
status
Youre not logged in ... Login
menu
November 2024
SunMonTueWedThuFriSat
12
3456789
10111213141516
17181920212223
24252627282930
July
recent
zfuture's house here is zfuture's
house
by zfuture (7/31/03, 2:59 AM)
i understand your concerns however,
i hardly can think of a solution. certainly, if the...
by tobi (7/29/03, 9:47 AM)
Found several more similar sites
listed This is getting to be quite a concern to...
by cobalt123 (7/27/03, 7:56 PM)
Second Post Alert on Referrer
bug livecatz I put this into "help" and now here:...
by cobalt123 (7/26/03, 7:14 PM)
well it's not easy to
find from here, anyway. think we should include a link,...
by tobi (7/24/03, 11:25 AM)
So finally I found
the helma Bugzilla - stupid me.
by mdornseif (7/24/03, 10:28 AM)
clock not that it's particularly
earthshattering but the antclock is running slow by about 15...
by kohlehydrat (7/23/03, 8:25 PM)
but blogosphere.us isn't can't really
be rated as spam can it?
by kohlehydrat (7/23/03, 8:08 PM)
More referrer spam www.webfrost.com
by Irene (7/23/03, 7:55 PM)
How to log skin names
I accessed to console?? Hi, I would like to know...
by winson (7/23/03, 4:12 PM)

Click here to get an XML version of this weblog.

Made with Antville
powered by
Helma Object Publisher