When ever you change an option in one of the dropdown filtering options 
above, the attached function runs, which sends two of the built in web2py 
Ajax load function, to two different controllers, and the data is rendered 
back on the page:

   <script type="text/javascript">
                 $(document).ready(function(){
                   $("#filter_options").on('change', function(){
                      platform=$( "#filter_platform" ).val();
                      project=$( "#filter_project" ).val();
                      device=$( "#filter_device" ).val();
                      milestone=$( "#filter_milestone" ).val();
                      env=$( "#filter_env" ).val();
                      url_graphs = 'eco_graph.load?platform=' + platform + 
'&project=' + project + '&device=' + device + '&milestone=' + milestone +
                                                   '&env=' + env;
                      ajax(url_graphs, '', 'visualization');
                      url_tests = 'eco_tests.load?platform=' + platform + 
'&project=' + project + '&device=' + device + '&milestone=' + milestone +
                                                   '&env=' + env;
                      ajax(url_tests, '', 'tests_list')


                  });


                    });
                  </script>




 

On Wednesday, August 6, 2014 8:51:40 PM UTC+3, lyn2py wrote:
>
> Thank you for sharing the short clip!
>
> I was wondering how you did the auto-loading of the content within each 
> drop down menu at the top?
> I always thought that to be difficult and have not ventured far in that 
> area yet. I hope you can share how you did it! Thanks :)
>
> On Wednesday, August 6, 2014 7:23:56 PM UTC+8, Avi A wrote:
>>
>> Hi,
>> I just wanted to share  a short video of an app I made.
>> What it does in short;
>> I do mobile automated tests locally. I use selenium/appium and applitools 
>> (awesome startup) which does screenshots comparison for me and when the 
>> test ends, they send a json with failed/passed counts info.
>> when tests end, I post the data to the web2py app, (post api) where i 
>> save the tests' data, and display it with google visualisation api and 
>> allow saving the results as a report on excel file, for each given 
>> view/filter.
>> Thank you all for the support, special thanks to Anthony and Niplod.
>> http://goo.gl/LOaAhs
>>
>>
>>

-- 
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