Sorry i'm not clear! I'm trying to break up a reporting site and my
initial idea was to use several LOAD components where in the past i was
using ajax calls. I like the component framework as it seems i can return
HTML templates... it just feels cleaner.
I have this component within the form, but i could keep all the components
outside the form if that is required to have them passed to their
corresponding controller.
Another quick question on components. Is there a way to wait for them to
be loaded until called upon or must they be all loaded on the initial page
load?
Thank you for your help
Jason
On Sunday, December 6, 2015 at 3:45:50 PM UTC-5, Massimo Di Pierro wrote:
>
> Not sure what you are trying to do. could you explain again? Why do you
> have LOAD inside a form?
>
> On Friday, 4 December 2015 18:00:09 UTC-6, Jason Solack wrote:
>>
>> Hello all, i have this view:
>>
>> <form name='test' id='test'>
>> <input type='checkbox' id='filter_1' value='1'><label
>> for='filter_1'>Test me</label>
>> <div>
>> {{=LOAD('chart','test.load',ajax=True, target='test_div', )}}
>> </div>
>>
>> <button id='try' type='button'>Test this out</button>
>>
>> <script>
>> $('#try').click(function(){
>> jQuery('#test_div').get(0).reload()
>> });
>> </script>
>> </form>
>>
>>
>> and i'm trying to submit that for when reloading my "test.load"...
>>
>> here's the controller:
>>
>> def test():
>> print request.vars
>> ....
>>
>>
>> when i print those request.vars i'm just seeing empty storage. Is there
>> something else i need to do to submit the form when reloading like this?
>>
>> Thank you
>>
>> Jason
>>
>
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.