To allow a web page to call a function from your model, make the following changes to the page:
The following code snippets reflect these steps:
<script>
var play = new WebObject;
bind(window.play, 'CDPlayer[0]::playCD');
</script>
<p><a href="javascript:play.set();"></a></p>
In this example, CDPLayer[0] represents the relevant object in the model, and playCD is the name of the operation that is to be called.
