[web2py] Re: LOAD Component + Multiple Forms

2011-02-18 Thread Carlos
Hi Marc, I believe my fix does not break anything, but much more testing is certainly required to be sure. If you find problems, please let me know. If there are no problems after testing, I believe this fix should be included in web2py ... Massimo?. https://groups.google.com/forum/?fromgroups#

Re: [web2py] Re: LOAD Component + Multiple Forms

2011-02-18 Thread Marc Smith
Wow! I just found this post: http://groups.google.com/group/web2py/browse_thread/thread/27bf920f49fc8504/510cd7d66f9a4ccb I tried this and it fixes my problem! Carlos: Is this fine to keep the response stuff in there? And to keep the web2py_ajax.html modifications? It won't affect other forms or a

Re: [web2py] Re: LOAD Component + Multiple Forms

2011-02-18 Thread Marc Smith
On Fri, Feb 18, 2011 at 9:46 AM, Martín Mulone wrote: > Ok, I think now I understood. Is a good question. > Try something like this, never do a redirect() after accepts because web2py > do full redirect. I don't know is something like this work: The redirect inside of the LOAD component does seem

Re: [web2py] Re: LOAD Component + Multiple Forms

2011-02-18 Thread Marc Smith
Hi Martín, Yes, that works well for trapping links inside the component, but what about using forms? Have you ever used multiple forms instead of links from one page to another like you are doing below? Thanks, Marc On Fri, Feb 18, 2011 at 5:51 AM, Martín Mulone wrote: > Yes I do all the time

[web2py] Re: LOAD Component + Multiple Forms

2011-02-18 Thread puercoespin
so, only number and provider information needed! Seems easy. Thanks all. On 18 feb, 05:37, Massimo Di Pierro wrote: > mail.send(to=sms_email(number,provider),subject='...',message='...') > > where number is the phone number and provide is the company the number > corresponds to > > On Feb 17, 6

[web2py] Re: LOAD Component + Multiple Forms

2011-02-17 Thread Massimo Di Pierro
mail.send(to=sms_email(number,provider),subject='...',message='...') where number is the phone number and provide is the company the number corresponds to On Feb 17, 6:06 pm, puercoespin wrote: > An exemple, please? > > My mobile phone, 123456789, what's the code for sending a SMS? > > On 17 feb

[web2py] Re: LOAD Component + Multiple Forms

2011-02-17 Thread Anthony
I haven't tried it, but here's my understanding: You can send a text message simply by sending an email -- the email address is of the form [mobile_number]@[provider-specific_email_server]. For example, if the mobile number is 123-456-7890 and the provider is Sprint, you can send an SMS messag

[web2py] Re: LOAD Component + Multiple Forms

2011-02-17 Thread villas
If you are loading separate pages from the same site you may as well redirect. Just use ajax to load small amounts of extra data within a page. Your design, your choice :) Re: SMS. I tried bulksms.com and it seemed really efficient, but I suppose an SMS service is best chosen depending on what

[web2py] Re: LOAD Component + Multiple Forms

2011-02-17 Thread puercoespin
An exemple, please? My mobile phone, 123456789, what's the code for sending a SMS? On 17 feb, 22:46, Massimo Di Pierro wrote: > One solution is to send sms via emails. It is cheap, reliable and does > not rely on third party services: > > web2py/gluon/contrib/sms_utils.py > > On Feb 17, 3:42 pm,

[web2py] Re: LOAD Component + Multiple Forms

2011-02-17 Thread Massimo Di Pierro
One solution is to send sms via emails. It is cheap, reliable and does not rely on third party services: web2py/gluon/contrib/sms_utils.py On Feb 17, 3:42 pm, Ovidio Marinho wrote: > what makes your application, it sends sms:? you can share this application?, > I need an application that sends

Re: [web2py] Re: LOAD Component + Multiple Forms

2011-02-17 Thread Marc Smith
On Thu, Feb 17, 2011 at 1:05 PM, villas wrote: > My first impression was that seem a lot of code in one function. > Maybe better to create some separate functions and redirect depending > on the form no. etc. Sorry -- it started nice, but as I moved and tried different things, it got a bit messy.

[web2py] Re: LOAD Component + Multiple Forms

2011-02-17 Thread villas
My first impression was that seem a lot of code in one function. Maybe better to create some separate functions and redirect depending on the form no. etc. Your other strategy of loading the forms via ajax looks promising, but it looks like it would always load 'one' in the example given: {{=LOAD(

[web2py] Re: LOAD Component + Multiple Forms

2011-02-17 Thread Marc Smith
So, I've been experimenting with this a bit, and if I change the form_name.accepts methods to using arguments like this: form_name.accepts(request.vars, formname='blah1') It acts a bit differently -- first form (one) is displayed and accepted, and then second form (two) is displayed and when I fil