Toolbar Browser
3. Reference
Triggers
Controls
Variables
System Variables
Global Values
Functions
AutoFill()
Back()
Beep()
CheckLinks()
Checksum()
Click()
Command()
Customize()
DeleteOption()
Enable()
Execute()
ExportLinks()
Forward()
GetFolderIcon()
GetQuery()
GetSystemIcon()
Header()
Highlight()
HistoryMenu()
Home()
IfExactMatch()
IfMatch()
ImportValue()
ImportCaption()
ImportIntValue()
ImportXMLValue()
Length()
LoadMenu()
Menu()
OpenURL()
Options()
PageText()
PlaySound()
PopupManager()
Refresh()
Replace()
ReplaceAll()
Resize()
ResizeClient()
Redraw()
Save()
Search()
SearchBack()
SearchLast()
SearchNext()
SearchPage()
SetCaption()
SetClipboard()
SetFocus()
SetFontSize()
SetIcon()
SetOption()
SetParam()
SetText()
SetStatusText()
SetTooltip()
SetUserAgent()
SetValue()
Show()
Stop()
StripHTML()
ToolbarMenu()
TruncateOption()
UpdateToolbar()
Zoom()
Text Functions
 

Search() Function


Syntax:

    Search('url1','url2'...url[n])


Parameters:

    url1 - URL to retrieve a first page of search results
    url2 - URL to retrieve the second page of search results
    ...
    url[n] - URL to retrieve the n'th page of search results.


Remarks:

    Typically the url parameters will contain a %QUERY% variable to specify the search query for which to retrieve results.

    You can define any number of result pages, however if you are also using the the navigation toolbar control, you should specify 9 result pages.


Example:

    The following code adds an AltaVista search button.


    <xml id="toolbar">
    <control type="combo" id="query" width=180 action="Click(av)"></control>
    </control>
    <control type="toolbar">
    <!-- AltaVista Search -->
    <button

      caption="AltaVista Search"
      tooltip="Search AltaVista"
      id="av"
      action="Search(
      'http://www.altavista.com/web/results?q=%QUERY%&kgs=0&kls=1&avkw=xytx',
      'http://www.altavista.com/web/results?q=%QUERY%&kgs=0&kls=1&avkw=xytx&stq=10',
      'http://www.altavista.com/web/results?q=%QUERY%&kgs=0&kls=1&avkw=xytx&stq=20',
      'http://www.altavista.com/web/results?q=%QUERY%&kgs=0&kls=1&avkw=xytx&stq=30',
      'http://www.altavista.com/web/results?q=%QUERY%&kgs=0&kls=1&avkw=xytx&stq=40',
      'http://www.altavista.com/web/results?q=%QUERY%&kgs=0&kls=1&avkw=xytx&stq=50',
      'http://www.altavista.com/web/results?q=%QUERY%&kgs=0&kls=1&avkw=xytx&stq=60',
      'http://www.altavista.com/web/results?q=%QUERY%&kgs=0&kls=1&avkw=xytx&stq=70',
      'http://www.altavista.com/web/results?q=%QUERY%&kgs=0&kls=1&avkw=xytx&stq=80')">

    </button>
    </control>
    </xml>



    Note: When clicked, the first page of results will be returned. To access result pages 2 to 9, you would need to add either the navigation toolbar control, or use the SearchNext(), SearchBack() or SearchPage() functions.


See Also: