dose using jquery work in theme? or at all in concrete5?
Permalink
i have this code:
<script type="text/javascript">
jQuery(document).ready(function () {
$('#FadeSlideShow').cycle({
fx: 'fade',
width: 465,
height: 305
});
});
</script>
the above code changes images something like.
"http://webdesigncom.net/_sites/jsw/"
how do i do it if when i put that code in the theme, the "edit" button "and add" button dose not click in "edit mode" ? . also the image switcher (jquery dose not work) thank you in advance and sorry for the mess . Aryeh
<script type="text/javascript">
jQuery(document).ready(function () {
$('#FadeSlideShow').cycle({
fx: 'fade',
width: 465,
height: 305
});
});
</script>
the above code changes images something like.
"http://webdesigncom.net/_sites/jsw/"
how do i do it if when i put that code in the theme, the "edit" button "and add" button dose not click in "edit mode" ? . also the image switcher (jquery dose not work) thank you in advance and sorry for the mess . Aryeh
jQuery is included by default in concrete5, so using it in a theme should work. The cycle command I think is a plugin though. Make sure you are including the right JavaScript file for that functionality.
i did include the right js file. and the same thing.. it dose not work . any more advice?
Not really. If there are any JavaScript errors post them. Also make sure your theme has a header_required and footer_required element
Sent from my iPhone
Sent from my iPhone
i have them both, and there is no javascript error's at least i don't see them , but when i delete the javascript code i put above it works to click "edit page" and the "add page" button . do i have to look somewhere for the javascript error or dose it show up the same way php works?
seems like this bit of script is doing it
$('#FadeSlideShow').cycle({
any idea's?
$('#FadeSlideShow').cycle({
any idea's?
Try to troubleshoot you scripts with firebug.
i got these errors can you help with them? or at least the ones that matter to fix this error
$(".jewishcontent").tooltip is not a function
[Break On This Error]
height: 305
jewish...ing.com (line 250)
$("#FadeSlideShow").cycle is not a function
[Break On This Error]
height: 305
jewish...ing.com (line 250)
"NetworkError: 404 Not Found -http://jewishstorywriting.com/~jswrite/themes/jsw/files/victorian_l...
victor...nt.woff
"NetworkError: 404 Not Found -http://jewishstorywriting.com/~jswrite/themes/jsw/files/victorian_l...
$(".jewishcontent").tooltip is not a function
[Break On This Error]
height: 305
jewish...ing.com (line 250)
$("#FadeSlideShow").cycle is not a function
[Break On This Error]
height: 305
jewish...ing.com (line 250)
"NetworkError: 404 Not Found -http://jewishstorywriting.com/~jswrite/themes/jsw/files/victorian_l...
victor...nt.woff
"NetworkError: 404 Not Found -http://jewishstorywriting.com/~jswrite/themes/jsw/files/victorian_l...
add your JS under Loader::element('footer_required'); and do NOT include jquery.js
and the reason you are getting those 404s is because they do NOT exist.
and the reason you are getting those 404s is because they do NOT exist.
it works thank you! soo much