[web2py] Fancybox..

2013-03-28 Thread Umer Farooq
I am new to web2py and i just want to popup a message via fancybox like if 
any filed in the admission form is left empty on submitting i want my 
fancybox to appear on screen displaying the names of the fields that are 
left empty...please help me out with this ..
Thanking you.
Regards..

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[web2py] fancybox forms issue

2012-09-18 Thread Marco Mansilla
Hi everyone, i try not to ask here before googling my issues but so far
i haven't found solution for this one:

i have this in my model db.py

db.define_table('person',
Field('first_name'),
Field('last_name'),
Field('address'),
Field('phone'),
Field('email'),
)

in my controller i have:

registration.py

def person():
form = SQLFORM(db.person)

if form.process().accepts:
response.flash="text"
elif form.errors:
response.flash="another text"
else:
response.flash="load your personal information please"

return dict(form=form)

def index():
return dict()

now comes the heavy part, i want to use fancybox to show my
registration/person form in my registration/index i have the following
code:

index.html

1|{{extend 'layout.html'}}
2|{{include 'web2py_ajax.html'}}
3|
4| 
5|
6| 
7|
8|$(document).ready(function(){
9|$('.frame').fancybox({
10|width:'98%',
11|height:'98%',
12|}); //end iframe
13|}); //end ready
14|
15|
16|
17| 
18|
19|  {{=A('link',callback=URL('registration','person'), 
_class="frame")}} 
20|

and simply it does not work, when i click the link it says "The
requested content cannot be loaded. Please try again later." in the
box, i have tried to link the file in line 4 inside of layout.html and
still doesn't work, after a long time i'm starting to think that it may
be a permission issue since y have tested this possibilities too:

New Person 

still nothing, and no errors show up in firebug, hints?

--