Are you enjoying the extensions? Did you like the support? Help others decide.

Leave a review

question-circle All my Jquery code will not work

More
10 years 9 months ago #2557 by wzyefd87
All my Jquery code will not work was created by wzyefd87
Hi,
I have a problem after installing the jqueryeasy.
All my Jquery code will not work.
even though the simply code such as:
<script type="text/javascript">

    jQuery(document).ready(function(){
    alert('11111');
}
	    
</script>
.

These codes will work if I disable Jqueryeasy plugin.

Please Log in or Create an account to join the conversation.

More
10 years 9 months ago #2558 by admin
Replied by admin on topic Re: All my Jquery code will not work
Hello,
that is probably a setting issue.
Have you opened your site's source code and checked if the jQuery library is properly loaded by the plugin?
A good way to understand what is going on is to show the report (from the 'other' options tab).
Please provide a valid URL of your site for further inquiries, it will help in finding what is going wrong.

Olivier.

Please Log in or Create an account to join the conversation.

More
10 years 9 months ago - 10 years 9 months ago #2561 by wzyefd87
Replied by wzyefd87 on topic Re: All my Jquery code will not work
Thanks for your replay.
I have upload a test site online.
Please check it on hexu.me/test
user:XXX
password:XXX.
I new a module with flexi custom module on all the pages and place it in debug.
The code:
<script type="text/javascript">
    jQuery(document).ready(function(){
	    alert('111');
    })
</script>
I have found the reason why my jquery code doesn't work.
It caused by the hikashop,but I don;t know how to fix the conflict.
Last edit: 10 years 9 months ago by admin.

Please Log in or Create an account to join the conversation.

More
10 years 9 months ago #2562 by admin
Replied by admin on topic Re: All my Jquery code will not work
Thanks for the info.
Your main issue here is your template... it packages MooTools and jQuery in specific files and it does not allow any changes with the jQuery Easy plugin. This is one case where the template developers optimize their template to the point that you have no choice but use their code. For instance, jQuery is packaged in /test/index.php?jat3action=gzip&amp;jat3type=js&amp;jat3file=t3-assets%2Fjs_95bcd.js with other libraries. If the template does not allow you to disable jQuery from its options, using jQuery Easy is of no use for you, I am afraid. Make sure all extensions you are using have jQuery disabled.

Olivier.

Please Log in or Create an account to join the conversation.

More
10 years 9 months ago #2563 by admin
Replied by admin on topic Re: All my Jquery code will not work
I went to your admin console.
The only way to use jQuery Easy is to actually go to your template's global options and disable Optimize JS altogether.
But then, you loose on this optimization...

Olivier.

Please Log in or Create an account to join the conversation.

More
10 years 9 months ago #2564 by wzyefd87
Replied by wzyefd87 on topic Re: All my Jquery code will not work

admin wrote: I went to your admin console.
The only way to use jQuery Easy is to actually go to your template's global options and disable Optimize JS altogether.
But then, you loose on this optimization...

Is there other plugins for Optimize JS if I disable the Jat3 template's Optimization function?

Please Log in or Create an account to join the conversation.