Question

Resolved below

Well the title says most of it but here is the background:

On the search results page, when you type in the search box it does some soap calls in JavaScript too "GetQuerySuggestion".

On site pages you add a SearchBoxEx web part/control template and it doesn't have this same JavaScript feature.

The question is how do I get the same functionality on the SearchBoxEx Web part?

update

<SPSWC:SearchBoxEx id="SearchBox" runat="server" 
GoImageUrl="/_layouts/images/Intranet/meta_search_go.png" 
GoImageActiveUrl="/_layouts/images/Intranet/meta_search_go.png" 
DropDownMode="HideScopeDD"
AppQueryTerms="scope:&quot;/&quot;"
ShowAdvancedSearch ="true"
UseSiteDefaults="true" 
QueryPromptString="Search"
SearchBoxTableClass="searchbox"
TextBoxWidth="210"
FrameType="None"
PreQuerySuggestions="true" />

From suggestions so far I have tried PreQuerySuggestions and QuerySuggestions, the value here is true|false according to msdn.... But no joy.

(Should of been more clear it was as a control template) oops! (Btw the AppQueryTerms is so I can modify the scope dynamically with javascript)

Any ideas?

AND FIXED

<SPSWC:SearchBoxEx id="SearchBox" runat="server" 
GoImageUrl="/_layouts/images/Intranet/meta_search_go.png" 
GoImageActiveUrl="/_layouts/images/Intranet/meta_search_go.png" 
DropDownMode="HideScopeDD"
AppQueryTerms="scope:&quot;/&quot;"
ShowAdvancedSearch ="true"
UseSiteDefaults="true" 
QueryPromptString="Search"
SearchBoxTableClass="searchbox"
TextBoxWidth="210"
FrameType="None"
ShowQuerySuggestions="true" />
Was it helpful?

Solution 2

Solution here:

http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.portal.webcontrols.searchboxex_properties.aspx

This is what I have been hunting for all day, many links and suggestions but thanks goes to almostSharepointMaster because I found the PreQuerySuggestions on one of the links you provided, which led me to find ShowQuerySuggestions.

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top