galetis Posted March 13, 2011 Share Posted March 13, 2011 Bir Php script üzerinde çalışıyorum. Seçili Checkbox'ların değerlerini Ajax ile göndermem gerekiyor. Bunun için aşağıdaki Javascript fonksiyonunu yazdım. Yazdığım bu fonksiyon Chrome ve Ie de sorunsuz olarak çalışırken Firefox'ta çalışmıyor. Fonksiyonda herhangi bi arızamı varda ben göremiyormuyum bilmiyorum. Yardımcı olabilecek arkadaşlara şimdiden teşekkürler [html]<script type="text/javascript"> function kontrol() { var elements = document.getElementsByName("secimler"); var liste= ""; for (var i = 0; i < elements.length; i++) { if(elements(i).checked){ liste+= elements(i).value + "|"; } } alert(liste); liste = ""; } </script>[/html] Quote Link to comment Share on other sites More sharing options...
mephex Posted March 13, 2011 Share Posted March 13, 2011 Belge Tipi Tanımını bu Şekilde yaz Bakalım ne olacak... [code]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">[/code] Quote Link to comment Share on other sites More sharing options...
galetis Posted March 13, 2011 Author Share Posted March 13, 2011 Aynı hata devam ediyor.. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.