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
  

ImportValue() Function

Imports a string from a web page.

Syntax:

    ImportValue(url,start,end)


Parameters:

    url - URL of a page to import from. The value of url can also be this. In this case the source of the currently loaded page will be used to import from.
    start - starting string
    end - ending string


Remarks:

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

  • 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 entre page.

  • To import integer values, use the ImportInt() function instead.
  • The start and end values are case sensitive and may include variables.
  • This function only imports the value it does not set it as the caption. You can do this by using the SetCaption() function on the onchange trigger.


Example:

    This function loads a page and imports all text between the Rank: and the next </td> tag. The onchange trigger is used to set the caption of the button to the imported value.


    <xml id="toolbar">
    <toolbar caption="ImportValue() Example">
    <control type="toolbar">
    <button id=rank caption="Rank: 0" tooltip="Display URL Rank"
    onload="ImportValue('http://www.mydomain.com/rank.htm?url=%URL%','Rank:','</td>')"
    onchange="SetCaption(rank,%RANK%,)"></button>
    </control>
    </toolbar>
    </xml>



See Also:

    ImportIntValue() | ImportXMLValue() | ImportCaption()


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