in reply to Passing data back to calling page
Actually, you can do pretty close to what you ask without using AJAX or similar... so long as you're not concerned about the change in the filename/URL.
If that's so, simply include the original renderable content of index.html, from immediately after the <body> tag to just before the </body> tag, replacing the input form with the an appropriately formatted section to render the "answer."
This has some drawbacks, particularly if your original page is very large, but it also has the advantage of sidestepping problems for the visitor who chooses to browse with javascript disabled and it will give the visitor the impression that s/he is still on the same page (except for the contents of the address bar).
|
|---|