hartmut Posted April 18, 2008 Posted April 18, 2008 Trying to see if filemaker can extract a url from a given web page. Just wondering if that is something that can be made into a calculation to retrieve
Fitch Posted April 21, 2008 Posted April 21, 2008 Using GetLayoutObjectAttribute("x";"content") - where x is the name of a Web Viewer object on your layout - you get the source of the web page. From there you can use text functions to parse out the URL.
RecPro Posted April 22, 2008 Posted April 22, 2008 We are attempting to use several online search engines ( ie Sample Recruiting Search) to link recruiting data to prospects in our system. Once the results page has been returned and the specific recruit has been selected, we would like to link the url for his page to his record in the database. If we do the search in a web browser we can manually copy and paste the url. We would like to "capture" the url from within the webviewer. Unfortunately when we try to capture the source, the page url or recruit ID code is not explicitly listed in the code. All we would really need is to capture the information displayed in the webviewer status area as it loads. Is there a way to do this? Thanks, Paul
comment Posted April 22, 2008 Posted April 22, 2008 You can get the URL of the viewed page by: GetLayoutObjectAttribute( "YourWebViewerName" ; "source" ) Note that this might not work well if the site dynamically changes the content of the current page, instead of fetching a new one.
RecPro Posted April 22, 2008 Posted April 22, 2008 When I use the GetLayoutObjectAttribute("MyWebViewerName":"source") I get the url of the original web viewer page, even though the web viewer status area shows the new url that is being loaded as a result of the search. When I use GTLOA("MyWebViewerName":"content") I get the source code of the original web viewer page and not the source of the search result. Is there a way to "trigger" the GetLayoutObjectAttribute that I am missing? Thanks, Paul
comment Posted April 22, 2008 Posted April 22, 2008 How are you using these functions? If it's in a calculation field, make sure it's UNSTORED. If it's in a script (as it seems it should be), you shouldn't be having this problem: Set Field [ URL ; GetLayoutObjectAttribute ( "YourWebViewerName" ; "source" ) ]
RecPro Posted April 22, 2008 Posted April 22, 2008 Thanks for the reply, I was just typing my post. I had just discovered that my testing calculation, which I had copied from another table, was stored. Sorry to take up the bandwidth. Thanks, Paul
Fitch Posted April 23, 2008 Posted April 23, 2008 Sorry, I thought you were looking to retrieve a URL that was displayed *on* the page, not the URL *of* the page itself. Well, now you know two ways to use GetLayoutObjectAttribute. :
Recommended Posts
This topic is 6070 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now