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

2016-10-24 Thread Marc Smith
; > > On Tuesday, October 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

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

Re: [web2py] Restricting Access by IP

2016-07-07 Thread Marc Smith
<haftineg...@gmail.com> 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 <msmith...@gmail.com>

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

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

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

2011-02-18 Thread Marc Smith
: content='blabla page2' return dict(content) 2011/2/17 Marc Smith msmith...@gmail.com On Thu, Feb 17, 2011 at 1:05 PM, villas villa...@gmail.com wrote: My first impression was that seem a lot of code in one function. Maybe better to create some separate functions and redirect

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

2011-02-18 Thread Marc Smith
(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 first DIV, so not quite what I'm looking for. --Marc 2011/2/18 Marc Smith msmith

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

2011-02-18 Thread Marc Smith
or anything else? Thanks! --Marc On Fri, Feb 18, 2011 at 12:48 PM, Martín Mulone mulone.mar...@gmail.com 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 Smith msmith

[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 jlund...@pobox.com wrote: On Feb 15, 2011, at 9:57 AM, Carlos

[web2py] Re: LOAD Component + Multiple Forms

2011-02-17 Thread Marc Smith
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 msmith...@gmail.com wrote: Hi, I am having trouble using the LOAD component

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

2011-02-17 Thread Marc Smith
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 to new pages each time, but I just wanted to try something different. =) --Marc -D On Feb 17, 3:14 am, Marc Smith msmith...@gmail.com

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 ovidio...@gmail.com wrote: what makes your application, it sends sms:? you can share this application?, I need an application that sends SMS. 2011/2/15 Marc

[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/one