[web2py] Why is my code not working? What correction has to be made?

2016-06-10 Thread Steve Joe
in .load file: {{for i in range(0,3):}} {{for j in range(0,3):}} {{idd=str(i+1)+str(j+1)}} {{=l[i][j]}} {{pass}} {{pass}} function change(id) { ajax('{{=URL('default','deciser')}}'+'?at='+id,[],id); } def deciser(): return request.vars.at def

[web2py] Re: Why is my code not working? What correction has to be made?

2016-06-10 Thread Anthony
In the browser network tab, what's happening with the Ajax requests? Are they being sent as expected, and if so, what response is returned? On Friday, June 10, 2016 at 8:14:55 AM UTC-4, Steve Joe wrote: > > in .load file: > {{for i in range(0,3):}} > {{for j in range(0,3):}} > {{idd=str(i+1)+str(

[web2py] Re: How to handle dynamic forms?

2016-06-10 Thread desta
Thank you both. So let's assume that I designed the dynamic form using only jQuery and HTML and I have a submit button that POSTs the form to a controller. How do I process that on the controller, since the form was not created with web2py tools (FORM, SQLFORM etc)? On Friday, June 10, 2016 at

[web2py] Re: How to handle dynamic forms?

2016-06-10 Thread Anthony
On Friday, June 10, 2016 at 11:28:15 AM UTC-4, desta wrote: > > Thank you both. So let's assume that I designed the dynamic form using > only jQuery and HTML and I have a submit button that POSTs the form to a > controller. How do I process that on the controller, since the form was not > create

[web2py] Re: how to format JSON data?

2016-06-10 Thread Alex Glaros
am almost there... need little more advice. How to pass controller data to a javascript var? here is the original example I copied from, which uses a text file as source. Works perfect. // Initialize Fancytree $("#alexTree").fancytree({ checkbox: true, selectMode: 3, source: {url: "test-issue

[web2py] Re: how to format JSON data?

2016-06-10 Thread Anthony
> > var AlexTreeData = $([{{=XML(json_list)}}]); > Why are you putting it inside an array inside a jQuery selector? And how would creating a variable make a difference -- a variable is just a pointer to the data object? Anyway, the problem appears to be that your data do not comply with th

[web2py] Re: Python Social Auth - example site working with downlevel version of PSA

2016-06-10 Thread Donald McClymont
I have now forked and pruned w2p-social-auth at the following: https://github.com/DonaldMcC/w2p-social-auth basically only two changes of substance: 1 It now uses appconfig to store the keys in so you will need to be on a fairly recent web2py if you want to use this approach - alternatively j

[web2py] Re: How to handle dynamic forms?

2016-06-10 Thread desta
Thank Anthony. In the same context, how can I handle file uploads? On Friday, June 10, 2016 at 6:59:40 PM UTC+3, Anthony wrote: > > On Friday, June 10, 2016 at 11:28:15 AM UTC-4, desta wrote: >> >> Thank you both. So let's assume that I designed the dynamic form using >> only jQuery and HTML and

[web2py] Re: How to increase the number of open forms that can be submitted (from 10) ?

2016-06-10 Thread Robert Pates
Well, Thanks Anthony and Leonel for excellent suggestions -- The issue went away when I ensure that each of the 16 forms generated had a unique formname value. However, I spent some time trying to combine this with Leonel's suggestion to use ajax (with LOAD= ?). But didn't manage to figure that

[web2py] Re: How to handle dynamic forms?

2016-06-10 Thread Anthony
On Friday, June 10, 2016 at 4:57:02 PM UTC-4, desta wrote: > > Thank Anthony. > > In the same context, how can I handle file uploads? > The file will also be in request.post_vars (as a cgi.FieldStorage object). I think you should be able to pass it directly to the DAL .insert() method as the val

[web2py] Jquery dropdown

2016-06-10 Thread Jeff Riley
Hello all. I am trying to get Jquery to work on a dropdown. I have the tax payer example from the book working just fine. if(jQuery('#taxpayer_married').prop('checked')) But when I try to get the text of my dropdown it is not seeing it. Do I have something wrong in my syntax? if(jQuery('#