I feel like I must be missing something fundamental in this.
I have read through the docs page about JS Resources -- https://docs.miva.com/how-to-guides/...set-management
I have an inline script that uses jQuery
This is wrapped up in a resource listing -- https://cloudup.com/iQO0MPCiKCf
Assigned to a page -- https://cloudup.com/iAzg4GNigSN
Assigned to a resource group -- https://cloudup.com/i4FCVzJ5gN9
Added a mvt tag to the footer section of the page
The HTML to hang the functionality on: https://cloudup.com/iRP2HIQKtz3
But when I load the page, the button doesn't respond. -- https://cloudup.com/ipgHPwU2lMh
I can run the javascript from the browser console, but it doesn't seem to load into the page from any other location, and just putting a script tag in the footer does not work either.
I have read through the docs page about JS Resources -- https://docs.miva.com/how-to-guides/...set-management
I have an inline script that uses jQuery
Code:
$(document).ready(function () { $('button.search-jump').click(function () { window.location.hash = 'top'; $('input[name=Search]').focus(); return false; }); });
Assigned to a page -- https://cloudup.com/iAzg4GNigSN
Assigned to a resource group -- https://cloudup.com/i4FCVzJ5gN9
Added a mvt tag to the footer section of the page
Code:
<mvt:item name="foot_tag" param="search-focus" />
But when I load the page, the button doesn't respond. -- https://cloudup.com/ipgHPwU2lMh
I can run the javascript from the browser console, but it doesn't seem to load into the page from any other location, and just putting a script tag in the footer does not work either.
Comment