Re: Use Ajax to retrieve data from db based on data from input box and adding it to a table.

2011-05-13 Thread AJ
No problem. I am a beginner myself in Django. Just learning by asking and answering seems a very nice way. Enjoy hacking! :) On Fri, May 13, 2011 at 8:39 AM, GKR wrote: > thanks > > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To pos

Re: Use Ajax to retrieve data from db based on data from input box and adding it to a table.

2011-05-13 Thread GKR
thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this gro

Re: Use Ajax to retrieve data from db based on data from input box and adding it to a table.

2011-05-13 Thread AJ
You could do that directly but here's how I do it in development: You will have a site_media directory in Django. I usually serve the sitemedia from that directory which includes images, JS, CSS etc. You specify site_media in your settings.py. #the absolute path to this file, i.e. 'here' here = l

Re: Use Ajax to retrieve data from db based on data from input box and adding it to a table.

2011-05-13 Thread GKR
Thanks for ur idea so shall i put the scripts directly on the template file to work out or is there any better alternate.. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To u

Re: Use Ajax to retrieve data from db based on data from input box and adding it to a table.

2011-05-13 Thread AJ
>From what you've tried to explain, I can see that you would really want to use AJAX, that means, for that page you have to write a JavaScript handler (function that handles the event of adding a new record by pressing Add or Enter). The JS will take care of the page not being submitted/refreshed.

Re: Use Ajax to retrieve data from db based on data from input box and adding it to a table.

2011-05-13 Thread AJ
>From what you've tried to explain, I can see that you would really want to use AJAX, that means, for that page you have to write a JavaScript handler (function that handles the event of adding a new record by pressing Add or Enter). The JS will take care of the page not being submitted/refreshed.

Re: Use Ajax to retrieve data from db based on data from input box and adding it to a table.

2011-05-13 Thread GKR
please help -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit thi

Use Ajax to retrieve data from db based on data from input box and adding it to a table.

2011-05-13 Thread GKR
which is the best way to implement the following:: i will be having a text box and a Add button Along with a table below it containing headers Serial No, roll no,Name, Age, Address, Phone no my logic is to take the roll no as input from the text box and when i press enter either on the text f