banner



How To Keep A Change In Html Elements When Reloading A Page

  • Remove From My Forums

 locked

Javascript to stop page from reloading with erstwhile image but go along new image changes

  • Question

  • User433556381 posted

    Hullo,

     I am using an API online to make some changes to a picture on my page, the new image is returned from the API from an iframe and so right before I close the iframe, I refresh the parent page just unfortunately what happens at the same fourth dimension is that a pop up comes up with the message

    To brandish the webpage again, Internet explorer needs to resend the information yous've previously submitted......

    At present, I observe that one time I click retry on this pop upward, the old prototype is reloaded in my application and the changes to the paradigm are discarded. When I click cancel, I am sent to an fault folio which I have tried to fix but so far, no solution. Basically, what I would like to do is reload my Parent page and go on my changes. Reloading the parent folio is so that the page can reflect the new image. Beneath is the code in the kid folio that is supposed to phone call the parent folio to refresh and then close the iframe. Thanks in Advance

    part close()

    {

    // Bank check to see if nosotros are still in a frame

    if (parent.frames.length > 0)

    {

    parent.window.location.reload();

    parent.onPicnikClose(); // Let the parent frame close the picnik in a box frame

    } else

    {

    document.location.replace( 'http://www.beetlecome.com/modoin.aspx' ); // Go back to your site

    }

    }

Answers

  • User433556381 posted

    So far.... here is my problem

    parent.window.opener.document.forms["Form2"].elements["btnUpdateAlbumList"].click();    Gives me the error "ACCESS IS DENIED"

    parent.window.location.reload();     Gives me the error "Admission IS DENIED"

    I am trying to avoid using a timer to update myDataList every then many seconds please.

    • Marked as reply by Thursday, Oct 7, 2021 12:00 AM

Source: https://social.msdn.microsoft.com/Forums/en-US/03987bc1-1896-4524-b8fb-fa1f2f7e0bab

Posted by: combsobjer1979.blogspot.com

0 Response to "How To Keep A Change In Html Elements When Reloading A Page"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel