- Posts: 11
- Thank you received: 0
jQuery library
-
Cegi
Inactive member - Topic Author
- New Member
Less
More
11 years 1 month ago #34917
by Cegi
jQuery library was created by Cegi
Hi All,
can anyone know how to make a template to handle jQuery library ??
I using K2 and Simple Image Gallery plugin and it is better looks when jQuery libraries are ON.
Thanks for help.
can anyone know how to make a template to handle jQuery library ??
I using K2 and Simple Image Gallery plugin and it is better looks when jQuery libraries are ON.
Thanks for help.
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
11 years 1 month ago #34924
by ivan.milic
Replied by ivan.milic on topic jQuery library
Template already has jQuery and heavily depends on it. Problem may arise if you have multiple jquery references, but components that use it often offer option to turn it off on. When you look at your page source there should be one and only one jquery reference before any other thing that uses it.
Please Log in to join the conversation.
-
Cegi
Inactive member - Topic Author
- New Member
Less
More
- Posts: 11
- Thank you received: 0
11 years 1 month ago #34956
by Cegi
Ok, but if this theme has include jquery then why when i put on some article and there i gallery by simple image gallery plugin link :
CLICK when you pun photo to full screen it cant change to another by arrows...
this arrow should be show on left and right side of full screen photo, on other my site which is also on joomla but other theme the same gallery is working fine...
there is some problem with this jQuery.
Replied by Cegi on topic jQuery library
ivan.milic wrote: Template already has jQuery and heavily depends on it. Problem may arise if you have multiple jquery references, but components that use it often offer option to turn it off on. When you look at your page source there should be one and only one jquery reference before any other thing that uses it.
Ok, but if this theme has include jquery then why when i put on some article and there i gallery by simple image gallery plugin link :
CLICK when you pun photo to full screen it cant change to another by arrows...
this arrow should be show on left and right side of full screen photo, on other my site which is also on joomla but other theme the same gallery is working fine...
there is some problem with this jQuery.
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
11 years 1 month ago #34960
by ivan.milic
Replied by ivan.milic on topic jQuery library
There is no script error except that maybe that component requires newer jquery.
In index.php of template you have this two lines:
<script type="text/javascript" src=" ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js ">
<script type="text/javascript" src=" ajax.googleapis.com/ajax/libs/jqueryui/1.8.23/jquery-ui.min.js ">
you can consult that component provider to tell you if it requires jquery newer than 1.8.3 and if yes change libraries url to point to newer ones.
In index.php of template you have this two lines:
<script type="text/javascript" src=" ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js ">
<script type="text/javascript" src=" ajax.googleapis.com/ajax/libs/jqueryui/1.8.23/jquery-ui.min.js ">
you can consult that component provider to tell you if it requires jquery newer than 1.8.3 and if yes change libraries url to point to newer ones.
Please Log in to join the conversation.
-
Cegi
Inactive member - Topic Author
- New Member
Less
More
- Posts: 11
- Thank you received: 0
11 years 1 month ago - 11 years 1 month ago #34966
by Cegi
problem with jquery is when i put on jquery on simple image gallery then i have somethling like in attached file
i do not know how to fix it...
this menu will normal show when i put off jquery on K2 and on simple image gallery...
thats why i think that the problem i somewere here in this jquery....
and navigation arrows are unvisible...
like here:
Replied by Cegi on topic jQuery library
it is not a problem with version... simple image gallery is working also on lower versions than you write...you can consult that component provider to tell you if it requires jquery newer than 1.8.3 and if yes change libraries url to point to newer ones.
problem with jquery is when i put on jquery on simple image gallery then i have somethling like in attached file
i do not know how to fix it...
this menu will normal show when i put off jquery on K2 and on simple image gallery...
thats why i think that the problem i somewere here in this jquery....
and navigation arrows are unvisible...
like here:
Last edit: 11 years 1 month ago by Cegi.
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
11 years 1 month ago #34978
by ivan.milic
Replied by ivan.milic on topic jQuery library
So general rule for jquery is that needs to be referenced once and only once on page before any other thing that use it. You can check that using "View Source".
Reference that comes form template is in index.php of template :
So you need to make sure rule I told you is respected on each page.
I would tell you to remove and turn off jQuery in all of your extensions becuse you have it in template index.php but again you can do it whatever way just make sure that is "referenced once and only once before any thing that uses it"
Reference that comes form template is in index.php of template :
Code:
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.23/jquery-ui.min.js"></script>
<script type="text/javascript">
jQuery.noConflict();
</script>
So you need to make sure rule I told you is respected on each page.
I would tell you to remove and turn off jQuery in all of your extensions becuse you have it in template index.php but again you can do it whatever way just make sure that is "referenced once and only once before any thing that uses it"
Please Log in to join the conversation.
Time to create page: 0.158 seconds