web2py AlterEgo
rock solid framework for agile and secure web applications
home
search
Edit page
Title:
Security Code:
Body:
(use
this
wiki markup)
Every field in web2py has a unique name and id. Look at the generated html to figure out the ID for your fields. Say you want to add a balloon to a field with id="mytable_myfield". Download the jquery plugin <http://plugins.learningjquery.com/cluetip> Include the .js files in the view that needs it <script src="{{=URL(r=request,c='static',f='jquery.dimensions.js')}}" type="text/javascript"></script> <script src="{{=URL(r=request,c='static',f='jquery.cluetip.js')}}" type="text/javascript"></script> Add somewhere the following code: <script> $(document).ready(function(){ $('#mytable_myfield').attr('title','Ballon Header Text|Balloon Body Text').cluetip({splitTitle: '|'}); // add one entry for every field that needs a balloon }); </script> The js files have to be put in yourapp/static/ Also make sure you run a current version of web2py that includes the basic jquery.js
Resources
Home
Version 1.51 (2008-11-19 14:48:02)
Examples
|
API
|
ORM
Compare
|
Django
|
TG
|
Rails
|
PHP
|
Java
Tutorial
|
Book
|
epydocs
Screencast short
|
long
|
shell
|
GAE
Online Demo
Interactive FAQ (AlterEgo)
Repository of free web2py apps
KPAX (the web2py CMS)
Model Builder
|
Layout Builder
Central Authentication Service
Users Group (free to join)
Development Trunk (svn)
Contact
Massimo Di Pierro
School of Computing
DePaul University
243 S. Wabash Ave
Chicago, IL 60604 (USA)
mdipierro@cs.depaul.edu