Re: [web2py] Ajax return a form but does not write in the db (and default value info)

2013-03-07 Thread Richard Vézina
Could you show more code, controller for both component and the views associated Richard On Wed, Mar 6, 2013 at 4:49 PM, Riccardo C r.ceccare...@gmail.com wrote: Thank you very much, that is exactly what I needed... I didn't know components! I have component related question know. I have

Re: [web2py] Ajax return a form but does not write in the db (and default value info)

2013-03-07 Thread Riccardo C
*index.html* bla bla bla... div class=span12 {{=LOAD('default','maintxt.load',target='chat')}} div id=chat/div bla bla bla... maintxt.load {{=form}} {{for msg in msgList:}} b{{=msg.body}} /b a id=link{{=msg.id}}

Re: [web2py] Ajax return a form but does not write in the db (and default value info)

2013-03-07 Thread Richard Vézina
I get back to you as soon as I can... I a bit busy rigth now. Richard On Thu, Mar 7, 2013 at 12:27 PM, Riccardo C r.ceccare...@gmail.com wrote: *index.html* bla bla bla... div class=span12 {{=LOAD('default','maintxt.load',target='chat')}} div id=chat/div bla bla bla... maintxt.load

Re: [web2py] Ajax return a form but does not write in the db (and default value info)

2013-03-06 Thread Riccardo C
Thank you very much, that is exactly what I needed... I didn't know components! I have component related question know. I have a first component that generate the first form (form1) based on tableA and a second component that list all the post and a second form (form2) generate on the same

[web2py] Ajax return a form but does not write in the db (and default value info)

2013-02-28 Thread Riccardo C
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

Re: [web2py] Ajax return a form but does not write in the db (and default value info)

2013-02-28 Thread Richard Vézina
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

Re: [web2py] Ajax return a form but does not write in the db (and default value info)

2013-02-28 Thread Richard Vézina
Should read : # Your insert form {{=form}} div id=two {{=LOAD(..., yourFunctionThatListThePost, ...)}} /div On Thu, Feb 28, 2013 at 4:47 PM, Richard Vézina ml.richard.vez...@gmail.com wrote: I don't understand your problem very well... Do you have a problem refreshing the post? As far as