Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

In sharepoint 2010,

can we just add a text box and a button to the master page, and when the button gets a click it queries the regular sharepoint search page and pass the barameters?

if yes what parameters should we pass? and how?

thanks SPs ;)

share|improve this question
add comment

1 Answer 1

up vote 1 down vote accepted

Yes you can do that. Just right click the page and view the source specific to the SharePoint search box. Now you need to note down the names of the JS functions used in there.

Further add you own input box and incorporate the same JS functions on the same events as used by the OOB SharePoint serach box. You can also add your own functions like adding ghost text etc..

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.