Forums | Mahara Community
Developers
/
Own javascript file
15 February 2012, 1:19
I have created my own javascript file and wish to replace mahara.js file with my javascript file. Can anyone please tell me which file has included the mahara.js file, so that i can change it and provide path to my javascript file.
15 February 2012, 2:56
Hello,
If you want to replace the file you can simply name it the same name as the original javascript file.
If you want to inclue yours you could
call yours (include) at the beginning of the original javascript file
or
grep the mahara package to find the different places the javascript file is called and add an include header in each of them
HTH
-dajan
15 February 2012, 10:47
About the last option
"grep the mahara package to find the different places the javascript file is called and add an include header in each of them" can you help me with which all places have that javascript file included in?
17 February 2012, 4:45
Thanks, i got it there. By the way, can we also try to provide functionality of "Ticker" that shows the current activity of everyone, for example say some feedback posted on some page, or if 2 people just became friends or whatever content anyone wishes to post on the ticker.