Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Script or indicator when a page has finished loading

Featured Replies

I have a WebViewer Text field that I text parse.

Is there a way to create a field or indicator that changes the variable to say 1 once the page has finished loading?

Then I could set a button for example to appear or turn green ready to click once the page has finished loading

Thanks

Matt

I have a WebViewer Text field that I text parse.

There is no such thing as a "WebViewer Text field". If you meant a Web Viewer layout object, you could do something like:

Go to Layout [ YourLayout ] 
Set Web Viewer [ Object Name: "YourWebViewer"; URL: "http://example.com" ] 
Loop 
	Pause/Resume Script [ Duration (seconds): 1 ] 
	Set Variable [ $html; Value:GetLayoutObjectAttribute ( "YourWebViewer" ; "content" ) ] 
	Exit Loop If [ PatternCount ( $html ; "</html>" ) ]
End Loop 
# BEGIN PARSING
...

You might also want to add a counter to the loop and exit the script after n trials.

Note, however, that not all web pages are written in conformance with the standards. I have seen some that do not have the obligatory </html> closing tag. Examine the actual page source and see what can serve as a marker to indicate that enough of the page has loaded.

 

You can test whether the web viewer as a whole has finished loading by looking for the closing HTML tag in the content.  But not sure where you are going with this...

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.