This topic is locked

help with ajax

6/4/2007 7:59:40 PM
PHPRunner General questions
A
ahmedmah author

hi every one
i need some help on how to integrate ajax functions with the v4.0
what i need is to use some ajax which can calculate values from diffrent tables into a specified filed on the form linked to another table

like when i have a table with goods prices and when i print the quantity and the goods code in the sales form, ajax calaculate the total in the tot field getting the price from the first table
any way to do that with phprunner
thanks

Sergey Kornilov admin 6/5/2007

Description like this is not clear and just hard to understand.
Try to rephrase your question or post some screenshot that explains what you trying to achieve.

A
ahmedmah author 6/5/2007

Description like this is not clear and just hard to understand.

Try to rephrase your question or post some screenshot that explains what you trying to achieve.


so sorry for my poor explanation

i got no screenshot right now but i will try to explain much farther
i have two tables the first is the goods table with the fields (id, name, price) the second table is the sales table with the fields (id, goods_id, quantity, total)
now on the form of the sales the (goods_id) field is a dropdown menu from the goods table the display field is name and link field is id
is there some ajax can be integrated with the runner code so it calculates the value of the total field by getting the price from the first table according to the goods id i have selected from the dropmenu multiplied by the quntity i give so the total calculated and printed into the total filed by the time i give the quntity
hope it is cleared
thanks again