There you go folks…I’m no JS / AJAX expert (or even a novice) but that’s what he’s after.
Over to you.
Thank you both for clear that out.
I assume I’ve got your point there. $.load() should be what you are looking for.
[jQuery API – $.load](http://api.jquery.com/load/)
Also, check out this screen cast from chris:
[ AJAXing a WordPress theme](http://css-tricks.com/video-screencasts/81-ajaxing-a-wordpress-theme/)
Just register on the tab-button click event and load the content from another URL.
This reply has been reported for inappropriate content.
Like this, http://codepen.io/andyunleashed/pen/gEJdf
Oh, and you should be aware that your content won’t be visible to SEO bots unless it’s in a permitted subdirectory.
Ok, that’s a start. So I can get the HTML code with get() and when the click occurs I can use append() to insert it. I just need a function to remove HTML to achieve what I want.
I think remove() will do it
Is there a way to have a callback when the stuff inserted with append finishes loading?
You must be logged in to reply to this topic.
Search for Stuff
Browse the Archives
Get the Newsletter
... or get the RSS feed