1 Reply Latest reply on Aug 29, 2006 7:16 AM by kglad

    problem with asfunction

      By using the following string:
      s ="<a href=\"asfunction:_root.SearchRelated,res[k].URL\">Related</a><br>";
      I create an hyperlink on the word "Related" that, once clicked, should call the SearchRelated function together with its parameter res[k].URL, which is a variable of a string.
      The problem is that parameter is treated as a string, and not as a variable of a string. So for example if
      res[k].URL = "www.bbc.co.uk";
      function SearchRelated(var)
      textField.text = var;

      once the function SearchRelated(res[k].URL) is called, the output should be
      but instead turns out to be

      How can I solve this?
      thanks in advance