JSRoot : How to change the path of root files

JsRoot 5.41


Hello,

I would like to specify an other path to load my .root files in the JSRoot which I included in my web site by using a iframe src="…jsroot…"
That iframe shows a canva which contains the root content loaded and a select which loads files from “…/files/examples.root”, How can I change the default path “…/files/” from this select ?

Hope there are JSRoot users here, thank you.

Hi,

You can use “path” parameter in URL string:

https://root.cern/js/latest/?path=https://root.cern/js/files/&file=hsimple.root&item=hpx

It only makes sense, when you want to load many files at the same time. Like in this example:

https://root.cern/js/latest/api.htm#url_syntax_superimpose_3_files

Regards,
Sergey

Hello,
Thanks good to know, I also change the path="" attribut in the main page index.htm and it seems to be the default path now.

Regards

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