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

    problem with asfunction

    Antonio_82_
      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";
      and
      function SearchRelated(var)
      {
      textField.text = var;
      }

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

      How can I solve this?
      thanks in advance