OroCRM Forums

Covering OroCRM topics, including community updates and company announcements.

Forums Forums OroCRM OroCRM – Programming Questions Js load issue in Ajax

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

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
    Topic
  • #24965

    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
  • #24966

    mageyug
    Participant

    Hello,

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

    #24967
    Yevhen Shyshkin
    Yevhen Shyshkin
    Participant

    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)

The forum ‘OroCRM – Programming Questions’ is closed to new topics and replies.

You will be redirected to [title]. Would you like to continue?

Yes No