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 button to open a single web browser instance

Featured Replies

Hey Guys,

Do any of you know if I can use the open url command (or any other FileMaker command) to open a webpage on its own as a pop up and not as a tab. Ideally I need to inject some javascript (which I have) wrapped around the web address. I've tried to inject javascript with the open URL script but I've had no luck. I have also tried to created a button in the web viewer and when the user clicks on that, I'm assuming it opens another tab in the web viewer, as thats where the scope of the button was. Of course I can't debug this as FileMaker WebViewer doesn't have any built in debug tools for javascript (Windows - I.E) 

I've got the javascript method figured out as I can do it via a html page, but anyone else found a way to create a button on a FileMaker layout which can open a web browser execute javascript.

window.open("http://www.w3schools.com""_blank""toolbar=yes, scrollbars=yes, resizable=yes, top=500, left=500, width=400, height=400");

 

 

Thanks

Jalz 

Yeah - you have do a bit of a work around:

1) Compile a HTML document that gives you the exact results you want.
2) You will need to Copy that HTML into a global field 
3) Export the contents of that field to your TEMP directory (open automatically)

See this attached sample file. I deal with the Redirect, window position, and window size. Did not take the time to deal with other characteristics of the window (because of browser compatibility issues. I will leave that up to you ;-)

BTW - this could be revamped so the HTML you are exporting can be a function where you can re-user it feeding VARS to the various parameters. This is really to get to creativity wheel moving.

Hope this helps!

dwdc_launchUrl.fmp12

Edited by dwdata

  • Author

Thanks for the sample file DWData - I'll explore and see how I get on :)

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.