Closed TimS70 closed 4 years ago
Hi, couple questions:
Thanks!
Hi @xanderkoo, 1) Here is the JSON.parse - command. At the last DevTool step before the error
I also wonder why you did not find in the JSON.parse in the webgazer code. This code here is the direct link from big blue Download button on webgazer.cs.brown. I saved this page as .js:
2 & 3) Originally I tried it in both Firefox and Chrome but now I wonder: I can only replicate the error in Chrome (Version 83.0.4103.106 (64-Bit)). Now, it works in Firefox. I reinstalled Chrome but the error persists. Maybe it is only my weird Chrome version?
The webgazer files are here: Code.zip
The version of webgazer.js you screenshotted is old -- I believe it may have been a caching issue. I recommend navigating back to webgazer, and refreshing the page. If that doesn't work, try clearing your cache. For reference, this is what I see at the same link:
In fact, may be good for you to clone the repo and re-concatenate the webgazer.js file directly (there are instructions on the readme). It'll make sure that you have the needed dependencies.
Let me know if that works.
Here's a zipped copy of the newer webgazer if you need it. webgazer.js.zip
I emptied the cache and just found the code that you described. Now it also works in Chrome.
Thank you very much!
Thank you guys for maintaining this great library! I am currently learning JS in order to create an Eye-Tracking experiment with webgazer. Forgive me my limited knowledge but I think there is something wrong with the current downloadable version on https://webgazer.cs.brown.edu/ (June 16th 2020).
I run parts of the code from the examples on the webpage to start webgazer. The script is simply activated by a html-button on a php-page.
I get the following error message in the Console. From SO, I learned that there might be a problem giving an undefined variable to JSON.parse.
When I copy the webgazer code with the help of DevTools from the examples on the website, it works (at least my webcam is activated without error message). Does that mean that there is a bug in the current version? Are the examples up to date and this one not?
Thanks in advance!