November 18, 200223 yr 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
November 19, 200223 yr 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
November 19, 200223 yr 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
November 19, 200223 yr 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
November 19, 200223 yr 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
Create an account or sign in to comment