Using the browser developer tools, what URL gets requested when the ajax
call is made?
On Wednesday, June 26, 2013 2:44:18 AM UTC-4, Rohitraj Sharma wrote:
>
> I want to select some particular table from database in a drop dowan.
> Then import csv file. edit that file and update. . Can Any one can help me
> plz
>
> i am using the fallowing code for that
>
>
> View
>
> <script>
> jQuery(function() {
> jQuery('#table').change(function() {
> web2py_component("{{=URL('default', 'form.load')}}" + "/" +
> jQuery(this).val(), target='form')
> })})</script>
> {{=SELECT('Select a table', *db.tables, _id='table')}}<div id="form"></div>
>
>
> Controller
>
> def form():
> if request.args(0) in db.tables:
> response.generic_patterns = ['load']
> return dict(form=SQLFORM(db[request.args(0)]).process())
> else:
> raise HTTP(404)
>
>
> every time it toll else part.
>
>
> can any one help me.
>
>
--
---
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.