Arre the Datables.net example pages broken?
Arre the Datables.net example pages broken?
dogcollarlabor
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
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
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.
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
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.
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
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
I have the issue on the homepage too, here's some screenshots.
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
Fix committed here. 1.13.6 with the fix will drop on Monday morning
Allan
All is good. The pages load properly. Thank you.
I got ahead of myself. The editor examples pages are still having the issue.
It works great for my old safari now, thanks Allan
Editor examples should be good now as well!
Allan
Hi, maybe I did something wrong, but I also get a message in the console.
[url removed]
Jan.
If you right click on your page and "View source" you'll see:
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
Hi Allan,
Yes, sorry, I saw that too. I will change it back to what it was
Jan.
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.
I've removed the URL - is that okay? Otherwise, my reply doesn't make any sense in the thread
Allan