Search Bar is not shown in China

Search Bar is not shown in China

WindsorWindsor Posts: 4Questions: 1Answers: 0

Hello,

Basicallyon my table i have a search bar which is shown fine in my website
When my clients access the page from China the search bar is not shown, and this is happening only in China, although the page is the same.

This is the link: https://cn.windsorbrokerchina.com/mt4-products/
Attached are the 2 screenshots with the search bar and without.


Thank you in Advance

Answers

  • colincolin Posts: 15,143Questions: 1Answers: 2,586

    It would be worth checking differences in their browsers, and whether they see any console errors. Could you also ask them to verify whether they see a search bar in this example, please. If they can, it would point towards something in your implementation, and give us a direction.

    Colin

  • WindsorWindsor Posts: 4Questions: 1Answers: 0

    Hello,

    Basically the difference we found among the rest websites/languages is that this https://code.jquery.com/jquery-1.12.4.js specific script is not loading and maybe thats why they are not seeing the search bar.

    I would like to let you know that the tables i am adding them as Iframes, thus i cant change the URL.

  • kthorngrenkthorngren Posts: 20,298Questions: 26Answers: 4,769
    edited November 2020

    https://code.jquery.com/jquery-1.12.4.js specific script is not loading

    looking at the screenshots it looks like you are correct. The top screenshot is missing other Datatables elements like sorting and the button, in the first column, for opening the child rows.

    You will definitely need to find out why jquery.js isn't loading as Datatables reuires that package.

    Kevin

  • WindsorWindsor Posts: 4Questions: 1Answers: 0

    I have tested this https://datatables.net/examples/basic_init/zero_configuration.html
    and its seems the search bar and the sorting's are showing correctly.

    The jquery.js isnt loading only in China.

  • kthorngrenkthorngren Posts: 20,298Questions: 26Answers: 4,769

    The jquery.js isnt loading only in China.

    That is outside of Datatables control. Maybe its being blocked. You can try loading it from a local resource. Maybe you can find out why its blocked on Stack Overflow.

    Kevin

  • colincolin Posts: 15,143Questions: 1Answers: 2,586

    The jquery.js isnt loading only in China.

    I don't think that is the case. Given you said https://datatables.net/examples/basic_init/zero_configuration.html works, which also uses jQuery, it must be something to do with your iframe. Are you also including the JS/CSS there? The iframe can't inherit access from the parent page.

    Colin

  • WindsorWindsor Posts: 4Questions: 1Answers: 0

    This is the example of 1 tables used in my page as an iframe: https://tables.myuserhub.com/public/page/forex-online-zero-bz

    From what i can see, there are differences within the code from the one you sent to test.
    is there anything i can do?

    Thank you

  • allanallan Posts: 61,697Questions: 1Answers: 10,102 Site admin

    @Windsor - What does the browser's network tools show as the response from the server when trying to load https://code.jquery.com/jquery-3.5.1.js ?

    This site shows that it might well be blocked at the moment:

    If that is the case, then as Kevin says, there is nothing we can do about that. You'd need to have a local copy of jQuery, or possibly use the one from our own CDN.

    Allan

This discussion has been closed.