![]() |
Admin 9/1/2005 |
This can be done manually editing generated PHP files. |
K
|
kellyho67 author 9/1/2005 |
This can be done manually editing generated PHP files. Basically speaking you need to load contact names, addresses etc into Javascript arrays when page loads and populate those fields using onchange event of Company drop-down box.
|
|
Corinne 9/12/2005 |
kellyho67, |
|
501238 9/13/2005 |
kellyho67, Have you had any luck with this? I'm trying to do something similar. I have items and prices associated with each item in a table. When the user selects an item from the dropdown list I want the price feld to be automatically filled with the cooesponding price. Can anyone tell me how I can do this?? Any help is appreciated. Thanks, Corinne
$database ->setQuery("select what you want to get here"); |
|
Corinne 9/13/2005 |
Thanks for responding. I'll try to adapt this for my needs. Where would I put this code? |
M
|
markdorminy 9/18/2006 |
Has anyone attempted this since this was first posted? |
D
|
Dale 9/19/2006 |
I solved this issue using Ajax. When creating a new invoice, I needed to populate the prices, tax rates and also update a schedule of actions for the purchase. |
![]() |
kujox 9/21/2006 |
Dale |
D
|
Dale 9/21/2006 |
Thanks for the positive comment. |
|
jwoker 10/18/2006 |
I need to do this as well. I went to dhtmlgoodies.com and read through the Ajax solution. It seems I need to create and upload 2 new files. 1 - .php file to get info from MySQL and 2 - .js file (Ajax file) that seems to be storing some procedures. I think I can handle that ok. Then there is some code to go into the head section, that should be no problem as I can see that section on the visual editor page. The part where I know I will have a problem is integrating the Ajax/java code into the into my Add page body. Here is a piece where when a user selects Client ID the client details are filled in:
|
D
|
Dale 10/19/2006 |
Hi jwoker |
A
|
andyjames 6/10/2007 |
Trying to implement Dale's ajax dynamic client lookup from dhtmlgoodies.com in PHPRunner ver 4.0 build 265... |