I asked that question about PHP breaking. I need stop execution of php process thread, while javascript performs get variable value operation (the code is generating by php).
Example:
<?php
print get("prompt('put your name here');");
// this will generate $.ajax( ... data: { 'return':prompt('put your name') } ... )
?>
the PHP function ''get'' must print javascript code (return headers and content), but don't stop execution of php. He must watching a result of function from browser. (via ajax return).
How i can stop php execution with TEMPORARY output and returning query result after php code complete. Or... advice me any solution of this problem.
(I need get prompt dialog result synchronously)
Thanks!