On Wed, 2004-06-09 at 11:33, Donncha O Caoimh wrote:
> You can sort of do what you want in a cross-browser fashion. Kind of.
>> Create a new bookmark in the links toolbar on your browser with the
> following code as the url:
> javascript:Q=document.selection?document.selection.createRange().text:document.getSelection();void(window.open('http://blah/cgi-bin/foo?text='+escape(Q),'text
> selection bookmarklet',
> 'scrollbars=no,width=480,height=300,left=100,top=150,status=yes'));
>> (that should be all on one line!)
>> Now, highlight some text on your page, hit the link you created in your
> toolbar and up will pop a new window with your selection in the URL.
> Oh, all this ripped from the b2 "blog this" popup code by someone else,
> it should work but I haven't tested it.
That's very cool. Unfortunately it goes to Google regardless of
the URL I edit into it. Anyone got any idea why?
///Peter
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!