Skip to content

IFramePanel refresh #754

Closed
Closed

Description

@itg-assistant

Matthew Ferry asked 2017-04-06 02:05:00 UTC

Hi I'm working on proving out the concept for a content management system.  I'm displaying a page in an IFramePanel.

When I change the underlying data - I need to have the IFramePanel reload the page it is pointing to.

.Refresh does not do this (I didn't expect it to).  But there is no .Reload type of event.  How can i get the IFramePanel to reload its content?

Thanks in advance!

Btw - love your stuff...

Activity

  1. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Luca answered 2017-04-06 15:30:53 UTC

    Good catch! We can add the Reload method. Workarounds:

    from the iFrame class: this.Call("reload")

    or from outside: this.iFramePanel1.Call("reload")

    or add a parameter to the URL: &v={counter{

    Calling "reload" is much better.

    Best,

    Luca

  2. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Matthew Ferry answered 2017-04-06 18:26:00 UTC

    Thanks very much - the workaround of just calling IFramePanel.Call("reload")  works beautifully!   Thank you for the great support.

    Also - I notice that the IFrame panel does not display any content at all when I run the same app I'm building on an iPad (though it does in desktop).  Is there something different that I need to do?

  3. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Frank (ITG) answered 2017-04-12 09:08:22 UTC

    Hi Matthew,

    Wisej.Web.IFramePanel.Reload() has been added in the latest Wisej release (1.3.53).

    Best regards
    Frank

  4. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Eric Mathay answered 2018-01-02 14:45:39 UTC

    Hi,

    Which Event to subscribe to be notified when the Iframe is following a Link due to a user click ?

    I was in hope to get this by hooking to URLChanged event, but it doesn't fire. I also tried textChanged or DocumentCompleted but the same.

    I'm after getting notified and having the URL followed.

    Thanks.

  5. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Luca answered 2018-01-05 02:18:05 UTC

    The event is DocumentCompleted which is fired after the new URL is loaded in the iframe. However the url on the server is not updated. I just saw that we have another event “navigate” which updates the URL but it’s not wired to the server component. Will add an enhancement.

  6. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Eric Mathay answered 2018-01-05 07:42:50 UTC

    So, if I understand you correctly, after the enhancement is in place, I will get notified by the event ‘DocumentCompleted’, then I read the URL property and have the new address.
    What about the event ‘UrlChanged’`? (Is this the one you name ‘navigate’?) Is this foreseen to ONLY be fired when the URL property is newly assigned, and not when following a document reference ? I was expecting it to fire in both case and supply the new URL in the eventargs object.

    But no problem, I trust you to get the most convenient and logical use.
    In the meantime I will wait for the enhancement.

    Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    GeneralQuestions, how-tos and everything else.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions