jquery

Permalink
HEllo.
i'm a newbie to c5 and a novice at webdevelopment. i tried to import jquery and a scrollfollow function into my default.php file but as fast as i call a function to my jquery files the editing of c5 goes away and the jquery function does not work. why is that? i attach my html file if someone wants to take a look. its when i call this funktion: $( document ).ready( function () it doesent work.

i had to zip my php file to be able to attach it.

1 Attachment

 
beeman89045 replied on at Permalink Reply
I would bet it's a conflict as C5 adds the jQuery references by default. You should see the jQuery libs loaded if you just use one of the many available templates and "view source" in FF. The C5 crew loads a bunch of jQuery stuff.

You can use document.ready then in your SCRIPT section (or anywhere else JS is allowed) without having to make an explicit reference to jQuery in your template file.
bcorn replied on at Permalink Reply
ok thanks! i´ll try to remove my import of jquery files to see if that helps. //bcorn