*i've been wondering if webpy can use XMLHttpRequest - we need a search
function on webpy.org - i do not see anything like this in the site (
XMLHttpRequest
*-----------------------
Visit
http://www.superantispyware.com/superantispyware.html?rid=3971 Remove All
The Spyware - Not Just The Easy Ones!
http://1-4-u.info | Don't send insanely long links!
Need a Pick-Me-Up? http://quotes.feedtheguru.com



On Mon, Jul 5, 2010 at 1:10 AM, Primoz Anzur <[email protected]> wrote:

> Sounds like a job for XMLHttpRequest (or AJAX; whichever you prefer...)
>
>
> On Thu, Jul 1, 2010 at 2:28 AM, Dave Schaefer <[email protected]>wrote:
>
>> Hey list,
>>
>> Is it possible in web.py to draw a web page, perform some
>> computations, and then redraw the same page? Say I have the following
>> scenario:
>>
>> 1. A user logs in for the first time
>> 2. Draw a page that says "Hi! Looks like you're new. Please wait while
>> we set up your account..."
>> 3. Create some database entries and do some computations behind the scenes
>> 4. Re-draw the page so it says "Done! Welcome. What's next?", and has
>> the main site interface.
>>
>>
>> Is this possible in web.py? I'm trying to do this on the same page
>> without redirecting to a 'setup' URL and then back, but I suppose I
>> could do the redirects if necessary. I have tried making some calls to
>> 'print render.setup()', but this only seems to output the template to
>> the console, not to the web page. Is it possible to do this within one
>> GET() function? Does this require putting the calculations and re-draw
>> on a separate thread?
>>
>> I am also wondering: does web.py only draw the web page when the GET
>> or POST function finally returns? I see in some old mailing list
>> discussions people call 'print render.foo()', but this does not appear
>> to actually draw to the web page (unless I'm doing something wrong?).
>>
>> Thanks, let me know.
>> Dave
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "web.py" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected] <webpy%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/webpy?hl=en.
>>
>>
>
>
> --
> http://www.wolfhowlmedia.com
>
>  --
> You received this message because you are subscribed to the Google Groups
> "web.py" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected] <webpy%[email protected]>.
> For more options, visit this group at
> http://groups.google.com/group/webpy?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/webpy?hl=en.

Reply via email to