Board index   FAQ   Search  
Register  Login
Board index php forum :: HTML JavaScript

maximum the receiver does not work

Javascript coding ..

Moderators: macek, egami, gesf

maximum the receiver does not work

Postby Adem » Sun Nov 25, 2012 1:57 pm

Hello,

maximum the receiver does not work

What could be the problem?
Could you help me?

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

Code: Select all

<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
Adem
New php-forum User
New php-forum User
 
Posts: 2
Joined: Mon Nov 12, 2012 12:47 pm

Re: maximum the receiver does not work

Postby Adem » Mon Nov 26, 2012 2:35 pm

Hello again,

The rule : The amount of products can be max 21(sample).

This JavaScript gives a warning about rule above for one value.

I want that;

The JavaScript must give a warning for total choosing values.
1. value="5"
2. value="10"
3. value="8"
=23 are great than 21. (It must give a warning)

Thanks
Adem
New php-forum User
New php-forum User
 
Posts: 2
Joined: Mon Nov 12, 2012 12:47 pm


Return to JavaScript

Who is online

Users browsing this forum: Google [Bot] and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.