[SOLVED] Â javascript and 5.0 |
11/11/2008 08:13:16 | |
| PHPRunner General questions | ||
|
G
garethp authorDevClub member
Sorry to be a pain. <script>{literal} document.forms.editform.value_net_value.disabled=true; var vv = document.editform.value_unit_price; var ww = document.editform.value_quantity; vv.onchange = vv.onkeyup =ww.onchange = ww.onkeyup =function() { var qty = document.editform.value_quantity.value; var unit = document.editform.value_unit_price.value; document.editform.value_net_value.value =parseFloat(qty)*parseFloat(unit);} {/literal}</script>
|
||
|
|
Sergey Kornilov admin 11/11/2008 |
|
I recommend to check PHPRunner templates manual, section related to java script: |
|
|
G
|
garethp authorDevClub member 11/11/2008 |
|
Sorry - I have had look but am very confused how to achieve this. |
|
|
S
|
swanside 11/11/2008 |
|
Take out the {literal}
|
|
|
G
|
garethp authorDevClub member 11/12/2008 |
|
Thanks for this and taking time to respond - this appears to have worked which is great. |
|
|
J
|
Jane 11/12/2008 |
|
Gareth, |
|
|
G
|
garethp authorDevClub member 11/12/2008 |
|
Jane |
|
|
S
|
swanside 11/12/2008 |
|
Just to mention, I was getting the same problem, it was Jane at first who told me about the {literal} part. |
|
|
G
|
garethp authorDevClub member 11/12/2008 |
|
Thanks for that. |
|
|
A
|
amuro 11/12/2008 |
|
I use this way
|
|
|
G
|
garethp authorDevClub member 11/13/2008 |
|
Amura |
|
|
A
|
amuro 11/25/2008 |
|
For instance, the add page uses js file |
|
|
G
|
garethp authorDevClub member 12/16/2008 |
|
Hi |
|