jet71dl
Forum Replies Created
-
Forum: Plugins
In reply to: [CGM Event Calendar] Category Name ChangeNot sure why the plugin name wasn’t put into the title but this is for the:
CGM Event Calendar
Forum: Fixing WordPress
In reply to: Dynamically loaded content via AJAX breaks loading jQuery objects.Thanks for the help, i found that article hard for me to follow as i’m a novice to AJAX and jQuery.
Forum: Fixing WordPress
In reply to: Dynamically loaded content via AJAX breaks loading jQuery objects.I’m creating a theme that uses only the homepage. When a button is clicked, the content for that section is loaded into a div on the homepage via AJAX (script above).
The issue:
All of the .js files are being loaded in the Header on page load. Except for the jQuery which is being loaded with wp_enqueue_script. Because items on the homepage are using the scripts as well.Since the page isn’t refreshing and the content is being loaded into a DIV via AJAX when a button is clicked, i’m guessing, the content that is being loaded in that uses jQuery and other .js files is coming in broken because the .js files have already loaded without that content being on the page.
I need to find a way to “refresh” the already loaded .js files so that the newly loaded content doesn’t come in broken.
Forum: Fixing WordPress
In reply to: Dynamically loaded content via AJAX breaks loading jQuery objects.The way it’s currently set up is that all the .js scripts are in the header to be loaded on page load because items on the home page use them as well.
So by telling the scripts to load when a button is clicked would load them a second time. Would this cause issues?
I have jQuery being loaded the correct way via wp_enqueue_script so i have no clue on how to get that to refresh when the object is clicked.
Forum: Fixing WordPress
In reply to: jQuery enqueue_script breaking jQuery ObjectsThanks for your help! I’ll be sure to condense my ready calls.
I did fix the issue that the Plugin was causing by going into it’s script and deleting the call to load jQuery that it was making.
I probably should of looked for that first!
Forum: Fixing WordPress
In reply to: jQuery enqueue_script breaking jQuery ObjectsOk, i’ve also narrowed it down to a plugin, when I activate it it kills the jQuery objects I have and when I deactivate it they come back to life.
The plugin is Photo Galleria which allows customization to the default WP [gallery] code. So I don’t understand why that would kill the other objects.
Forum: Fixing WordPress
In reply to: jQuery enqueue_script breaking jQuery ObjectsThat’s the thing, it’s not throwing any error messages.
But, you can see it here: http://shanehowell.com/testing/
The large box on top is supposed to have a slideshow going and the thumbnails below that are supposed to be on a single scrollable line with filtering. Plus the background image is brought in by jQuery also, which no longer comes in.
The menu on the side doesn’t use jQuery so it works fine.
Forum: Fixing WordPress
In reply to: jQuery enqueue_script breaking jQuery ObjectsWell, I already have it checking if the document is ready:
$(document).ready(function(){ $('#portfolio-list').filterable(); });But it still doesn’t work. Thoughts?
Even changing it to your suggestion:
jQuery(document).ready(function($){ $('#portfolio-list').filterable(); });Doesn’t work.
Forum: Plugins
In reply to: Plugin searchI suppose i’ll have to hard code it since I can’t seem to find a plugin/widget that does it already!