Jump to content

Recommended Posts

Posted
Hello. i have a very weird error in jQuery. this is the message in chrome's console:


i can see jQuery is being loaded properly, because this works, showing the expected alert box. But what on earth are those files? And "ui-bg_glass" seems to be a jQueryUI file, which i'm not using! 



<script type="text/javascript">
          $(document).ready(function($){
              alert("message");
          });
</script>


and i'm not calling other jquery scripts. it happens with any version i try to run (one at a time, of course)

calling 2.1.1 with the CDN



<script src="//code.jquery.com/jquery-2.1.1.min.js"></script>


calling 1.11.0 with the CDN



<script src="//code.jquery.com/jquery-1.11.0.min.js"></script>


calling 1.11.1 locally



<script src="http://localhost/clientes/promundi/site/v4_pw/site/site/templates/promundi/js/jquery-1.11.1.min.js"></script>


calling 2.1.1 locally



<script src="http://localhost/clientes/promundi/site/v4_pw/site/site/templates/promundi/js/jquery-2.1.1.min.js"></script>


I'm not sure if this is a processwire issue, but i don't know where else to look for

any ideas?

Posted

i have tagged this with carrousel and slideshow, because that was the initial problem i had. But while debugging, i'v seen that even the simplest jQuery is affected. And then forgot to remove the tags

Posted

So the resolution was: create a new barebones page, and line by line add the code again. I have no idea of what was the cause, but its working

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...