I am trying to pass a value from Callserver code back to formAPI, I am encountering a js error when i try to access/send the perl variable
Call Server Code
....
Perl code
...
my $result=12345;
print <
Content-type: text/html; charset=utf-8
<script language="javascript">
var api = parent.getScriptFrame();
var test="$result";
api.setIdCallback(test);
</script>
END
};
no error when i do so
....
Perl code
...
print <
Content-type: text/html; charset=utf-8
<script language="javascript">
var api = parent.getScriptFrame();
var test="1234567";
api.setIdCallback(test);
</script>
END
};
FormAPI code
function setIdCallback(value){
alert("In Callback Sub routine");
alert("value");
IWDatacapture.getItem("/rootpath/subpath").setValue(value);
}
JS error on bottom of the DataCapture
Error: Expected ';'
Code 0
I am able to sucessfully pass a static value though, how can i access the perl variable in callserver code without the js error
ENV: Interwoven TeamSite 6.7.2 Service Pack 1, RHEL