Is it still working?

Is it still working?

xbahaxbaha Posts: 3Questions: 2Answers: 0

I tried to embed client-side js from the snippet, but I am getting disconnected, and nothing loaded up. I can preview the table in the dashboard, but can't embed it.

Answers

  • kthorngrenkthorngren Posts: 16,808Questions: 25Answers: 3,984

    Can you post a link to your page or a test case showing the issue so we can see what you are doing and help debug?
    https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case

    Are you getting and alert messages or console errors in the browser?

    Kevin

  • xbahaxbaha Posts: 3Questions: 2Answers: 0

    I found out the problem:
    When I tested the snippet under jsfiddle, it worked.
    so I went back to test again on VSCode, I am using live server extension, so it launches at 127.0.0.1:5500 where I got the error disconnected.
    I changed to localhost:5500 and it worked.

    not sure if it's a bug or not.

    regards.

  • kthorngrenkthorngren Posts: 16,808Questions: 25Answers: 3,984

    not sure if it's a bug or not.

    Its not a Datatables bug. Datatables is a library that runs within your webserver environment. You will need to look at the vscode docs and lgos to find out why localhost worked but 172.0.0.1 did not.

    Kevin

Sign In or Register to comment.