[web2py] Re: encrypt source code

2010-07-29 Thread ilovesss2004
ot a 1-1 map. > > Massimo > > On Jul 29, 9:23 am, ilovesss2004 wrote: > > > > > But the html files are also part of the web app. Is there someway to > > encrypt them by use of web2py or python programming? > > > On Jul 29, 4:15 pm, Jean-Guy wrote: > >

[web2py] Re: encrypt source code

2010-07-29 Thread ilovesss2004
code embeded could be compiled too, but really not sure > about that... Massimo could be a better help on that. > > Jonhy > > On 2010-07-29 10:12, ilovesss2004 wrote: > > > > > source code of html files are still viewable.

[web2py] Re: encrypt source code

2010-07-29 Thread ilovesss2004
led > > On 2010-07-29 09:56, ilovesss2004 wrote: > > > > > web2py. Can someone tell me how to prevent > > others from viewing source

[web2py] encrypt source code

2010-07-29 Thread ilovesss2004
Hi, I just made a web app by web2py. Can someone tell me how to prevent others from viewing source code by use of web2py? Thanks alot.

[web2py] Re: call a function in another controller

2010-07-28 Thread ilovesss2004
I have solved the problem. Thanks alot to you all!

[web2py] Re: call a function in another controller

2010-07-27 Thread ilovesss2004
How to write it in javascript? e.g. onclick=URL(request.application,'controllerName','FunctionName.load'), ajax=True)? On Jul 27, 10:35 pm, Bruno Rocha wrote: > In a view: > > {{=LOAD(url=URL(request.application,'controllerName','FunctionName.load&

[web2py] call a function in another controller

2010-07-27 Thread ilovesss2004
Hi, Can some one tell me how to call a function which is in another controller other than default controller by ajax? Thanks alot.

[web2py] Re: a problem with routes.py

2010-06-25 Thread ilovesss2004
the same On Jun 25, 4:18 pm, Jonathan Lundell wrote: > On Jun 25, 2010, at 5:40 AM, ilovesss2004 wrote: > > > Here is code of my routes.py > > > routes_in = (('/', '/myapp/default/index'), > >            ) > > > routes_out = (('/my

[web2py] Re: a problem with routes.py

2010-06-25 Thread ilovesss2004
The same... On Jun 25, 3:21 pm, Vasile Ermicioi wrote: > what happens if you delete routes_out ?

[web2py] a problem with routes.py

2010-06-25 Thread ilovesss2004
Hi, Here is code of my routes.py routes_in = (('/', '/myapp/default/index'), ) routes_out = (('/myapp/default/index', '/'), ) When I enter 127.0.0.1:8000 in browser, myapp do show but the ajax function does't work. I must enter 127.0.0.1:8000/myapp/default/index in browse

[web2py] ajax function target id null

2010-06-24 Thread ilovesss2004
Hi, I use the ajax function as follows: ajax('func1', ['id1'], '') because I don't need to send some value to the html page, so I set the third parameter null. But IE raises error 'document.getElementById(...)' is null or not an object. How can I use the ajax function when I don't want to send v

[web2py] how to use global variable in controller?

2010-06-24 Thread ilovesss2004
Hi, I try to use global variable in a controller. global a a=5 def index(): return dict() def func1(): global a a=request.vars.id1 def func2(): global a print a The html page call func1 first and change the value of the global variable "a" to 8. But when html page call func

[web2py] Re: let python get value of a textfield

2010-06-20 Thread ilovesss2004
On Jun 20, 8:58 pm, Yarko Tymciurak wrote: > Well, maybe this is a good exercise / tutorial in debugging: > > On Jun 20, 9:02 am, mdipierro wrote: > > #  this just displays view/default/index.html as it is> def index(): > >     return dict() > > #  demo:  get input from the client and do someth

[web2py] Send value to python program on the server-side

2010-06-20 Thread ilovesss2004
Hi, I want that a python program on the server-side can get value of a textfield on the client-side when I press a button. I know the method in the cookbook which use request.var. But to use this method I must use a submitbutton combined with formaction. The problem is when I set the focus on the t

[web2py] let python get value of a textfield

2010-06-19 Thread ilovesss2004
Hi, How can I let python controller get the value of a textfield when I press a button in html page (not a submit button)? Thanks a lot.