Quantcast
Channel: GSAK Forum
Viewing all articles
Browse latest Browse all 75049

Extension to the Browser control by sbeelis - 2013-07-16

$
0
0
Currently, we can add a Browser Control to our forms.

Using the following syntax, we can set an inital URL:
CODE
$form = EditForm($form, "urlBrowser", "url", "http://gsak.net")


When a button is pressed (or any other action takes place that exits from the from() call and we call form() a second time, any changes to the URL the user made by following links etc is lost and the browser control starts with the original URL again.

This can be changed by adding the following code:
CODE
$form = EditForm($form, "urlBrowser", "url", $urlBrowserurl)


However, this clears the browser control's history, so the user can no longer us the "back" command to navigate back through where he came from.

Hence my first feature request:
Can the browser controls history be saved across the setting of a new URL and across multiple form() calls.

Also, sometimes we want to react to changes of the browser control's content. Checkboxes and Comboboxes have an "exitonchange" property, my second request is the following:
Can an "exitonchange" property be added to the browser control which would return from form() when the user has navigated to a new url (exit after the new url has been loaded, so its content is available through the $browsersource variable; keep the control's history across returns as requested above).

The background of this request is, that this would allow a user to navigate websites and we'd get the chance to be informed whenever a new page is displayed, so we could extract the page's source for data extraction. The extraction could thus be automated, but as the navigation would still need to be done by the user (by clicking on a link) I believe we would still honour the gorundspeak TOS by not "scraping".

Viewing all articles
Browse latest Browse all 75049

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>