Home
TeamSite
TeamSite, LiveSite and OpenDeploy
sanity check
Andy Knipp
I have a DCR where I select Part number from a list, will read a file from the TS server, and use FormAPI
to set some appropriate values.
So I will have, on the change event of PartNumber, a call server method (passing the filename) to the TS server,
which is a perl script that will calculate the data needed, and finish something like this:
$ret_val= <<EOF
<html>
<head>
<script language="javascript">
// Get handle to the FormAPI/userscript frame.
api = parent.getScriptFrame();
// Set the city and state.
api.IWDatacapture.getItem("/city").setValue("Sunnyvale");
api.IWDatacapture.getItem("/state").setValue("CA");
</script>
</head>
<body>
</body>
</html>
EOF
return($ret_val);
Is this how I pass data back to JS from Perl ?
TIA
Andy
Find more posts tagged with
Comments
There are no comments yet