autocomplete based on selection(ajax) in ADD/EDIT screen

Discuss the paid version of mate.

autocomplete based on selection(ajax) in ADD/EDIT screen

Postby pq_rar on Fri Jul 23, 2010 5:00 pm

Hi,
I am trying to do an autocomplete(ID Int) after the selection from a dropdown menu(Institution) in the ADD/EDIT screen:
Image
If I will choose for ex. selection1 from drop down menu I want to display the next max id in "ID Int". If the max one is EX_44, I want to autopopulate "ID Int" with EX_45. Is this possible?
Thank you.
pq_rar
 
Posts: 23
Joined: Thu May 27, 2010 4:44 am

Re: autocomplete based on selection(ajax) in ADD/EDIT screen

Postby admin on Wed Jul 28, 2010 10:34 pm

Yes this is possible. Here is an example (click add and the select a name).
http://www.mysqlajaxtableeditor.com/Example2.php

To see the php that drives this go to
http://www.mysqlajaxtableeditor.com/Sho ... ample2.php

The basic steps are
1. Add a user action that calls a php function which determines a value and then updates a field.
2. Add an onchange event to the drop down using the input_info option that calls the user action.
admin
Site Admin
 
Posts: 651
Joined: Fri Jul 11, 2008 1:34 am

Re: autocomplete based on selection(ajax) in ADD/EDIT screen

Postby pq_rar on Fri Jul 30, 2010 4:55 am

thanks, perfect!
pq_rar
 
Posts: 23
Joined: Thu May 27, 2010 4:44 am


Return to Paid Version

Who is online

Users browsing this forum: No registered users and 1 guest

cron