cancel
Showing results for 
Search instead for 
Did you mean: 

JS reload in runtime

ssmirnov
Champ in-the-making
Champ in-the-making
Hi
Does anyone know how change javascript in share in runtime, without restarting server?

Thank in advance.
4 REPLIES 4

tonyrivet
Champ in-the-making
Champ in-the-making
It depends on how you setup your development environment but maybe you just need to clear the share dependency caches :
- go to …/share/page/index
- click on "Clear Dependency Caches"
- refresh the page your JS script is loaded on

ssmirnov
Champ in-the-making
Champ in-the-making
there is no such key:
 click on "Clear Dependency Caches" 

only "Refresh Web Script" - it does not work in my case and "Enable SurfBug"

tonyrivet
Champ in-the-making
Champ in-the-making
Ok, sorry I didn't notice the Alfresco version your are using. This feature must have been added in 4.2.
Well then it really depends on your develepment environment. Could you give us more details about it ? Do you use a maven based environment ? Which JS resources are you trying to update ? Where are they stored ?

ssmirnov
Champ in-the-making
Champ in-the-making
I use alfresco version 4.0.e community eition, used maven for a build project.
Javascript - http://yuilibrary.com/, customize share.