[web2py] Re: I am trying to change the background image every 5 seconds like this but this doesn't seem to work?

2016-06-14 Thread Emmanuel Dsouza
only be using Python > to create the base URL -- for example: > > var baseUrl = '{{=URL('static', 'images')}}'; > [everything else is Javascript] > > Anthony > > On Tuesday, June 14, 2016 at 7:38:15 AM UTC-4, Emmanuel Dsouza wrote: >

[web2py] Re: I am trying to change the background image every 5 seconds like this but this doesn't seem to work?

2016-06-14 Thread Emmanuel Dsouza
, the third argument to the ajax() function > can be ":eval" (which tells it to evaluate the returned value as JS code) > or a JS function (which will be passed the returned value). See the > documentation. > > Anthony > > On Tuesday, June 14, 2016 at 1:58:32 AM UTC-

[web2py] Re: I am trying to change the background image every 5 seconds like this but this doesn't seem to work?

2016-06-13 Thread Emmanuel Dsouza
t; If you need to retrieve images from the server without reloading the page, > you must use Ajax. > > Anthony > > > On Monday, June 13, 2016 at 5:30:47 AM UTC-4, Emmanuel Dsouza wrote: >> >> CONTROLLER: >> >> def retimage(): >> >> k=["

Re: [web2py] I am trying to change the background image every 5 seconds like this but this doesn't seem to work?

2016-06-13 Thread Emmanuel Dsouza
hing like that: > > def retimage(): > from random import randint > i=randint(0,2) > return URL(‘static’,’images/%d.jpg’ % (i)) > > > > On Mon, Jun 13, 2016 at 11:30 AM, Emmanuel Dsouza > wrote: > >> CONTROLLER: >> >> def reti

Re: [web2py] I am trying to change the background image every 5 seconds like this but this doesn't seem to work?

2016-06-13 Thread Emmanuel Dsouza
from random import randint > i=randint(0,2) > return URL(‘static’,’images/%d.jpg’ % (i)) > > > > On Mon, Jun 13, 2016 at 11:30 AM, Emmanuel Dsouza > wrote: > >> CONTROLLER: >> >> def retimage(): >> >> k=["URL('static&#

[web2py] I am trying to change the background image every 5 seconds like this but this doesn't seem to work?

2016-06-13 Thread Emmanuel Dsouza
CONTROLLER: def retimage(): k=["URL('static','images/1.jpg')","URL('static','images/2.jpg')","URL('static','images/3.jpg')"] from random import randint i=randint(0,2) return k[i] def index(): return locals() VIEW: {{extend 'layout.html'}} window.setInterval(function(){

[web2py] Re: What's wrong with this script?

2016-05-11 Thread Emmanuel Dsouza
M UTC+5:30, Dave S wrote: > > On Tuesday, May 10, 2016 at 9:45:36 PM UTC-7, Emmanuel Dsouza wrote: >> >> [subject: What's wrong with this script?] >> > [snip code] >> > so as you can see I am printing in target and location. The one with id >> location

[web2py] Re: It seems that this ajax request is made only when we are seeing it on present tab? How to avoid this

2016-05-11 Thread Emmanuel Dsouza
when not on present tab. How to tackle this? On Wednesday, May 11, 2016 at 1:42:38 PM UTC+5:30, Niphlod wrote: > > this is quite a default behaviour in all modern browsers: the inactive tab > is --- inactive. > > On Wednesday, May 11, 2016 at 9:09:10 AM UTC+2, Emmanuel Dsouza wrote: &

[web2py] It seems that this ajax request is made only when we are seeing it on present tab? How to avoid this

2016-05-11 Thread Emmanuel Dsouza
I double checked that this ajax request from my view works only when I am looking at the tab on which the view is displayed. If I minimize the browser or say, I work on other browser it doesn't work. Again when I switch over to this tab it tries to make up for the sleep mode it had gone to and

[web2py] What's wrong with this script?

2016-05-10 Thread Emmanuel Dsouza

[web2py] What is the difference between these two in relation with working of script?

2016-05-10 Thread Emmanuel Dsouza
{{extend 'layout.html'}} If you see this for more than 10 seconds it means that your browser is unable to search for your location. You can do the following to avoid this: 1).Try switching on Location in the settings. 2).Check and fix your intern

[web2py] Re: Any script for compiling c++ codes from web2py?

2016-05-09 Thread Emmanuel Dsouza
yeah exactly. thanks On Monday, May 9, 2016 at 11:54:47 PM UTC+5:30, Leonel Câmara wrote: > > Well you could run the compiler command like you would for any other > command (for instance using subprocess), is this what you want? > -- Resources: - http://web2py.com - http://web2py.com/book (Docu

[web2py] Why is this code for getting variables from view to controller not working?

2016-05-09 Thread Emmanuel Dsouza
in view: *{{extend 'layout.html'}}* ** ** *function myFunction(){* *var value = 22;* *ajax('{{=URL('default', 'my_action', vars=dict(value=str(value)))}}', [], 'target');* *}* ** ** *here* ** ** it says: name 'value' is not defined -- Resources: - http://we

[web2py] Any script for compiling c++ codes from web2py?

2016-05-09 Thread Emmanuel Dsouza
or any link? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" gro

[web2py] Not a web2py question though.

2016-05-02 Thread Emmanuel Dsouza
This group has helped me a lot in learning web2py. I also want to learn phonegap. Is any group as good as this which helps the users learn phonegap efficiently by answering their questions? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web

[web2py] How to add payment integration in web2py?

2016-04-25 Thread Emmanuel Dsouza
-- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubsc

[web2py] I am looking for internship in a firm that uses web2py but I don't find anyone in India?

2016-04-22 Thread Emmanuel Dsouza
Can someone help me in getting link for one? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the G

[web2py] How do I add extra buttons to a SQLFORM which will one to a different view?

2016-04-21 Thread Emmanuel Dsouza
form=SQLFORM(db.person).process() -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Group

[web2py] Re: How do I send same mail to a list of email ids?

2016-04-21 Thread Emmanuel Dsouza
ke either a list or a string. to send > to two email addresses in the "to", use > > mail.send(to=['ma...@example.com ', 'ma...@example.com > '], ) > > On Tuesday, April 19, 2016 at 10:24:34 PM UTC+2, Emmanuel Dsouza wrote: >> >>

[web2py] Re: How do I send same mail to a list of email ids?

2016-04-21 Thread Emmanuel Dsouza
1:24:34 PM UTC-7, Emmanuel Dsouza wrote: >> >> mail.send('ma...@some.com' , #here i want to attach a list of mail ids. >> 'Subject', >> 'Body' >> ) > > > I think you just put a list in the 'to' a

[web2py] Not web2py related but want an advice.

2016-04-21 Thread Emmanuel Dsouza
So my college is offering me to do a parallel programming and CUDA course. I am inclined towards making a career in web development. Should i go for this course? Does it have any good scope in web development too or should I invest time learning web development itself nicely. -- Resources: - h

[web2py] How to append (not erase and write) something to my div with id target called by ajax?

2016-04-21 Thread Emmanuel Dsouza
ajax('{{=URL('default', 'ignite')}}', 'q', 'target'); So taeget is the id of div which shoes something as per requested by the user. But I want the old results too. How do I simply append and not get rewritten stuffs? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation)

[web2py] How do I send same mail to a list of email ids?

2016-04-19 Thread Emmanuel Dsouza
mail.send('m...@some.com' , #here i want to attach a list of mail ids. 'Subject', 'Body' ) -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You rec

[web2py] How do I avoid this error?

2016-04-19 Thread Emmanuel Dsouza
adding the field: Field('username', requires=IS_NOT_EMPTY(), unique=True) gives me the following error: Cannot add a UNIQUE column How to avoid this error? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://

[web2py] How do I make form field have atleast 10 char long input by the user?

2016-04-19 Thread Emmanuel Dsouza
Field('longname') #what to write in requires=? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the

[web2py] Is the following code thread safe?

2016-04-17 Thread Emmanuel Dsouza
#get the path to the currunt file.Assuming python code and C code to be #executed are in same Folder base=os.path.dirname(os.path.dirname(__file__)) path=os.path.join(base,"python") #we have to get drive: base=base.split(':') base=base[0]; I am trying to write a code to c

[web2py] Re: what does this syntax mean?

2016-04-17 Thread Emmanuel Dsouza
yeah i put the bracket wrongly. so whats the difference between the args and the vars and when do we use each of them? On Sunday, April 17, 2016 at 9:32:20 PM UTC+5:30, villas wrote: > > I do not see how this line is valid... > > URL('default','caller',args=row.id), [kk, joe]) > > The brackets do

[web2py] what does this syntax mean?

2016-04-17 Thread Emmanuel Dsouza
< a href="{{=URL('default','caller',args=row.id), [kk, joe])}}">Call us what is difference between performance of row.id and kk, joe. what is the exact difference between request.args and request.vars as here? when do we use each of that? they look interchangeable to me. -- Resources: - http:/

[web2py] How do you change the color of the label of the sqlforms display in the view?

2016-04-13 Thread Emmanuel Dsouza
exact syntax? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" gr

[web2py] Can someone help me in changing the background image every 5 sec using jquery in web2py?

2016-04-12 Thread Emmanuel Dsouza
supposing that I have my images in db, how do I change the background image every 5 secs? Please help me with a clean code. Thanks -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues

[web2py] Being from India, where should I host my web2py app as pythonanywhere is costly?

2016-04-05 Thread Emmanuel Dsouza
Also can you tell me how much will it cost me. My site wont have much traffic. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message

[web2py] Re: What's this and how do I correct this?

2016-04-03 Thread Emmanuel Dsouza
I can't even open the appadmin now. They show eror tokens. Even edit option wasn;t there but managed to open it by editing the url of another app. On Sunday, April 3, 2016 at 3:54:24 PM UTC+5:30, Leonel Câmara wrote: > > Erase your .table files in the databases folder and then do a fake > migrat

[web2py] What's this and how do I correct this?

2016-04-03 Thread Emmanuel Dsouza
Yesterday my app was working fine. I didnt even insert anything to it. What is this error? What do I do now? Not even appadmin is opening! -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/

[web2py] How to use sms services in web2py?

2016-04-02 Thread Emmanuel Dsouza
Please dont redirect me to the book because it isn't mentioned nicely there. Please let me know the stepwise procedure. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Repor

[web2py] How to install some module, say unirest into my web2py app?

2016-04-01 Thread Emmanuel Dsouza
I need to use apis for which I need unirest for a must. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscrib

[web2py] Re: How did you implement chat system in your app? How's my idea?

2016-04-01 Thread Emmanuel Dsouza
But websocket is not supported by Android, right? Most of my users will use android , which will be best in that case? On Tuesday, March 29, 2016 at 12:07:00 AM UTC+5:30, Ron Chatterjee wrote: > > > https://www.toptal.com/tornado/simple-python-websocket-server?utm_campaign=blog_post_simple_python

[web2py] Re: How did you implement chat system in your app? How's my idea?

2016-03-29 Thread Emmanuel Dsouza
any other idea besides websocket? On Tuesday, March 29, 2016 at 12:07:00 AM UTC+5:30, Ron Chatterjee wrote: > > > https://www.toptal.com/tornado/simple-python-websocket-server?utm_campaign=blog_post_simple_python_websocket_server&utm_medium=email&utm_source=blog_subscribers > > Interesting article

[web2py] Re: Why do I get a never ending 'working' on trying to update my pic in the form in default/screen.html

2016-03-29 Thread Emmanuel Dsouza
So any another idea, how to do it? On Wednesday, March 30, 2016 at 1:16:43 AM UTC+5:30, Leonel Câmara wrote: > > You're trying to upload an image using ajax which is a little bit more > complicated and requires you to use something to help you like > jquery.form.js otherwise it won't work. > --

[web2py] Why do I get a never ending 'working' on trying to update my pic in the form in default/screen.html

2016-03-29 Thread Emmanuel Dsouza
in model: db.define_table('info', Field('info_id', default=auth.user_id, writable=False, readable=False), Field('dp','upload',label='Update your profile pic'), Field('first_name',requires=IS_NOT_EMPTY(error_message="Please fill it")),