Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'm a developer for a very large real estate plugin and I'm having a lot of trouble with one of our agent sites:

The init methods used to initialize ajax functionality are called using a jQuery(document).ready() handler. However, this doesn't always fire, and it seems to be less dependent on the page contents than the location in the sitemap.

The theme script also uses the same jQuery ready script to run methods, and that works on all pages. This file is included in the header. My file is included in the footer, that jQuery ready script does not load on certain pages.

The site is http://mportlandrealestate.com/. The scripts seem to load on every page but those underneath the Areas and Neighborhoods top level page. Also, Areas and Neighborhoods -> Inner NE and its subpages DO work, but all others do not. If I move a page from the Inner SE tree to be a child of Inner NE it begins to work, with no content changes.

You can tell the scripts are loading through some console.group statements output in the javascript console: lightbox::init, clipboards::init, and ajax::init should all be present if the footer scripts are initializing.

Any ideas? This is baffling me.

share|improve this question
    
Some added clarification: this physical script file loads on every page, its the init methods called in the document ready wrapper that do not. I can manually invoke the init methods in the browser console on pages where they do not automatically fire. –  bhamrick Jan 13 '11 at 21:02
add comment

1 Answer 1

I fixed it by including the JS files in the header, so there's an error in another plugin's JS that's causing the issue.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.