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.

Query a URL Question

Featured Replies

I have been working mainly with PHP lately and am wondering if any of you XML wizards know this -

I'm trying to query the URL used to access a XSL file hosted under FMSA 8v4. I want to look at the current URL and if the 'www' is specified, then do something. The same xsl page accessed without the 'www' prefix will do something slightly different...

I tried some variances of this ;)


...

but this is not working.

Perhaps it is not possible to use a javascript constant (window.location...) inside xslt!?

Thanks for any help!!

In Kindness

Stephen Knight

Stephen, this can't work. JavaScript is executed client-side, after the stylesheet has been processed server-side.

How you can use JS server-side: See p. 76 of the FMSA CWP manual.

  • Author

Hi Martin,

Thank you for your answer ;)

Thank you, I was actually posting this for a friend from our forum. http://fmwebschool.com/frm/index.php?topic=906.0 I don't do a lot with XML anymore, mostly PHP work now.

If you find it in your heart to do so, stop by our forum - there are plenty of people with XML questions ;) They would be glad to hear from you!

In Kindness

Stephen Knight

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.