title: Using ExpressJS on Server and JQuery on Client static links
body: <p>just started learning jQuery and node.js, and it worked really good. But at this point I found a problem which could not be solved by googleing again and again. It might be very simple, but can't find out...</p>
  
  <p>So here it is:</p>
  
  <p>I am writing my Server in ExpressJS/Node.JS, serving web pages like this to the server:</p>
  
  <pre><code>router.get("/", function(req, res) {
   res.sendFile(path + "index.html");
  });
  </code></pre>
  
  <p>On the client side I request pages with jQuery like this</p>
  
  <pre><code>&lt;li&gt;&lt;a id="show-catchem" href="#page-content"&gt;CatchEm&lt;/a&gt;&lt;/li&gt;
  </code></pre>
  
  <p>and </p>
  
  <pre><code>$("#show-catchem").click(
    function() {
      $("#content-page").load("html/catchem.html #page-content");
    }
  );
  </code></pre>
  
  <p>This works great, but I'd like to do that jQuery stuff too, when clicking on a link somewhere else like a Link on Facebook:</p>
  
  <p>www.homepage.com/catchem</p>
  
  <p>I can answer this with ExpressJS, but have no idea how to insert it on the Client side into the main page.</p>
  
  <p>Hope I made it clear,
  cheers :)</p>