define page search(query : String) {
  var searchTermsInJS:String;
  init{
    searchTermsInJS := query;
  }
  main()
  define localBody(){
    JSScriptVar(searchTermsInJS)
  }
}

define JSScriptVar(query:String){
  init{
   log(s); // incorrectly shows ""
  }
  <script>
    var searchterms = ~s;
  </script>
}
Submitted by Danny Groenewegen on 18 June 2010 at 13:23

Log in to post comments