Jump to content

Jquery not working in my site please help me


Recommended Posts

Hi Sudhaker, I was able to retrieve this.

 

"Unsafe JavaScript attempt to access frame with URL http://hostedlocally.com/demo/leep/#soundcloud from frame with URL https://w.soundcloud.com/player/?url=http%3A%2F%2Fapi.soundcloud.com%2Fusers%2F227750. The frame requesting access has a protocol of 'https', the frame being accessed has a protocol of 'http'. Protocols must match."

 

This may be an SSL issue. Could you exlpain your problem in more detail? Thank you!

Link to comment
Share on other sites

<script src="http://code.jquery.com/jquery-latest.min.js" language="text/javascript"></script>

 

i can include file in header .tpl

 

next i can write simple code

 

<script type="text/javascript">

$(document).ready(function(){

 

alert("test");

});

});

</script>

 

 

not working

 

and also write

 

 

<script type="text/javascript">

jQuery(document).ready(function(){

 

alert("test");

});

});

</script>

Edited by sudhakar1209 (see edit history)
Link to comment
Share on other sites

I tested your site and Jquery is loaded, you can test it by typing $ in the console log.

also you tested with:

$(document).ready(function(){

alert("test");

});

});

 

By with JQuery you have the $ mark as document ready so you can just type:

$(function(){

alert("test");

});

Link to comment
Share on other sites

×
×
  • Create New...