Refresh "parent" page when closing a cfwindow

When displaying a cfwindow and I click the x in the top right, how can I refresh the "parent" page?
The cfwindow has a small form that collects data in a couple of fields then submits in the cfwindow to a page that inserts the request, sends and email and says the action is complete.
This is my cfwindow:
<cfajaximport tags="cfform,cfwindow"> 
<cfwindow
   name="NewRequestWindow"
   center="true"
   closable="true"
   draggable="false"
   height="550"
   width="700"
   modal="true"
   initShow="false"
   refreshOnShow = "true"
   resizable="false"
   title="#WindowText#"
   source="NewRequest.cfm?pk=#pk#" />
<a href="#" onclick="javascript:ColdFusion.Window.show('NewRequestWindow')"><img src="../includes/images/add.png" alt="Add" title="<cfoutput>#WindowText#</cfoutput>" width="16" height="16" border="0" /></a>
Thanks, Cliff

This JavaScript will reload the current page:
document.location.reload()
From within your cfwindow it should work for the entire page.
copied from other post http://forums.adobe.com/message/3227674

Similar Messages

  • Problem refreshing the parent page when closing a modal window.

    I have page that opens a modal window from a report link column. In the modal window I want to be able to make my changes and press an Apply button so that the modal window is closed and the parent page is refreshed to show the modified details in the report. In Firefox all works well but in IE I get the error message ‘Window.opener.location is null or not an object’ .
    When I comment out window.opener.location.href=window.opener.location.href; the modal window closes without error but I want to refresh the parent page with changes made in the modal window.
    I’m afraid my java script is very limited (the code is based on other peoples examples.)
    Parent Page I call this function from a report link column to display a modal window. Sets the hidden SAVE_STATUS field in destination page to ‘N’
    function modalWin(pshow)
    var url;
    url='f?p=&APP_ID.:'+pshow+':&SESSION.::::SAVE_STATUS:N';
    if (window.showModalDialog) {
    window.showModalDialog(url,"name","dialogWidth:650px;dialogHeight:700px"); }
    else {
    window.open(url,"name","height=700,width=650,toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no ,modal=yes");
    Destination page (modal window)
    HTML Header.
    The function closeWindow should refresh the parent page and close the modal window.
    <base target=_self>
    <script language="JavaScript" type="text/javascript">
    <!--
    htmldb_delete_message='"DELETE_CONFIRM_MSG"';
    function closeWindow() {
    if ( document.getElementById("SAVE_STATUS").value == 'Y' )
    window.opener.location.href=window.opener.location.href;
    window.close();
    //-->
    </script>
    Html Body attribute.
    onLoad="closeWindow();"
    P_UPDATE_DATE process called from the Apply changes button. Sets the SAVE_STATUS flag to ‘Y’ for the onload in the html body.
    UPDATE event
    SET event_date = :P5001_EVENT_DATE
    WHERE contract_reference = :P330_EVD_CONTRACT
    AND event_number = :P330_EVD_EVENT_NUMBER;
    :SAVE_STATUS := 'Y';
    Thanks in advance, I will have a look when back in the office on Monday.
    Cheers Pete

    Hi Chris,
    Thanks for your help. I think I've sorted it using your first suggestion doing a refresh in the parent page, I just didn't know how at the time.
    What I've got in the parent window after the call to the modal window is the reload window.location.reload(); and in the modal window I close it using window.close(); The down side being the refresh happens if I use my 'Apply changes' or 'Cancel' button but I can live with that for now.
    It seems to work in IE and firefox but as I say most of what I'm doing is cobbling together using other peoples code without really understanding exactly what it does. Anyway thanks for your help, sound like I should look into JQUERY when I have time.
    Thanks Pete
    Parent window call to modal
    function modalWin(pshow)
    var url;
    url='f?p=&APP_ID.:'+pshow+':&SESSION.::::SAVE_STATUS:N';
    if (window.showModalDialog) {  window.showModalDialog(url,"name","dialogWidth:650px;dialogHeight:700px");                                          }
    else {
    window.open(url,"name","height=700,width=650,toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no ,modal=yes");
    window.location.reload();
    Modal Window Close.
    window.close();

  • How to Refresh The Page When The Value of selectinputData Changes

    Hi;
    I have a select input date component and I want to refresh the page when the value of selectinputdate changes. What is the way to do it?
    Also what is the way to do the same thing with choosedate component?
    Thank you very much...

    Hi Turhan,
    You may want to read about the Partial Page Refresh (PPR) capabilities in ADF Faces. You can make the selectInputDate's partialSubmit property "true" and then cause the specific components you wish refreshed have their partialTriggers property set to the ID of the selectInputDate.
    Hope this helps,
    John

  • Popup refreshing parent page

    Hi everyone,
    I've got a popup window that allows the user to edit some values. These values are displayed on the parent page. Most of the time, when the save button on the popup is clicked, the popup closes and the parent refreshes and displays the new value.
    sometimes however, the new value is not displayed. Manually refreshing the parent causes the correct value to display. This suggests that the database action behind the page is not finished in time for the updated values to appear on the page.
    Is there any way I can ensure the database action is completed before the page refreshes? I've put an arbitrary delay timer on the popup but it seems crude. I'd like to wait as long, but only as long as necessary before reloading the page.
    Any help appreciated!
    Kieran

    Turns out, it's still happening.
    Any ideas welcome after all :)
    Message was edited by:
    Kieran

  • Firefox was a good, but now it's slow and when I search google I have to refresh the page when I click the back button. This is driving me to other browsers.

    When searching in goole, If I click on a link and want to go back a page firefox does not load the previous google search without refreshing the page. Because I use google frequently this is very annoying. Firefox has also been freezing and crashing most frequently of any of the other browsers that I have been driven to use. I'm not sure why I should keep it on my computer at this point.

    Regarding the Google results page blanking out when you go back, this occurs when using a combination of three settings, which may be fairly common:
    * Zoom level higher than two steps (120%; the newest versions of Windows apparently default to 125%, which Firefox detects and adopts)
    * Google search set to instant prediction results (default on Google search, but can be disabled in Search settings, see [https://support.google.com/websearch/answer/186610 Google Instant Search Help])
    * Opening results in the same tab, then using the Back button to return to the results page (default on Google search, but can be changed in Search settings to open results in a new window/tab, see [https://support.google.com/websearch/answer/425 Google Search Help])
    Firefox's cache feature attempts to maximize speed for forward and back actions by storing the last rendering of the page. Something about the instant prediction results ''with zoom'' is causing Firefox to briefly display the results and then they blank out and you have to reload the page to get them back. The mystery is why this only occurs (so far as I have heard) on Google? Is one of Google's scripts blanking out the page? Does Google care that it's messing up Firefox users?
    For now, if you do not want to or cannot change any one of the three factors needed to experience this problem, you can disable the storage of the last rendering of the page. Then Firefox will skip the shortcut and lay it out fresh, which is known to work. As noted in earlier posts, you make this change using the about:config preferences editor.
    (1) In a new tab, type or paste '''about:config''' in the address bar and press Enter. Click the button promising to be careful.
    (2) In the search box above the list, type or paste '''sess''' and pause while the list is filtered.
    (3) Double-click the '''browser.sessionhistory.max_total_viewers''' preference and change it to 0 (that's a zero).
    This thread has a lengthy discussion: [https://support.mozilla.org/en-US/questions/970863 When I go back to Google search results page, it takes me to a blank Google screen].

  • Safari, always refreshes a page when opening

    When I have multiple pages open in safari and want to change back to a different page then it always refreshes that page. Can it be set to simply go back to that window and keep the page as it was? Pretty sure it doesn't work like that on the iPhone

    timp55 wrote:
    Thanks for that - will go take a look. I assume it's gonna be another app to sneak memory - which looks to be why the page refreshes in the first place. I'd struggle to believe it's a memory thing - my iPad is only hours old, has sync'd once, has very few apps, no music or videos but the refresh was the first thing I noticed about using Safari on the iPad.
    The memory being talked about is actually RAM memory of which all iPad models have 256 MBs. This is not referring to the flash memory size which varies between models, e.g. 16GB, 32GB, or 64GB. Applications use RAM memory to run in while flash memory is used more like a hard drive.
    However, I believe that it's not exactly the 256 MB RAM size that causes Safari to reload pages but rather the strategy it uses to manage memory utilization. It has been reported that some of the other browsers available on the iPad are much better at not reloading pages. You should check them out if this is a problem for you.
    Search the forum for this topic and you will see other posts on this subject.

  • Why does Safari refresh the page when using the back button?

    Safari didn't use to do this.
    Even on these forums, when you hit the back button to go back exactly where you were at, if there are new posts, the entire page may have changed. I knew exactly the next post I wanted to look at before the page was refreshed. Now, I can't even find the post I wanted to read unless I scroll through the entire list again.
    I need to be able to go back to the page I was just on and not have it refresh.
    I need to go back exactly where I was.
    Safari can't even go back properly as it wants to go back near the top of the last page I was on.
    I need it to go back exactly where I was at.
    I have no idea what the engineers are thinking about this one.
    FireFox works properly when going back to the prior page.
    I have long lists on pages I work with.
    For example:
    1. through 1,000.
    If I am on reference number 500 on the previous page, when I hit back, it goes all the way back up to around 20 in the list.
    I have to then scroll manually page down to 500 where I was at.
    This is tedious, cumbersome and unnessesary.
    Safari was much better before it was updated to this horrible behavior.
    I don't know of any preferences you can change to change this odd behavior.
    Anyone know of anyway to stop this horrible behavior in Safari?
    This is like reading a book, but when you go back a page, the entire page may have changed and I have no idea where I was at.
    Pretty $iss poor in my opinion.

    Yes, that is correct.
    However, you can also use the mouse or trackpad to swipe back a page and it still refreshes the last page.
    Safari never did this back in Snow Leopard and maybe some versions of Safari in Lion.
    However, Safari in Mountain Lion always does this.
    It is very cumbersome using the "open link in new window" or "open link in new tab".
    It was much better just being able to click the back button or swiping to get back exactly where you were on the prior page.
    Hopefully more people will send Apple feedback on this.
    Thanks for sharing.

  • Refresh the page when you enter, you load, or focuses

    Greetings to the community... 
    The question I have is like to refresh (update) a page when you enter...
    On the "results.php" page data received from a database I have and when I modify them from another page "modify.php" and return to the "results.php" changes are not seen until pulse update
    How can be so it is updated each time that is recharging, you enter, or focuses the page?
    Thanks in advance.

    Hi bregent,
    You can see what happens in the following link, so I think it will be best that you see it that I explain it to you
    I pass him the link, and if you press right on the arrow of any name, it will be forwarded to the page change, when you modify any data and press on "Actualizar Registro" (update record) will see what comment you.
    http://appiva.comyr.com/AppColegio/formularios/informe.php
    Thank you

  • Refreshing parent page from an IFRAME - javascript?

    Hi
    I have an IFRAME embedded in a jsp page. In the IFRAME, a user gets to submit a form, after which I need it to call the parent jsp page to refresh itself. The JSP page has a table with values from the database and needs to be refreshed to reflect the new form submitted to the database.
    I believe i'll need to use javascript for this, since I'm not using struts, or action classes.
    can anybody help out, with code samples? I've tried searching on google, but most examples are incomplete. If anyone has a link to it I'll be very grateful.
    Thanks

    well to refer to the parent frame, from the javascript panel I believe you can just access window.parent.
    so window.parent.location.reload() should do it.
    However reloading the parent window, will also reset the iframe. If you are going to reload the parent frame anyway, you could potentially submit to it instead of your iframe form by using a target="_parent" on the iframe's form.
    Hope this helps,
    evnafets

  • Refresh BSP Page when button is clicked

    Hello friends,
    I am developing a BSP application in which on page1, when button is clicked, new popup window(page 2) for caculating one field is displayed.
    At the same time I want to update value of the field(Calculated in page 2) to be updated in calling page(Page 1).
    Your help would be appreciated.
    Best regards,
    Dharitree

    I think it would be possible using javascript code.
    Try following javascript code:
    Write following 2 javascript functions in Page1.
    function openPopup()
    document.open(u2018page2.htmu2019, u2018page2u2019, "height=450 width=500 left=320 top=200 status=no")
    function transf(calculatedvalue)
    document.getElementById("<ID OF YOUR ELEMENT(INPUTFIELD)>").value = calculatedvale;
    In Page1, onClientClick event of the Button call openPopup() function Javascript
    Write following function in Page2.
    function getCalcValue()
        opener.transf("<%=CALCULATEDVALUE%>");
        window.close();
        return true;     
    In Page2, after the calculation, call getCalcValue Javascript function.
    Let me know if you need any further clarification on this.
    ~Salil
    Edited by: Salil Patel on Aug 8, 2008 2:51 PM

  • IE 11 Parent Page/Tab refreshes automatically when we close Child page before completion of load

    HI,
    We have opened the application in IE 11 then when i am click on the button it will open another window, before it is opening fully we have closed the child page then it is refreshing parent page automatically because of this  what ever the changes we
    are having in the parent page got lost. 
    Please help me regarding the same. Thanks.

    Hi ,
    Would you please share us with more details?We will check whether it is caused by the website or the IE.
    What kind of  this application is ? Is it an add-on or a feature built-in the specific website?
    Does this is problem occur on a specific website or all of the websites?Would you please share one problematic  website with us if possible and give us a guide so I can test in my own machine?
    Is it the first time to work with this application if it is an add-on?
    If you are the developer of the IE application or website, then I suggest you  post this issue in the
    Internet Explorer Dev Center to look for help. Here is the link:
    Internet Explorer Dev Center
    https://social.msdn.microsoft.com/Forums/ie/en-US/home?category=iedevelopment
    Best regards

  • How to Refresh a Page once saved to database in ADF.

    Hi,
    I created a JSF page using project template as "JSF,ADF,business components".
    There is a List of values displayed in a dropdown list,
    User can create new value and once it is saved to the database it should reflect in the list of values.But it is not displaying in the LOV and it is happening only when i close that page and open a new one.
    Can u please tell me how to refresh a page without closing the current page once save button is clicked.
    Thank you,
    Harika.

    Mini wrote:
    Hi Hari,
    Yes i have a apex page redirects from the ebs menu like you said. But for the refresh issue instead of modifying in the jsp i thought of bringing the automatic refresh for that apex page once it is loaded within apex.
    However these type of issues are sometimes get fixed by clearing browser cache or just by restarting your browser. Have you tried it?Yes i have tried, by clearing the browser cache and also by restarting the browser then too it still persist.
    Any DA action will be helpful for refreshing that page for 1sec once it is loaded. Since i dont want it to be loaded multiple times often once it is loaded.
    The refresh has to be only once if the page is loaded.
    or is it possible to Refresh the page based on the application page item through DA
    Thanks
    Brgds,
    MiniTechnically Yes, you can create a D.A. that will fire only once based on some apex page item or application item value. However this is NOT the correct solution.
    <li> When you see apex page (after clicking menu in EBS), do you see apex url in browser address bar? Can you post the URL here?
    <li> If you directly log-in to APEX (not via EBS), do you still face this issue?
    Regards,
    Hari

  • How to refresh a page in Safari

    In IE there is refresh option.  How can I refresh a web page in Safari?

    Maybe there is a misunderstanding, but normally you need to refresh the page when there is something wrong. I often have small issues for instance with flickr, a picture does not display because of their servers (some farms are sometimes not active, then get active again). The pictures display as a question mark in a small blue square. If the pictures are restored, and you refresh the page on Safari, the picture will NEVER display, you need to clear the cache. The only way to do this is the following (found in another forum post):
    1. Go to Safari > Preferences > Advanced and select Show Develop menu in menu bar.
    2. Go to Develop > Empty caches
    If you THEN refresh the page, the content will be displayed correctly.

  • Loading video dynamically on parent page

    I have a list of video links on a portfolio website page. I
    need the video to load in a fixed place on the parent page when the
    link is clicked. When the user clicks a new link, the new video
    should replace the old one in the same spot.
    I have achieved this with images but for the life of me I
    cannot figure out a way to do the same thing for video!!!
    HERE'S THE CODE I USED FOR THE IMAGES-
    function showPic (whichpic) {
    if (document.getElementById) {
    document.getElementById('placeholder').src = whichpic.href;
    if (whichpic.title) {
    document.getElementById('desc').childNodes[0].nodeValue =
    whichpic.title;
    } else {
    document.getElementById('desc').childNodes[0].nodeValue =
    whichpic.childNodes[0].nodeValue;
    return false;
    } else {
    return true;
    Here is a link to my original files to demonstrate what I'm
    trying to do.
    http://www.thomas-bradley.com/TempTesting/anim.html
    I have been stuck on this problem for a long time.
    PLEASE SOMEONE SHOW ME THE LIGHT!!!

    If you use Flash Video, look at Wimpy Audio/Video Player. A
    single player
    can be used to present an entire playlist of media files.
    www.wimpyplayer.com/products/wimpy_av.html
    --Nancy O.
    Alt-Web Design & Publishing
    www.alt-web.com
    "Shweta Agarwal" <[email protected]> wrote
    in message
    news:fc8udr$nmi$[email protected]..
    > I have a list of video links on a portfolio website
    page. I need the video
    to
    > load in a fixed place on the parent page when the link
    is clicked. When
    the
    > user clicks a new link, the new video should replace the
    old one in the
    same
    > spot.
    >
    > I have achieved this with images but for the life of me
    I cannot figure
    out a
    > way to do the same thing for video!!!
    > HERE'S THE CODE I USED FOR THE IMAGES-
    >
    > function showPic (whichpic) {
    > if (document.getElementById) {
    > document.getElementById('placeholder').src =
    whichpic.href;
    > if (whichpic.title) {
    > document.getElementById('desc').childNodes[0].nodeValue
    =
    whichpic.title;
    > } else {
    > document.getElementById('desc').childNodes[0].nodeValue
    =
    > whichpic.childNodes[0].nodeValue;
    > }
    > return false;
    > } else {
    > return true;
    > }
    > }
    >
    > Here is a link to my original files to demonstrate what
    I'm trying to do.
    >
    http://www.thomas-bradley.com/TempTesting/anim.html
    >
    > I have been stuck on this problem for a long time.
    > PLEASE SOMEONE SHOW ME THE LIGHT!!!
    >
    >
    >

  • Modal dialog - refresh the parent page on close

    Hi:
    Using Apex 4.02
    I have followied Havard Kristiansen's modal dialog example.
    I have everyting working, but I have a requreimet to refresh the entire page (parent page) on the close of the modal page.
    I have tried quite a few things in dynamic actions on the parent page etc, but nothing is working.
    How can I get the parent page to fully refresh when the modal dialog is submitted and closed.
    Your help would be most appreciated.
    Regards,
    Bruce

    Hi:
    Please - still waiting for help.
    Here is what I have tired:
    - dynamic action on iframe for page unload to call window.opener.doSubmit() and parent.doSubmit();
    - dynamic action on button on ifreame same as above
    - branch (plsql) process to call above
    None of these worked. The modal dialog closes but the parent page dos not refesh.
    I can refresh a report region, but the problem is that the region I want to actually refresh is conditional and is not displayed when you first open the modal dialog. Hence, it does not appear on the return even though the condition is now true.
    Any help would be appreciated please!
    Regards,
    Bruce

Maybe you are looking for

  • Can I get a refund on a game I purchased and downloaded in Itunes for my Ipod Touch 4g?

    Would like to know if I can get a refund for a game purchased and download in Itunes on my Ipod Touch 4g that wasnt what I thought it would be and I dont like the game. Hope Im not stuck with it.

  • External hard drive issue - PC to Mac (weird problem...)

    Hi everyone, this is my first post and new to Macs, so apologies if this may have been covered elsewhere (though I can't find an answer!), but I'm getting seriously frustrated with this issue! I've just recently been given an iMac and I'm trying to a

  • Why is my Mac running so slow?

    I have a Mac book late 2010 and it has 4 gb of ram. I got mountain lion and now every thing is slow like Turning on takes 1:30 to get to the log on screen. Loging in takes 30 sec opening any programs takes 30+ secs. Do you know why this is the case?

  • Variable Range not working in BPS-Layout.

    Hi BI Guru's, I am facing Problem in BPS - Layout. My requirement is to get YTD Budget Quantity in Single Coulumn. For Example, I need Quantiy for the Period 001.2009 to 12.2009 in single Column as Budget YTD 2009. For this I defined a variable on th

  • STO UB doc type

    HI Gurus, Can anybody please help me with this? When we are procuring the materials from a different plant using STO.(The config is all setup). Do we need to maintain a source list in the procuring plant with the supplyinh plant as the vendor and als