no problem I'll send you this doc.
In general xmpie expect you to give name of the function that you
suppose to call as part of your update value script, and pass value to
uStore using this function.As bill stand there is no need to code it
jast call it.
What you alos need to understand that it is your responsibility to
pass to uStore value for the dial via this fucntion.
The way to pass it, is to write your own function that will be called
lets say on some event like on change .
Now value for you controls you are going to passs using "#DIAL_VALUE#"
So for example if you have an input box it can be :
<script type="text/javascript">
function getValAndPassVal()
{
var myval =document.getElementById("myTextBox").value; // this one
gets value
passValue(myval);
}
</script>
<input id="myTextBox" type="text" onchange="getValAndPassVal()"
value="#DIAL_VALUE#">
Now in this example your call back function is passValue . Than uStore
first will load this script it will pass default value whatever it
finds in the dial setup. Once user will change / input value to this
box onchange event will be fiered and my getValAndPassVal() will be
called .
As you can see I'm getting first new value than I'm calling passValue
to pass it to uStore. If user will move forward and than will go back
uStore will pass via #DIAL_VALUE# already new value.
Obviously if you have more controls and more complex values you'll
have to do it a bit different like :
<script type="text/javascript">
function getValAndPassVal()
{
var myval =document.getElementById("myTextBox").value; // this one
gets value
passValue(myval);
}
function setMyVal(param1)
{
// hide or do something
//set value of all controls
document.getElementById("myTextBox").value = param1;
.....
//
}
</script>
<input id="myTextBox" type="text" onchange="getValAndPassVal()"
value="#DIAL_VALUE#">
<script type="text/javascript">
setMyVal("#DIAL_VALUE#");
</script>
as you can see here I'm calling setMayVal and use uStore
"#DIAL_VALUE#" as a parameter , so my fucntion can alos do something
else , like setup other defaults ..
if you have drop down and than inputbox , but you care about inputbox
value but also need setub correctly dropdown that your value can be
or
"option1;sometext" while option1 can tell what option should be
selected and sometext is a text default for input box. Obviously if
your user will use ; as a text you may be in trouble so you can use
xml to pass multiple values .........
Igor.