Arre the Datables.net example pages broken?

Arre the Datables.net example pages broken?

dogcollarlabordogcollarlabor Posts: 6Questions: 0Answers: 0

The tabs do nothing and an error is being thrown (Uncaught syntax).

I'm curious if it is just me because it's been going on for a few days now.

Replies

  • kthorngrenkthorngren Posts: 21,284Questions: 26Answers: 4,940

    They are working. I think someone reported earlier a problem when using an old version of Safari. Not sure which version but I can use them with Chrome and a pretty recent version (not sure if latest) of Safari on the Mac. What browser's / OS do you see the issues?

    Kevin

  • dogcollarlabordogcollarlabor Posts: 6Questions: 0Answers: 0

    Hmmm. Thanks for letting me know. I'm using the latest version of Firefox on multiple Macs and cannot view the working examples. The tabs also do nothing. It was fine a few days ago.

  • allanallan Posts: 63,414Questions: 1Answers: 10,454 Site admin
    edited July 2023

    What's the error you are getting please (including the back trace, so I can see where it is in the code)? Can you send me a screenshot of that? I use Firefox all the time (albeit not on a Mac).

    What happens if you force reload the example?

    Allan

  • dogcollarlabordogcollarlabor Posts: 6Questions: 0Answers: 0

    Force reload gives the sameerror.

    Uncaught SyntaxError: expected expression, got '='
    site.js:14:15289

    Uncaught ReferenceError: dt_demo is not defined
    fieldTypes.html:29:7

    Uncaught TypeError: window._site is undefined
    dynamic.php:1:1

    Everything works fine on Mojave OS. It's Yosemite that fails. It's an older system but it worked about a week ago.

  • MelodyNelsonMelodyNelson Posts: 213Questions: 33Answers: 2

    I'm the one who reported the errors on the example pages with an old safari version.
    I have to work on and old mac for a project.
    MacOS 10.13.6 (High Sierra), Safari Version 13.1.2
    The examples don't work since maybe a week

  • allanallan Posts: 63,414Questions: 1Answers: 10,454 Site admin

    It sounds likely that I've inadvertently introduced some syntax that isn't supported in older browsers. Can you show me a screenshot of where Safari is saying the issue is? Ideally with the code pretty printed please - the site.js file is minified, so line 14 could be virtually anything...

    Weird that Firefox is showing the issue though - I thought it used its own JS engine on macOS, so if Firefox was up to date, it would work regardless of the OS version.

    Allan

  • MelodyNelsonMelodyNelson Posts: 213Questions: 33Answers: 2

    I have the issue on the homepage too, here's some screenshots.



  • allanallan Posts: 63,414Questions: 1Answers: 10,454 Site admin

    Many thanks! I've identified the issue now - there is a piece of code in 1.13.5 (not 1.13.4 or earlier, it was a PR for 1.13.5) that causes slightly older Safari some issues. I'm going to get this patched over the weekend and will do a 1.13.6 release on Monday with the fix.

    Allan

  • allanallan Posts: 63,414Questions: 1Answers: 10,454 Site admin

    Fix committed here. 1.13.6 with the fix will drop on Monday morning :)

    Allan

  • dogcollarlabordogcollarlabor Posts: 6Questions: 0Answers: 0

    All is good. The pages load properly. Thank you.

  • dogcollarlabordogcollarlabor Posts: 6Questions: 0Answers: 0

    I got ahead of myself. The editor examples pages are still having the issue.

  • MelodyNelsonMelodyNelson Posts: 213Questions: 33Answers: 2

    It works great for my old safari now, thanks Allan

  • allanallan Posts: 63,414Questions: 1Answers: 10,454 Site admin

    Editor examples should be good now as well!

    Allan

  • JanNL_FRJanNL_FR Posts: 47Questions: 15Answers: 2
    edited December 2023

    Hi, maybe I did something wrong, but I also get a message in the console.

    [url removed]

    Jan.

  • allanallan Posts: 63,414Questions: 1Answers: 10,454 Site admin

    If you right click on your page and "View source" you'll see:

    <?php include '../lib/header.php';?>
    

    at the top of the page. It is a .html extension, so presumably your http server isn't passing it through PHP. Try changing the extension to .php. I don't know if that will be enough, since I don't know if you have a ../lib/header.php file, but that would be a place to start.

    Allan

  • JanNL_FRJanNL_FR Posts: 47Questions: 15Answers: 2
    edited December 2023

    Hi Allan,
    Yes, sorry, I saw that too. I will change it back to what it was

    Jan.

  • JanNL_FRJanNL_FR Posts: 47Questions: 15Answers: 2

    Hi Allan thanks, It's fine now.
    Could you please delete my messages in this topic, because it doesn't help anything for other people?

    Jan.

  • allanallan Posts: 63,414Questions: 1Answers: 10,454 Site admin

    I've removed the URL - is that okay? Otherwise, my reply doesn't make any sense in the thread :)

    Allan

Sign In or Register to comment.