How do I call an SSJS method with parameters from javascript
I have a url containing a hash e.g http://www.acme.com/home.xsp#key=1234 When the url above loads in the browser I need to call a serverside javascript based on the value in the hash. I have found a few ways of retriving the hash client side like this var key = getHashUrlVars()["key"]; so I have the key available in my client side script in the onclientload event. So in the same onClientLoad event I now need to call my server side javascript method so I have tried the following '#{javascript:doStuff(key)}' '#{javascript:doStuff(' + key + ')}' ..and a few other ways. but I can't get it to work.