the walker Posted November 18, 2002 Posted November 18, 2002 can i set a token to the [fmp link] tag in a link if so, how please help
Garry Claridge Posted November 18, 2002 Posted November 18, 2002 You can try it: &-view]http://myaddr/FMP?-db=mydb.fp5&-lay=web&-format=myfile.html&-token=[FMP-Link]&-view However, WebCompanion will more then likely become confused to which is the request and which is just data for the token. Good Luck. Garry
the walker Posted November 19, 2002 Author Posted November 19, 2002 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
Garry Claridge Posted November 19, 2002 Posted November 19, 2002 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
the walker Posted November 19, 2002 Author Posted November 19, 2002 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
the walker Posted November 19, 2002 Author Posted November 19, 2002 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
Anatoli Posted November 20, 2002 Posted November 20, 2002 The comments mean ignore this, so WC is ignoring that.
Recommended Posts
This topic is 8109 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now