PDA

View Full Version : maximum the receiver does not work



Tutaste
11-26-2012, 06:58 AM
Hello,

maximum the receiver does not work

What could be the problem?
Could you help me?


Video: http://www.teklif.uzayforum.com/swf.html



<script type="text/javascript">
function baslangic(status)
{
status=!status;
textler=document.getElementsByName("secilen_receiver_sayisi[]");
for(x=0;x<textler.length;x++){
textler[x].disabled = status;
}
}

function isaretle(){
marka=document.getElementsByName("secilenreceivermarka_id[]");
sayi=document.getElementsByName("secilen_receiver_sayisi[]");
for(x=0;x<marka.length;x++){
sayi[x].disabled=!marka[x].checked;
}
}

function kontrol(){

marka=document.getElementsByName("secilenreceivermarka_id[]");
sayi=document.getElementsByName("secilen_receiver_sayisi[]");
for(x=0;x<marka.length;x++){
if(marka[x].checked==true&&(sayi[x].value><?=$maximum_receiver?>||sayi[x].value==""||sayi[x].value<1||sayi[x].value.search(/\d/g)<0)){

alert("Receiver seÁme isteğe bağlıdır.\n\nEğer bir marka seÁtiniz ise miktarıda seÁmelisiniz ve toplam daire sayınız olan <?=$maximum_receiver?> adet geÁmemeniz gerekiyor.");

return false;
}
}
return true;
}
</script>


Thanks

vwphillips
11-26-2012, 11:46 AM
it would be better if you posted a link to the page

traq
11-26-2012, 04:25 PM
Your question is unclear.
Please provide more information, and be as specific as possible.
What do you want to accomplish? What have you already tried? What problems did you encounter?
Also, please be sure that you have included all relevant code and/or a link to the page in question.

IF you're meaning to say that the value of $maximum_reciever is not printed, you'd need to show us the PHP script as well.

Tutaste
12-18-2012, 10:23 PM
Thank you very much for your attention
took care of the problem
http://e1212.hizliresim.com/14/f/gvgl9.png
Source: http://stackoverflow.com/questions/13540751/how-get-total-sum-from-input-box-values-using-javascript

Best Regards
Adem