Example of a simple dtSearch Web search form that can be inserted into another web page.  For a more minimal form, the index path and search type can also be made into hidden form variables.


Enter Search Request


Where to Search
Use ctrl+click to select multiple indexes.

Search type

How this works:

  1. The target="_blank" in the <FORM> tag causes search results to pop up over the current window, rather than replacing it.
  2. The SearchForm hidden variable has to be set up so dtSearch Web can find the corresponding dtSearch_options.html file.   (Click here for more information on how dtSearch Web finds this file.)
  3. The action attribute of the form tag points to makeframe.asp instead of dtisapi6.dll. makeframe.asp is a small ASP script that generates the frameset to hold search results.  This is the text of the makeframe.asp used on this form:
<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<title>dtSearch Web Search</title>
</head>
<frameset rows="10%,*">
    <frame src="/Support/demos/forms/embedded/dtSearch_bar.htm" name="bar">
    <frameset cols="30%,*">
        <% Response.Write("<frame src=" & chr(34) & _
                     "/Support/dtSearch/dtisapi6.dll?" _
            & Request.QueryString & chr(34) & " name=res>")
        %>
        <frame src="/Support/demos/forms/embedded/dtSearch_minihelp.html" name="doc">
    </frameset>
</frameset>
</html>