W
|
wildwally author 2/21/2012 |
Is it possible to populate a fields drop down list after the page has been loaded?
|
![]() |
Sergey Kornilov admin 2/21/2012 |
How's about using dependent dropdown boxes? The first dropdown box can be setup as 'Edit box with AJAX popup'. |
W
|
wildwally author 2/21/2012 |
How's about using dependent dropdown boxes? The first dropdown box can be setup as 'Edit box with AJAX popup'.
|
![]() |
Sergey Kornilov admin 2/21/2012 |
Why? Did you see the AJAX note? |
W
|
wildwally author 2/21/2012 |
talking over 900k records (apparently canada likes postal codes). when i click on the list page it never completes the load to allow me to get to the add page. |
![]() |
Sergey Kornilov admin 2/21/2012 |
I don't think we are on the same page. Dropdown implemented as 'Edit box with AJAX popup' never loads the whole list of values from the database. |
W
|
wildwally author 2/21/2012 |
I don't think we are on the same page. Dropdown implemented as 'Edit box with AJAX popup' never loads the whole list of values from the database.
|
![]() |
Sergey Kornilov admin 2/21/2012 |
I guess you are missing something. Probably you can test it first on smaller dataset to make sure setup is correct. |
W
|
wildwally author 2/21/2012 |
I guess you are missing something. Probably you can test it first on smaller dataset to make sure setup is correct. PS. Test in PHPRunner doesn't do AJAX. You cannot perform AJAX requests without a browser. It simply shows you all data in the table.
|
![]() |
Sergey Kornilov admin 2/21/2012 |
Hard to tell what is not working with larger datasets. Probably some additional setup is required or some indexes are missing in the database. Probably you can show us a URL of this app. |
W
|
wildwally author 2/21/2012 |
Hard to tell what is not working with larger datasets. Probably some additional setup is required or some indexes are missing in the database. Probably you can show us a URL of this app. It's also possible to have user simply enter ZIP code first and then execute an AJAX requests to get the list of cities and populate a dropdown box. This will require manual coding though and you will need to handle both client side and server side code. At the end it will be doing the same job that dependent dropdowns do so there is a possibility you encounter the same sort of issue.
|
P
|
procheck 2/21/2012 |
Postal codes are similar to zip codes. They narrow is down to the street. If you only want the city, the you might try searching on the first 3 digits instead of the whole code. That might reduce your results. |
W
|
wildwally author 2/21/2012 |
Sergey, when i go straight to the add page it loads instantly. But if I load through the list page it drags out? |
![]() |
Sergey Kornilov admin 2/22/2012 |
Not enough info to provide a meaningful answer. |
W
|
wildwally author 2/22/2012 |
Found another way to accomplish the same result although it requires a little more work on my end I think the outcome will be worth while.
|
![]() |
Sergey Kornilov admin 2/22/2012 |
Print $data["PostalCode"] on the page to make sure it's populated properly. |
W
|
wildwally author 2/22/2012 |
Print $data["PostalCode"] on the page to make sure it's populated properly.
|