title: Knockout.js - javascript function on data-bind
body: <p>Is there a way i can call JavaScript function on data-bind like this:</p>
  
  <pre><code>&lt;span id="lblSomePropVal" data-bind="text: MySomeFunction(SomeProperty())" &gt;&lt;/span&gt;
  </code></pre>
  
  <p>What i am trying to do is call MySomeFunction with the value of SomeProperty of my viewmodel. My SomeFunction will return some text based on value passed and that will be displayed in the span lblSomePropVal.</p>
  
  <p>I tried it the way i have written in the example but it throws binding error.</p>
  
  <p>Am i missing something here or is there any other way of doing this?</p>
  
  <p>This is the error i am getting:</p>
  
  <pre><code>Microsoft JScript runtime error: Unable to parse bindings.
  Message: [object Error];
  Bindings value: text: MySomeFunction(SomeProperty())
  </code></pre>