LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[CLUG] Javascript

[CLUG] Javascript

Peter Flynn peter at silmaril.ie
Wed Jun 9 20:34:37 IST 2004


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





More information about the Cork mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


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!
RSS Version
Powered by Dell