Page 1 of 1

Ready-to-use java scripts

Posted: Fri May 29, 2020 4:20 pm
by thegreen48
I’m having a problem with being able to use a newly written Java Script.

I can create a new java script using the Tools – JavaScript Editor option, select Add, enter all the bits and close. Next time I open the JavaScript Editor, there it is and I can see it works fine in its little demo window. But this is the problem, I don’t see my new script in the Toolbox of Ready-to-use Java Scripts. And it doesn’t have the Hide box ticked.

Similarly if I edit one of the scripts using the JavaScript Editor I see it change and next time I load the editor I see the edited version, but the Ready-to-use version hasn’t changed.

The list of scripts in the editor and the toolbox look to be the same but I guess they must two different sets.

So the question is how do I get my newly created script into the Ready-to-use java scripts?

I'm sure there's a simple answer that'll make me go Doh! Homer Simpson stlye, but I just can't find it.

Re: Ready-to-use java scripts

Posted: Fri May 29, 2020 4:56 pm
by Pablo
It sound like you are editing the wrong file.
If you customize the scripts then the 'js.dat' file should be located in Documents\WYSIWYG Web Builder\system\
Windows does not allow you to make changes to files in "Program Files"

Re: Ready-to-use java scripts

Posted: Fri May 29, 2020 10:06 pm
by thegreen48
OK, got it.

And this is what I’ve found in my set up …

The java script editor is updating js.dat in C:\Users\me\AppData\Local\VirtualStore\Program Files\WYSIWYG Web Builder 15 and the toolbox is opening js.dat in C:\Users\me\Documents\WYSIWYG Web Builder\system.

Until I figure out exactly what’s configured to point to those two locations I’ll simple copy any changes across to the toolbox folder.

Thanks for the quick response Pablo.