 |
|
ซึ่งผมต้องการคำนวน ค่า จาก 2 textbox แล้วให้ทำการคำนวนให้อัตโนมัติ นะคับซึ่งมีปัญหาตรง
นี้เป็นส่วนของ code PHP ในการเรียกใช้ function
Code (PHP)
<td><input type="text" name="Code0" id="Code0" onBlur="checkOrder(this), checkOrder1(this), checkOrderPV (this), calTotal1() , calTotalPV() , checkDis(this), sumTotal(), calDis(), sumcalTotal(), calVat(),sumPV(),addRow('myTable');" size="5" /></td>
javascript มีปัญหาในส่วนของ หากทำการ comment ในส่วนของ Alert ซึ่ง Programm จะทำงานได้ถูก แต่ว่าปิด Comment Programm ผิดพลาด ผมต้่องทำอย่างไรดีนะคับ
แบบนี้จะ run ผ่าน
Code (PHP)
function calTotal1()
{
alert('11111');
var total = document.getElementById('Total0');
var amount = document.getElementById('Amount0').value;
//alert(amount);
var aaaa = document.getElementById('Price111').value;
var total1 = parseFloat(amount)*parseFloat(aaaa) ;
total.value = total1
// alert(document.Code0.aaaa.value);
}
แต่หากผม ใส่ comment alert('11111');
โปรแกรมจะไม่ผ่าน
ภาพ

Tag : PHP, MySQL, JavaScript, Action Script, Ajax
|
|
 |
 |
 |
 |
Date :
2012-05-15 10:31:10 |
By :
computerpsu031 |
View :
881 |
Reply :
1 |
|
 |
 |
 |
 |
|
|
|
 |