PDA

View Full Version : Call script section



Grimmbart
August 20th, 2010, 17:44
Hi


In a control, when value changed, i need to call a function wich is in the script section of another control. How can i do thay ? Is it possible ?



<linkednumber name="Control1">
...
<script>
function onValueChanged()
Control2.updateWound();
end
</script>
</linkednumber>


<linkednumber name="Control2">
...
<script>
function updateWound()
...
end
</script>
</linkednumber>

Zeus
August 20th, 2010, 17:48
Try this:



<linkednumber name="Control1">
...
<script>
function onValueChanged()
window.Control2.updateWound();
end
</script>
</linkednumber>


<linkednumber name="Control2">
...
<script>
function updateWound()
...
end
</script>
</linkednumber>

Grimmbart
August 20th, 2010, 17:53
Thank's it's good !!