Subject:
|
Re: Fun goodies for your browser's toolbar
|
Newsgroups:
|
lugnet.admin.general
|
Date:
|
Wed, 15 Mar 2000 22:21:26 GMT
|
Viewed:
|
5060 times
|
| |
 | |
"Todd Lehman" <lehman@javanet.com> wrote in message
news:FrHBHn.nK@lugnet.com...
> In lugnet.admin.general, Scott Smallbeck writes:
> > The problem is with: document.selection() where you are grabbing the
> > clipboard and passing it into the URL. As stated earlier in this thread I
> > have it working fine when this is removed.
>
> OK, I split the JS code into two versions: one for NN and the other for M$IE.
>
> http://www.lugnet.com/quicksearch.html
>
> Is that getting closer?
Yup this works fine in MSIE 5! Great stuff!
I couldn't get the QuickSet working (it starts to download the CGI instead
of executing it (?)) So I modified the Set Search to popup in a new window:
javascript:void(q=prompt('LUGNET Set
Search',''));if(q){u='http://www.lugnet.com/pause/search/?query=';for(i=0;i!
=q.length;i++){c=q.charAt(i);u+=(c=='+')?'%2B':(c=='
')?'+':escape(c)}window.open(u,'Sets','toolbar=no');location.href=history.ba
ck;}
Note: After some experimenting I found that the "location.href=history.back"
is required to keep the URL of the current page (remove that part and see
what happens...)
--
Frank Buiting
Visit the LEGO Lexicon: http://members.chello.nl/~f.buiting/lego/
|
|
Message is in Reply To:
 | | Re: Fun goodies for your browser's toolbar
|
| (...) OK, I split the JS code into two versions: one for NN and the other for M$IE. (URL) that getting closer? (...) I'm not sure exactly what you mean by "straight from the address line," but if you mean cutting & pasting it into the URL location (...) (25 years ago, 15-Mar-00, to lugnet.admin.general)
|
18 Messages in This Thread:       
   
   
   
               
   
       
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|