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:
>
, 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-
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=["
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
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
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(){
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
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:
&
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
{{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
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
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
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
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
--
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
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
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
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:
>>
>>
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
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
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)
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
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://
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
#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
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
< 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:/
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
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
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
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
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/
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
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
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
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
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.
>
--
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")),
39 matches
Mail list logo