Script

I have one script. I can use a same script for two different pages. How to solve this?

Hi,

put you common code in a file under Public if it is javascript you want to use in your client side code

Shlomi

I have a code that accesses the database and has elements on the page. Is there a way to put the code public, for any page you can access?

Hi!

You can place your code on “site” tab. This code will be executed for all pages. But it can have access to the “show on all pages” components. You can’t refer to the comps on ther page, like “page1”.“comp1” if you’re running code on “page2”