0

I want to show the processing information or log in the original page when the submitted request is being served until it completes the execution. I thought it would be meaningful to the user to know what is happening behind the request.

I don't find a clue to do so though, can you guys help me out as how people are doing like this one below one - for your reference

http://www.xml-sitemaps.com/

1
  • Could you give more details? What server environment are you running in? CGI, Django, Pylons? Commented Nov 21, 2008 at 10:51

2 Answers 2

1

there are two ways i could imagine handling this:

  1. have your backend script (python) output the information of a long process to a log of some sort (text file, database, session, etc...) and then have javascript grab the information via ajax and update the current page.

  2. same deal, but instead of ajax just have a meta refresh on the page which would grab the latest updated information.

Sign up to request clarification or add additional context in comments.

1 Comment

Those are the two ways: Javascript and refresh. Download the javascript libraries from www.xml-sitemaps.com and see what it does.
0

you may use python threading, which will create a new process in background

and display your messages on that thread

hope it helps ;)

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.