On May28, 2:38pm, Neveen Adel <[email protected]> wrote:
> Hello,
>
> I have
> db.define_table('type',
>                 SQLField('name','string',length=2)
>                 SQLField('parent','reference db.type')
> )
>
> db.define_table('member',
>                 SQLField('name','string'),
>                 SQLField('type',db.type),
>                 SQLField('subtype',db.type),
> )
>
> I want when select a value of type the drop down of subtype changed
> according to selection.
>
> when am searching on it i found a solution that someone posted it
> before
> "
> $('#tourplan_city').change(function(){ $.ajax( ........ ) }
> "
> But i don't know what is the " $.ajax( ........ ) " and where i will
> write my query that compute result of subtype dropdown?
>
> Could anyone help me ?
>
> Thanks in advance
>
> Neveen


web2py book is your friend. :)

http://web2py.com/book/default/section/10/3?search=ajax

Reply via email to