Can't access this page anymore, https://root.cern.ch/js/scripts/

Hi ROOT JS developers,

I recently revisited a website developed me a few years ago which utilized ROOT Java script to monitor the quality of our data, http://damic.physik.uzh.ch/monitoring/ . However, I found the root files can’t be displayed properly as before anymore. After checking the script, JSRootInterface.js ,(which were thankfully shared by your guys.), I realized the possible reason might be the website can’t be accessed anymore, https://root.cern.ch/js/scripts/ . Cause in my script, there exist quite a few lines like,

loadScript(source_dir+'scripts/jquery.mousewheel.js', function())

where, “source_dir” has been defined as,

var source_dir = http://root.cern.ch/js/

Could you please have a look on this issue and give me a solution on it ?

Thanks

Best,
Jun


ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided


https://root.cern.ch/js/scripts/

Hi,

Please use http://root.cern.ch/js/latest/ and http://root.cern.ch/js/latest/scripts/ (for the latest version)
See the different available versions at http://root.cern.ch/js/

Cheers, Bertrand.

Hi Bertrand,

Thanks for your reply by which I can make some progress.
What I have done are :
1, modify the “JSRootInterface.js” with the new address as you thankfully mentioned above.
2, Downloaded the latest version of scripts manually and replace the files of old version.

However, the problem is still open.

I have two questions:

  1. In the “JSRootInterface.js”, there is a line like:
loadScript(source_dir+'fonts/helvetiker_regular.typeface.js', function() {

While, the following address sounds don’t exist: http://root.cern.ch/js/latest/fonts, Could you please let me know which address is the correct one ?

  1. I feel if you can kindly send me these two scripts: JSRootInterface.css and JSRootInterface.js, (which are functional under the latest version of JS), my diagnose presumably would be simplified significantly. Combing the new version of these two scripts and the already downloaded latest scripts: https://root.cern.ch/js/latest/scripts/, I should be able to display the root files as I did a few years ago.

Do you have any other comments ?

Thanks.

Best,
Jun

Hi Jun,

Seems to be, you are using very old version of JSROOT.
It is no longer supported and I encourage you to modify your JavaScript code.
There are several examples:
https://root.cern/js/latest/api.htm
https://root.cern/js/latest/api.htm#custom_html_read_root_file_src

And documentation:

Regards,
Sergey

P.S. If you really want to use old version - it is here https://root.cern/js/3.1/

Hi Sergey,

Thanks for your response.

To use the latest version of JSROOT quickly, it would be great if I can get quick tutorials or README files to start with. Can you please share these docs if you have ?

Thanks

Best,
JUn

Hi Jun,

I already give you the link:

There is also draft of reference API:
https://root.cern/js/dev/jsdoc/JSROOT.html#.draw

Regards,
Sergey

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.