Niphlod ,

Thank you for the support. It appeared that I did not make an ajax call; in 
the controller request.ajax was False. This was because a simple form in a 
view does not generate an ajax call. Is this correct?

    if form1.process(formname='form_one').accepted:
response.js= "web2py_component('%s','graph1')" % URL('default','graph1') 

So now I can generate successive forms and graphs. 

On Monday, August 4, 2014 10:08:37 PM UTC+2, Niphlod wrote:
>
>
>
> On Monday, August 4, 2014 10:06:12 PM UTC+2, Niphlod wrote:
>>
>> too much code will kill you (yep, on the notes of the almighty Queen) ...
>>
>> maybe, but just maybe .... try with $.web2py. instead of $web2py ^_^
>>
>>
> also, $.web2py.component() accepts a string as an url. If you open your 
> console you'll probably see the error involved...
>
> $.web2py.component('url', .....)
>
> to be "valid", needs something like 
>
> response.js= '$web2py.component('"%s"', target="graph1");' % 
> URL('default', 'graph1.load')
>
> notice the red quotes
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to