Re: Help with bookmarklet

From: Art Rhyno <arhyno_at_nyob>
Date: Thu, 13 Jan 2005 14:48:42 -0500
To: CODE4LIB_at_listserv.nd.edu
Is it just that the object doesn't exist? You could do something like:

<a
href="javascript:if(document.getSelection.text)Qr=document.getSelection.text;else
Qr='';Qa=prompt('Author...',Qr);Qt=prompt('Title...',Qr);if(Qa&&Qt)location.href='http://library.ccbcmd.edu/search~S4/q?author='+escape(Qa)+'&title='+escape(Qt)">Combined
Author and Title...</a>

in Firefox, I think you need to break up the getSelection to work in IE.

art
Received on Thu Jan 13 2005 - 14:52:06 EST