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.

Featured Replies

can i set a token to the [fmp link] tag in a link

if so, how

please help

  • Author

ok, but if explain what i am trying to do maybe you could help with another way.

at the moment i have company profiles online for staff to edit and add, these profiles also have related business contacts and visit reports. they are both shown in portals at the bottom of the format file. to edit or add a contact or visit report the user is presented with a pop up window. once they save their changes i want the window to close and refresh the parent window to show the changes

at the moment i have a link on the pop up window that uses jscript to close the window and send the parent to a new url

<a href="javascript:;" onclick="opener.location='[Fmp-currentToken.2]';self.close()">Click here</a>

which is why i am trying to save the current link to a token to use in the above link

If you can see what i am doing wrong or a better way of doing it, i would be over the moon

The link could reside in the parent window, without having to travel, in a token, via the pop-up. It could be stored in a Javascript variable or assignment in a function which is called when the pop-up is closed.

For example, the function in the parent would look like this:

function refresh ()

{ document.location.replace("[FMP-Link]") ; }

The call from the pop-up would look like this:

<a href="javascript:;" onclick="opener.refresh();self.close()">Click here</a>

Hope this helps.

Garry

  • Author

that all looks pretty cool, it all works apart from the link tag in the main page. it does not seem to be replaced with the actual link

my code looks like this

<html>

<head>

<title>Profile Edit Screen</title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<script language="JavaScript">

<!--

function MM_displayStatusMsg(msgStr) { //v1.0

status=msgStr;

document.MM_returnValue = true;

}

function MM_openBrWindow(theURL,winName,features) { //v2.0

window.open(theURL,winName,features);

}

function refresh ()

{ document.location.replace("[fmp-link]") ; }

//-->

</script>

</head>

can you see any thing wrong, as my jscript skills go as far as copy and paste

Cheers

  • Author

i 've got it, i found the solution to last prob in another thread

i got rid of the comments tags and it works fine

whats up with wc not being able to handle comments

cheers for the help

The comments mean ignore this, so WC is ignoring that.

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.