I support your idea of supporting raw_input through a pop up. You may run into problems with the browser supporting them. For one thing it will not be the result of a user action. If it isn't an acceptable experience, perhaps a dynamic inline form in the "output"?