ok here is an exampl,
it is my upload script, a combination of php and javascript,
first I add a sid value through php (which I will use it later for identification):
[PHP]
$tmp_sid = md5(uniqid(mt_rand(), true));
$path_to_upload_script .= '?tmp_sid=' . $tmp_sid;
$path_to_ini_status_script .= '?tmp_sid=' . $tmp_sid;
[/PHP]
and the set my variables in javascript
:
- <script language="javascript" type="text/javascript">
-
............ eg:
-
var path_to_ini_status_script = "'.$path_to_ini_status_script.'";
-
...........
-
</script>
and then when I submit the form, the values are used for the process.
so I don't want to load anything, just to have the variable that I set available.
similarly, if lets say that script was only a function which is to do something based on users input,
I just need to find all these already set variables and functions in the response text and have them available in the page where they were loaded to.