Thanks for the reply.
Yesterday i was trying out the whole day to find out a way to do, but i
could not do, finally i created a “newLayout” and included this JS. The
“newLayout” differs from the “MasterLayout” with just this JS inclusion
in the “newLayout”
(Its great that your idea is coincidence with the way/workaround that i
finally made and i’m certainly glad about it)
It worked well…
But the problem in long term perspective is that say if we do some
chagnes to the “MasterLayout” say added few more links, then we have to
make sure that we replicate these changes to the “newLayout” also. So at
anytime we may have to maintain two copies of the “Layout” with one the
Js inclusion and the other without it. and i guess this is an overhead.
Another workaround is that just before rendering the HTML file from the
controller, use the File IO to read the HTML file and append the
also worked, This way we do not need the “newLayout”. But the problem
here is every time we do a refresh the above gets
appended to the HTML file and finally multiple
entries are found in the HTML file. As we know there is no harm evern
though when we use multiple same …but it does look
good though rt? if anybody looks at the HTML file…
But since i could not find a way or know how to do it, i’m currently
using the “newlayout” workaround. Any other ways ?