$$SearchTemplate and Frameset

Hi

The developer working for our company is trying to display the results of a search in a frameset. The frame she is trying to use is called Main in a frameset called MainFrame. The AutoFrame properties of the view and the $$searchtemplatedefault form are set to MainFrame (frameset) and Main (frame). With these properties in place, a search returns no results. When these properties are removed and the same search is performed, the correct results appear.

Can her search results only be displayed separately with a button to return to the database or can she display them in the frameset.

Any ideas?

Thanks

Lisa

Subject: $$SearchTemplate and Frameset

Hi Lisa,

Assuming this is for the web, you can use something like this under the “Go” hotspot (to display the results in the frame “Right”):

var f = document.forms[0];

if (IsValidTextNoAlert(f.SearchString)){

parent.Right.location = “/”+ f.wdbn.value + “/AllDocsSearch?SearchView&Query=”+ f.SearchString.value;

}

else {return false}

“wdbn” above is a field with @WebDbName.

HTH,

Simeon