Home › Forums › JavaScript › Javascript is not running
- This topic is empty.
-
AuthorPosts
-
September 30, 2013 at 4:09 pm #151739Historical Forums UserParticipant
I am in the middle of development and everything related to javascript all of the sudden stopped working.
There are a couple ‘no method’ errors in the console, but I can’t seem to find the root of the problem.My site: http://radiantchurch.info/wordpress/about/
Thanks for all your help!
September 30, 2013 at 4:17 pm #151741AlenParticipantYou are calling fitVids.js and flexslider.js objects but they are not loaded.
September 30, 2013 at 5:03 pm #151747Historical Forums UserParticipantAny idea on why they are not loaded? They are called in my header and show under the sources tab in chrome.
September 30, 2013 at 5:23 pm #151748AlenParticipantYou are using wrong jQuery version.
https://github.com/davatron5000/FitVids.js/blob/master/component.json
Look at the dependencies section
September 30, 2013 at 5:51 pm #151752Historical Forums UserParticipantHmmm didn’t seem to work. I think the problem is broader than that, because nothing related to javascript is working on the site.
Any more ideas?
September 30, 2013 at 6:05 pm #151753__ParticipantI think the problem is broader than that, because nothing related to javascript is working …
When javascript breaks, it stops working.
The two issues Alen mentioned are still present on the page you linked to. Have you tried correcting them?
September 30, 2013 at 6:23 pm #151755Historical Forums UserParticipantYes, I have tried but can’t seem to find the issue.
September 30, 2013 at 6:41 pm #151756AlenParticipantLook at the order in which you are loading the scripts. You are trying to reference something that hasn’t yet been defined.
// snipped code <script src=jquery-1.7.min.js <script src=RadiantChurch.js <script src=jquery.flexslider-min.js <script src=blur.js <script src=jquery.fitvid.js <script src=jquery.transit.min.js
RadiantChurch.js
should be loaded last.September 30, 2013 at 9:06 pm #151759Historical Forums UserParticipantNo dice. Hmmmmm…
September 30, 2013 at 10:17 pm #151765AlenParticipantYou’re missing a
;
on line 52RadiantChurch.js
September 30, 2013 at 10:30 pm #151766Historical Forums UserParticipantStill failing… I am beyond confused.
Thanks for all your help so far!
October 1, 2013 at 1:27 pm #151841AlenParticipantNo problem. Looking at how many scripts you’re loading… Try solving the issue by disabling scripts one by one and see if that helps. Also, you don’t need to call document ready so many times. You can remap jQuery to bang, $ sign.
(function($){ $(document).ready(function (){ /* window size code */ $(element).stuff... /* expand */ $(element).stuff... ... } });
-
AuthorPosts
- The forum ‘JavaScript’ is closed to new topics and replies.