ImportValue() FunctionImports 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:
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: |