title: How do I call an SSJS method with parameters from javascript
body: <p>I have a url containing a hash e.g <a href="http://www.acme.com/home.xsp#key=1234" rel="nofollow">http://www.acme.com/home.xsp#key=1234</a></p>
  
  <p>When the url above loads in the browser I need to call a serverside javascript based on the value in the hash.</p>
  
  <p>I have found a few ways of retriving the hash client side like this</p>
  
  <pre><code>var key = getHashUrlVars()["key"];
  </code></pre>
  
  <p>so I have the key available in my client side script in the onclientload event.</p>
  
  <p>So in the same onClientLoad event I now need to call my server side javascript method so I have tried the following</p>
  
  <pre><code>'#{javascript:doStuff(key)}' 
  '#{javascript:doStuff(' + key + ')}' 
  </code></pre>
  
  <p>..and a few other ways. but I can't get it to work.</p>
  
  <p>maybe there is an XSP command I can use instead? 
  any ideas how to solve this?</p>