Metadata # JavaScript conflict?
Posted: Mon Jun 18, 2012 6:42 pm
Hi there
I have some jquery which I need to add to a template. The jquery uses # and is supposed to place them at the end of the URL when a particular button is pressed. The script works without cmsms.
When I import into a template in cmsms, there is a problem as there appears to be a conflict with the {metadata} tag, or namely, the base href tag. When this tag is in place, instead of the # being added to the end of the existing URL, the user is redirected to the home page. Without the {metadata} tag, the script works, however JavaScript and image files are not displayed.
I have also tried {metadata showbase="false"} and this doesn't work either, same thing with images etc not displaying correctly.
Thank you in advance
I have some jquery which I need to add to a template. The jquery uses # and is supposed to place them at the end of the URL when a particular button is pressed. The script works without cmsms.
When I import into a template in cmsms, there is a problem as there appears to be a conflict with the {metadata} tag, or namely, the base href tag. When this tag is in place, instead of the # being added to the end of the existing URL, the user is redirected to the home page. Without the {metadata} tag, the script works, however JavaScript and image files are not displayed.
I have also tried {metadata showbase="false"} and this doesn't work either, same thing with images etc not displaying correctly.
Thank you in advance