[web2py] Re: Submit button inactive after displaying pdf-file with return response.stream(...

2015-11-09 Thread Anthony
> > What do you mean with bei -The code isn't quit right-. > I don't have get_countries as a component inside print_countries as far as > i know. > Yes, the LOAD() helper creates a component. In your print_countries view file, you have this line: {{=LOAD('default','get_countriespdf.load',aja

[web2py] Re: Submit button inactive after displaying pdf-file with return response.stream(...

2015-11-09 Thread Karl Florian
Hi Anthony, the form.process(session=None) solution solved my submit button Problem! What do you mean with bei -The code isn't quit right-. I don't have get_countries as a component inside print_countries as far as i know. Do i have to make a view file for the get_countries function? I am new t

[web2py] Re: Submit button inactive after displaying pdf-file with return response.stream(...

2015-11-09 Thread Anthony
On Monday, November 9, 2015 at 3:16:46 AM UTC-5, Karl Florian wrote: > > Thank you for your very good suggestions. > Here is what i tried: > Putting the script into my print_countries view worked good. > The only Thing that bothered me was that i had to click the submit Button > twice. > I see th

[web2py] Re: Submit button inactive after displaying pdf-file with return response.stream(...

2015-11-09 Thread Karl Florian
Thank you for your very good suggestions. Here is what i tried: Putting the script into my print_countries view worked good. The only Thing that bothered me was that i had to click the submit Button twice. The Problems i had using your alternative solution are best explained in my attachment. Tha

[web2py] Re: Submit button inactive after displaying pdf-file with return response.stream(...

2015-11-07 Thread Anthony
The problem is that web2py.js automatically disables the submit buttons on forms after clicking, but it does not re-enable them unless the form is submitted via Ajax (under the assumption that a non-Ajax form submission will result in a new page being loaded in the browser, making it unnecessar

[web2py] Re: Submit button inactive after displaying pdf-file with return response.stream(...

2015-11-07 Thread Karl Florian
Hi, maybe some Pictures can demonstrate what i mean.The source code is also attached: This excample is of my Countries Report.

[web2py] Re: Submit button inactive after displaying pdf-file with return response.stream(...

2015-11-06 Thread Anthony
Also, dict() is for creating a dictionary -- there is no reason to do dict(redirect(...)). Also, you do not return a redirect() -- you simply call it, and it immediately raises an HTTP exception. Anthony On Friday, November 6, 2015 at 1:50:15 PM UTC-5, Dave S wrote: > > > > On Friday, November

[web2py] Re: Submit button inactive after displaying pdf-file with return response.stream(...

2015-11-06 Thread Dave S
On Friday, November 6, 2015 at 9:33:47 AM UTC-8, Karl Florian wrote: > > *Sorry everybody but i need your help again.* > > Here is my code: > > def languages_pedit(): > [...] > > > * #I tried this mk_pdffile(pdffile,'languages.pdf') but it did not work* > > def mk_pdffile(pdffile,pdfname