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.

Displaying JavaScript inside a WebViewer with WebDirect?

Featured Replies

I've got a very simple layout that has a WebViewer that points to some Javascript based code.  It works and displays fine when viewing with the FileMaker Pro client.  The JavaScript does have a link to an external file source, which is hosted on our internal website.

 

When I bring up the same layout with WebDirect, nothing shows up in the viewer.  I suspect that it has something to do with the file reference, but I can't prove it.  The file source reads like such -    <script type="text/javascript" src="http://10.1.225.23/tinymce/tinymce.min.js"></script>  (the IP address is an interal address only)  So I don't believe I have to change the context? 

 

Any ideas on something that I might be missing?

 

Thanks!

  • 4 weeks later...

I haven't tried this, but what if the location of this JS is the same as a custom home page for WD? would it then be "relative" to the WD server?

 

Beverly

  • 2 months later...

I've done a fair bit of work playing with WD and embedded webveiwer objects and JS,

I suggest you trap for the error and use an alert to display it.

You can see how to here, WD fails silently otherwise.

http://www.w3schools.com/js/js_errors.asp

 

cd

  • 1 month later...
  • Newbies

Hi, Charles,

 

I am currently having the same problem of displaying vebviewer objects on webdirect. I didn't find any solution by searching. Your suggestion looks very smart. I wish I could have a try. however, I am very new on JS. Although I read the link you give, I still cannot make the solution to work. I am wondering if you would be able to post your solution in detail here? Or you could send me by email: [email protected]

 

thank you very much!!

Wen

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.