Legacy Dev Forum Posts

 View Only

Sign Up

Change innerHTML on MessagingService.conversationDisconnected

  • 1.  Change innerHTML on MessagingService.conversationDisconnected

    Posted 06-05-2025 18:38

    Dominik_Libner | 2024-09-18 08:21:49 UTC | #1

    Hi all,

    We are trying to implement post conversation custom functionality by displaying some custom html inside "mxg-transcript" div.

    Like this:

    Genesys("subscribe", "MessagingService.conversationDisconnected", function({data}){
        document.getElementsByName("mxg-transcript")[0].innerHTML = '<div>custom things...</div>';
    });

    (Such things were possible with Genesys' WebChat Widget).

    I understand that in case of new cloud Messanger it is not possible due to iframe of different origin and "same origin policy" of browsers. Is it possible to deploy custom scripts together with Messanger deployment so browsers allow to modify Messaging frontend? If not, is there any way to customize frontend without building everything from scratch?

    Thank you, Dominik


    Angelo_Cicchitto | 2024-09-20 10:20:29 UTC | #2

    Indeed, we are explicitly trying to prevent script-injection in our iFrame: if you can elaborate on the actual use-case, we may consider alternatives.


    system | 2024-10-20 10:20:31 UTC | #3

    This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 29383