Re: [web2py] Hide flash message after some elapsed time instead of on click

2016-10-24 Thread Marc Smith
tober 18, 2016 at 9:35:30 AM UTC-4, Marc Smith wrote: >> >> Hi, >> >> I'm relatively new to JS but the strange quote character at the >> beginning (I thought it was a back-tick, but doesn't appear it is) and >> single quote at the end in that line don'

Re: [web2py] Hide flash message after some elapsed time instead of on click

2016-10-18 Thread Marc Smith
Hi, I'm relatively new to JS but the strange quote character at the beginning (I thought it was a back-tick, but doesn't appear it is) and single quote at the end in that line don't look right to me -- is that correct? I tried the code with Jim's change of using ".w2p_flash" but it still doesn't w

Re: [web2py] Restricting Access by IP

2016-07-07 Thread Marc Smith
12:14 PM, hafte agebash wrote: > tank you!! > but i need to do with augmented traffic control simulation tool,and it needs > some requirements django1.7 and python,so couldn't install django and atc > tool > > On Tue, Jul 5, 2016 at 1:09 PM, Marc Smith wrote: >> >&g

[web2py] Restricting Access by IP

2016-07-05 Thread Marc Smith
Hi, I have a web2py app that is hosted on PythonAnywhere. I'd like to restrict access to the "admin" application and the "appadmin" page of my app by IP address. Ideally, I'd like to return a 404 to anyone that doesn't match one or more IP addresses. Is this possible using the global routes.py? O

Re: [web2py] using routes_onerror

2011-03-13 Thread Marc Smith
I am also experiencing this "issue". I see this in routes.example.py: --snip-- # In the event that the error-handling page itself returns an error, web2py will # fall back to its old static responses. You can customize them here. # ErrorMessageTicket takes a string format dictionary containing (o

[web2py] Re: bug & fix - invalid form traps if ajax redirect via web2py_ajax_page

2011-02-18 Thread Marc Smith
Doing what Carlos describes above also fixes my LOAD + component + form issue described here: http://groups.google.com/group/web2py/browse_thread/thread/378d78ab4a47ed6d/41de5a2254a07508 --Marc On Feb 15, 2:22 pm, Jonathan Lundell wrote: > On Feb 15, 2011, at 9:57 AM, Carlos wrote: > > > One ch

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

2011-02-18 Thread Marc Smith
ms or anything else? Thanks! --Marc On Fri, Feb 18, 2011 at 12:48 PM, Martín Mulone wrote: >> This seems to create a second LOAD component inside the first DIV, so >> not quite what I'm looking for. > > You are right my bad, let me think about it. > 2011/2/18 Marc Sm

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

2011-02-18 Thread Marc Smith
ywiz) > if form.accepts(request.vars, session): >    response.flash = 'form submitted' >    form = LOAD('default','wizard.load', vars={'page': 2}, ajax=True) > return dict(form=form) This seems to create a second LOAD component inside the fir

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

2011-02-18 Thread Marc Smith
> controller/default.py > > def wizard(): > >if request.vars.page==1: > >content='blabla' > >elif request.vars.page==2: > >content='blabla page2' > >return dict(content) > > > 2011/2/17 Marc Smith >

Re: [web2py] LOAD Component + Multiple Forms

2011-02-17 Thread Marc Smith
I use a two-way SMS service from CDYNE and RESTful web API to send/receive. --Marc On Thu, Feb 17, 2011 at 4:42 PM, Ovidio Marinho wrote: > what makes your application, it sends sms:? you can share this application?, > I need an application that sends SMS. > > 2011/2/15 Marc Smi

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

2011-02-17 Thread Marc Smith
n't using the LOAD feature for the wizard (the browser goes to a new URL for each step). Maybe the LOAD / AJAX stuff just doesn't work with multiple steps / forms like I'm trying to do? Has anyone ever gotten it to work this way? Its not the end of the world, I can have the wizard go

[web2py] Re: LOAD Component + Multiple Forms

2011-02-17 Thread Marc Smith
ayed and when I fill in the field and hit submit, it takes me back to the first form? Is this proper use of the LOAD component, or should I not use my forms with this function? --Marc On Tue, Feb 15, 2011 at 2:50 PM, Marc Smith wrote: > Hi, > > I am having trouble using the LOAD component

[web2py] LOAD Component + Multiple Forms

2011-02-15 Thread Marc Smith
Hi, I am having trouble using the LOAD component with forms to produce a "wizard" style multiple form type setup (eg, enter information on one "screen", then go to the next, etc.). If I move my mobile_verify.load file to mobile_verify.html and visit http://localhost/myapp/default/mobile_verify/on