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.

javascript redirect based on a cdml tag?

Featured Replies

Before I get to heavily in trying to figure out how to do this, I thought I would check to see if it is possible.

I can easily enough cretae a javascript on my web page that when the page is loaded the web page is directed to a different url automatically. Just wanted to know if the redirect url can be based on a cdml tag linked to a filemaker field?

LR

I don't know about JS for this, but you can send your cdml to (and through) a meta redirect very effectively.

  • Author

A meta redirect? Can this open the new page as _blank, as well as determine the size, scroll bar, address bar options? That is why I wanted to do it through java.

LR

I am doing that on our PR portal, no problem. You can freely mix the two -- JS and FM.

Just be cautious -- do not use the comment tags e.g. <!-- JS code --> around the JS code.

You can use CDML Replacment tags within Javascript in the <head> of your page. This is best done as a Javascript Function. I even use them to construct arrays.

Then you can call that Function with the "onload()" parameter of the <body> tag.

Hope this helps.

Garry

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.