Home Features Toolbar Library Forum Download Support Tutorial Manual
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
  

ImportCaption() Function

Imports a string from a web page and sets it as the caption.

Syntax:




Syntax:

    ImportCaption(url,start,end,id)


Parameters:

    url - URL of a page to import from. The value of url can also be this, in which case the source of the currently loaded page will be used to import from.
    start - starting string
    end - ending string
    id - specifies the id of the control to set the caption for


Remarks:

    This function imports all text, including any HTML code between the specified start and end strings.

    If the start value is omitted, the start of the file is used. If end is omitted, end is assumed to be the end of the file. This means that Import('http://www.trellian.com',,) would import the entire page.


Example:

    This function loads a page and imports all text between the Rank: and the next </td> tag and sets it as the button caption.


    <xml id="toolbar">
    <toolbar caption="ImportCaption() Example">
    <control type="toolbar">
    <button

      id=rank
      caption="Rank: 0"
      tooltip="Display URL Rank"
      onload="ImportCaption('http://www.mydomain.com/rank.htm?url=%URL%','Rank:','</td>'),rank">

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



See Also:

    ImportIntValue() | ImportValue() | ImportXMLValue() | SetCaption()


Website Popularity Rank | Build Your Own Toolbar | Free Download | Custom Toolbars | Features | Contact Us

ToolbarBrowser is a freeware project supported by Trellian Limited. | Privacy Policy