Chrome Da Buton çalışmıyor

Bu konuyu okuyanlar

dedefon

Asistan
Katılım
2 Temmuz 2010
Mesajlar
148
Reaksiyon puanı
6
Puanları
18
SA

bir emlak sitem var burda emlak ararken ili seçiyoruz daha sonra semtleri seçmek için ayrı bir selection.php olarak yaptım burda semtleri ekleyip 'Seç' butonu tıklanıyor bu buton İE de çalışıyor fakat Google Chromda çalışmıyor bakarsanız sevinirim..

Code:
<tr>
<td colspan="3" align="right"><input name="button" type="button" id="button" onClick="Yaz('<? if($_GET[kutu]==1) echo 'ilce'; else if ($_GET[kutu]==2) echo 'semt'; ?>')" value="Seç"></td>
</tr>



TÜM SAYFA KODU:

<? include("db.php"); ?>
<html>
<head>
<meta http-*****="X-UA-Compatible" **********IE=7">
<meta http-*****="Content-Type" **********text/html; charset=iso-8859-9">
<title>Morgate Gayrimenkul</title>
<script language="javascript">
function Temizle(kutu){
for (eleman in kutu.options) kutu.options.remove(eleman)
}
function Ekle(Kutu){
var oOption=document.createElement("OPTION");
oOption.text=selection.liste.options[selection.liste.selectedIndex].text;
oOption.value=selection.liste.options[selection.liste.selectedIndex].value;
Kutu.add(oOption);
selection.liste.options.remove(selection.liste.selectedIndex);
}
function Cikart(kutu){
var oOption = document.createElement("OPTION");
oOption.text=selection.secilenler.options[selection.secilenler.selectedIndex].text;
oOption.value=selection.secilenler.options[selection.secilenler.selectedIndex].value;
selection.liste.add(oOption);
kutu.options.remove(selection.secilenler.selectedIndex);
}
function Yaz(kutu){
if (selection.secilenler.options.length!=0){
var i;
var str;
//ID'ler yaziliyor.
str=selection.secilenler.options[0].value;
for (i=1;i<selection.secilenler.options.length;i++)
str += ','+selection.secilenler.options.value;
opener.document.getElementById(kutu+"_id").value=str;
//Texler yaziliyor.
str = selection.secilenler.options[0].text;
for (i=1;i<selection.secilenler.options.length;i++)
str += ','+selection.secilenler.options.text;
opener.document.getElementById(kutu).value=str;
}
window.close();
}
</script>
<style type="text/css">
<!--
body {
background-color: #E5E5E5;
}
.list {
font-family: Arial;
font-size: 12px;
width: 130px;
}
-->
</style>
</head>
<body>
<form name="selection" method="post" action="">
<?
if ($_GET[kutu]==1) $query="SELECT * FROM tbl_ilce WHERE il_id=".$_GET[il];
else if ($_GET[kutu]==2) $query="SELECT * FROM tbl_semt_tnm WHERE ilce_id IN(".$_GET[ilce].")";
$result = mysql_query($query)
?>
<table align="center" width="100%" border="0" style="border-collapse:collapse">
<tr>
<td width="45%">
<select name="liste" size="10" class="list" id="liste">
<?
while($liste = mysql_fetch_row($result))
echo "<option value='$liste[0]'>$liste[1]</option>";
?>
</select>
</td>
<td width="10%" align="center">
<a href="javascript:Ekle(selection.secilenler)"><img src="../img/ekle.gif" width="26" height="30" border="0"></a>
<br>
<br>
<a href="javascript:Cikart(selection.secilenler)"><img src="../img/cikar.gif" width="26" height="30" border="0"></a>
</td>
<td width="45%" align="right">
<select name="secilenler" size="10" class="list" id="secilenler">
</select>
</td>
</tr>
<tr>
<td colspan="3" align="right"><input name="button" type="button" id="button" onClick="Yaz('<? if($_GET[kutu]==1) echo 'ilce'; else if ($_GET[kutu]==2) echo 'semt'; ?>')" value="Seç"></td>
</tr>
</table>
</form>
</body>
</html>
 

N3CAT1

Müdavim
Emektar
Katılım
20 Nisan 2008
Mesajlar
6,609
Reaksiyon puanı
144
Puanları
63
Firefoxta çalışıyor mu? Eğer firefoxta da çalışmıyorsa firebug eklentisi ile hatalı olan satırı görebilirsin.

Gerçi firebug eklentisi sanırım chrome için de vardı.
 

just-ice

Öğrenci
Katılım
15 Nisan 2008
Mesajlar
95
Reaksiyon puanı
5
Puanları
0
firebug gibi bisey chrom un icinde entegre olarak var. Sag tus, "inspect element"
 

dedefon

Asistan
Katılım
2 Temmuz 2010
Mesajlar
148
Reaksiyon puanı
6
Puanları
18
Firefoxda o sayfa bile açılmıyor :)
 

Uso!

Doçent
Katılım
10 Ağustos 2010
Mesajlar
947
Reaksiyon puanı
27
Puanları
18
Yanlışım olabilir, ama sanırım bunlarda($_GET['...']) tek tırnak gerekiyor(?).
Kod:
onClick="Yaz('<? if($_GET[[B]kutu[/B]]==1) echo 'ilce'; else if ($_GET[[B]kutu[/B]]==2) echo 'semt'; ?>')"
 
Üst