I have just updated a number of my modules to use jQuery and in order for them to work I have had to add a number of inserts into my skin file, something like this:
<
script
type
=
"text/javascript"
>!window.jQuery && document.write(unescape('%3Cscript src="<%=SkinPath %>AJAXScript/jquery-1.4.4.min.js"%3E%3C/script%3E'))</
script
>
<
script
src="<%=SkinPath %>AJAXScript/DD_roundies_0.0.2a.js" type="text/javascript"></
script
>
<
script
src="<%=SkinPath %>AJAXScript/jquery.blockui.min.js" type="text/javascript"></
script
>
<
script
src="<%= SkinPath %>AJAXScript/jquery.MetaData.js" type="text/javascript"></
script
>
<
script
src="<%= SkinPath %>AJAXScript/jquery.rating.js" type="text/javascript"></
script
>
<
script
src="<%=SkinPath %>AJAXScript/jquery.json.min.js" type="text/javascript"></
script
>
<
script
src="<%=ApplicationPath %>/js/iSuite.js" type="text/javascript"></
script
>
<
script
src="<%= ApplicationPath %>/js/HRGCombinedScripts.js" type="text/javascript"></
script
>
<
script
type
=
'text/javascript'
>jQuery.noConflict();</
script
>
The problem I have is that I have several separate skin pages within each package AND I have dozens of skin packages.
At present I am faced with amending every page within every skin package to insert this code.
Can anyone suggest a better way of doing this, preferably without changing any core code.