Re: [jQuery] Re: jQuery website search function

2009-12-23 Thread Karl Swedberg

On Dec 23, 2009, at 2:29 AM, RobG wrote:



On Dec 22, 10:51 pm, Schalk Neethling 
wrote:

Hi there,

I was wondering whether anyone knows if the jQuery website has some  
sort

of API to access the search functionality of the site?


Stimulus, response...


  


  

 

 function searchDocs(el) {
   document.location =
   'http://docs.jquery.com/Special:Search?ns0=1&search='
 + encodeURIComponent(el.value)
 + '&go=';
 }
 




interesting that you would put an onclick on the input rather than an  
onsubmit on the form. any particular reason for that?


--Karl


Karl Swedberg
www.englishrules.com
www.learningjquery.com



[jQuery] Re: jQuery website search function

2009-12-22 Thread RobG

On Dec 22, 10:51 pm, Schalk Neethling 
wrote:
> Hi there,
>
> I was wondering whether anyone knows if the jQuery website has some sort
> of API to access the search functionality of the site?

Stimulus, response...

 
   
 
 
   
 
  

  function searchDocs(el) {
document.location =
'http://docs.jquery.com/Special:Search?ns0=1&search='
  + encodeURIComponent(el.value)
  + '&go=';
  }
  


--
Rob