I don't understand your problem very well... Do you have a problem
refreshing the post? As far as I understand, you have write your own ajax
call to update the stuff in your page...

You could try someting like that in your view (read about web2py LOAD() and
component) :

# Your insert form
{{=form}}

{{=LOAD(..., yourFunctionThatListThePost, ...)}}

You can then in you main function/page calling a refresh of you component
like that :

if form.accepts(request.vars, session):
    ...
    response.js="web2py_component('%s','two');" %
URL('yourController','yourFunctionThatListThePost', args='ifRequired')


About web2py_component :

https://groups.google.com/d/msg/web2py/RSDIwe8BDxA/chcikCg0RpkJ


Hope it helps!

Richard


On Thu, Feb 28, 2013 at 1:30 PM, Riccardo C <[email protected]> wrote:

> Good evening,
>
> I am trying to do a very simple 'twitter like' message board with the
> simple aim to learn to program and get used to web2py framework.
> The problem is that I decided (I don't know if it is the best choice) to
> use one single table for both the new messages and the answers.
>
> What I do is showing on top of the index.html page, the form to introduce
> new messages and below all the new messages (without the answers) followed
> by a link associated with a ajax callback (replies.html).
> This second function return to me all, if any, messages associated to
> 'main text' AND a form that is generated from the same table with the
> refSms field set (and not showed) to the id of the main message.
>
> What happens? when I reply to a message and I click on submit the page
> refresh without insert in the db the new row. Can someone help me to *
> understand* what is wrong?
>
> Thanks
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to