Forums

Covering OroCRM topics, including community updates and company announcements.  Subscribe

This topic contains 2 replies, has 2 voices, and was last updated by Yevhen Shyshkin Yevhen Shyshkin 2 years, 11 months ago.

  • Creator
    Topic
  • #7579

    mageyug
    Participant

    Hello,

    when we refresh page using (F5) the above js load but when we come the edit email template from all ajax loading above js is called, can you please provide some solution

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #7586

    mageyug
    Participant

    Hello,

    can you help me why above js is not called when we comes edit email template with ajax load?

    #7609
    Yevhen Shyshkin
    Yevhen Shyshkin
    Oro Core

    Hello, mageyug.

    There are two ways to load page:
    1) get by direct URL (of using F5) – in this case whole page is rendered and passed to browser;
    2) get by navigation (f.e. click on menu item or grid action) – in this case AJAX response will contain not whole page, but only specific blocks of requested page, you can check response body and figure it out.

    So, in your case you probably added JS code to block that does not included into refreshed blocks. To check that you can get AJAX response body and check whether your JS is there or not. If it’s no there then you have to move it into more appropriate block.

    Also it’s good idea to check for JS errors – if you have any then you should fix them first, these errors can block execution of your JS.

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

ssossossosso