WebTitle ( webviewer )
Rate this function: Average rating: 3.7 (15 votes) Discuss this Custom Function
Ivan Satya, MillenniumWorks
http://www.ivansatya.com
This CF specifically returns the Title of a webpage from a webviewer object
Sample Input:
WebTitle ( "Browser_01" )
Example Note:
a webviewer named as "Browser_01" is showing a web page with the title "Filemaker Pro Custom Functions" |
|
Sample Output:
| "FileMaker Pro Custom Functions" |
|
Description:
A simple and specific custom function which quickly returns the Title of a webpage from a webviewer object.
All you have to do is just assign an object name for each webviewer you wish to get the HTML page Title from and append it into the CF.
Note: these functions are not guaranteed
or supported by BrianDunning.com. Please contact the individual
developer with any questions or problems.
This is my Custom Function and I want to
edit it
Discuss:Make a comment about this Custom Function (please try to keep it brief & to the point). Anyone can post:
|
Newest Custom Functions:
| 1. |
CountWordOccurrences ( text ; searchWord ) |
| |
(Tue, Feb 07, 11:15am) |
| 2. |
indonesian_date(date) |
| |
(Mon, Feb 06, 7:14pm) |
| 3. |
phpArrayValue ( array ; key ; pos ) |
| |
(Fri, Jan 27, 1:49pm) |
| 4. |
solfm_timeToMinutes (theTime;roundSec) |
| |
(Fri, Jan 20, 6:26am) |
| 5. |
filterLines(filterField;filterValue;Result) |
| |
(Sat, Jan 14, 2:20pm) |
| 6. |
getMaxValue ( theList ) |
| |
(Thu, Jan 12, 1:06pm) |
| 7. |
MiddleWordsIncPunct ( text ; startingWord ; numberOfWords ) |
| |
(Sat, Jan 07, 9:16am) |
| 8. |
WindowInfo |
| |
(Fri, Jan 06, 12:39pm) |
 |
|
I submit this as being a more understandable and expandable structure. Users may want to modify this into more general WebContent CF by incorporating the factor to be extracted (e.g. title) as a function parameter.
Let ([
webcontent = GetLayoutObjectAttribute ( webviewer ; "content");
searchstring = "title>";
startpos = Position ( webcontent ; "<" & searchstring ; 1 ; 1 ) + Length ( "<" & searchstring );
endpos = Position ( webcontent ; "</" & searchstring ; 1 ; 1 )
];
Middle ( webcontent ; startpos ; endpos - startpos )
)
David Head, Darwin Australia
March 28, 2010 4:23pm