Jump to content

This topic is 8109 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

Posted

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

Posted

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

Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.