Hi Vala,
To reconfirm: Script1 calls script2 with parameters. Script2 passes data back to script1 which then formats and displays this data?
How about the following:
script1.php:
<!--Pass the parameter 'mypar1' to script2-->
<script language='javascript' src='script2.php?mypar1=Google'>
</script>
<!-- script2 sets the results variable 'returndata'-->
<script language='javascript'>
alert (returndata);
</script>
script2.php:
<?
// Input: myvar1
// Output: resultvar
echo "returndata='This was the parameter passed: $mypar1';\r";
?>
You can always pass the SID as parameter to script2 if necessary, of course.
Cheers,
David