Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Passing data back to calling page

by ww (Archbishop)
on Oct 20, 2009 at 01:48 UTC ( #802132=note: print w/replies, xml ) Need Help??


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).

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://802132]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2022-08-16 08:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?