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.

webviewer dialog box interupts script

Featured Replies

Hi

I have an FM script that "scrapes" data from webviewer. This is an automated data collection tool that I use on a hospital lab system with an HTML interface.

Occasionally an entry in the web-based system produces a dialog box which interrupts the script and I must manually press return or click "OK" to allow it to continue. The dialog is purely on the web server side and has nothing too do with FM. The same dialog would come up if the web based lab system was queried manually in a web browser.

I am looking for a way to automatically answer this dialog box so that the script would continue on its own. Since it holds up the FM script, I am thinking that the answer would have to come from outside FM, maybe in the form of an applescript, but I'm not sure. Ideally this would also be able to run on Windows though.

Any solutions? The most basic solution I can think of is to have an applescript just keystroke Return every five minutes or so in case the dialog has occurred in my abscence, but I find this a bit inelegant.

Thanks

A "reload" would cancel that dialog box ?

  • Author

If you mean a reload of the webpage/webviewer, no the dialog box would not be cancelled. Its a stand alone dialog box. There is no way to manipulate anything in the webviewer unless OK is clicked. Even if a reload was possible, the dialog box would just come up again for that patient. It's a javascript message that comes up infrequently for certain patients. I have asked our IT department to see if it could be disabled from their side as it is actually a rather useless and meaningless message.

I really don't know HTML, but I think that when the dialog box appears, the focus passes on that window; so I think that it's possible to intercept that action with the OnBlur html event ( placed into the calc for the web viewer ) and close the dialog box.

Ask to somebody who knows well html.

( something like: OnBlur Window.close( ) )

If you can use AppleScript, consider using cURL and bypass the entire web-viewer issue.

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.