title: jQuery - Creating a dynamic content loader using $.get()
body: <p>(hello dr.Nick) :) So I posted a question yesterday about a content loader plugin for jQuery I thought I'd use, but didn't get it to work. </p>
  
  <p><a href="https://stackoverflow.com/questions/2469291/jquery-could-use-a-little-help-with-a-content-loader">jQuery - Could use a little help with a content loader</a></p>
  
  <p>Although it works now, I see some disadvantages to it. It requires heaploads of files where the content is in. Since the code essentially picks up the url in the href link and searches that file for a div called <code>#content</code> <br/><br/> What I would really like to do is to collect all of these files into a single file and give each div/container it's unique ID and just pick up the content from those. So i won't need so many separate files laying around. </p>
  
  <p>Nick Craver thought I should use <code>$.get()</code>instead since it's got a descent callback. But I'm not that strong in js at all.. And I don't even know what this means. I'm basically used to Visual Basic and passing of arguments, storing in txt files etc. Which is really not suitable for this purpose.</p>
  
  <p>So what's the "normal" way of doing things like this? I'm pretty sure I'm not the only one who's thought of this right? I basically want to get content from a single php file that contains alot of divs with unique IDs. And without much hassle, fade out the existing content in my main page, pick up the contents from the other file and fade it into my main page. </p>