Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

onkeyup and onchange usage in form

Status
Not open for further replies.

walkerdigest

Programmer
Feb 10, 2009
35
TR
I have used
input(onkeyup option) and
select(onchange option) tags in a form.

The code with input tag(onkeyup option) works alone fine but when I have added select tag (onchange option) search doesn't work. can POST method return values using both onkeyup and onchange options.
What could be the problem:

The code is belove:


<!--#include file="../include/conn_baglan.asp"-->
<!--#include file="../include/fonksiyonlar.asp"-->
<%
Response.Charset = "windows-1254"
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "<html xmlns="<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-9" />
<title>Hasta Onay Formu Arama</title>
<link rel="stylesheet" type="text/css" href="../img/bodycss.css"/>
<style type="text/css">
<!--
a:link {
text-decoration: none;
color: #000000;
}
a:visited {
text-decoration: none;
color: #000000;
}
a:hover {
text-decoration: none;
color: #000000;
}
a:active {
text-decoration: none;
color: #000000;
}
body {
background-color: #CCCCCC;
}
body,td,th {
font-size: 12px;
font-family: Trebuchet MS;
}
-->
</style></head>






<script type="text/javascript" src="../js/calendar/calendarDateInput.js"></script>
<script type="text/javascript" src="../js/ajax/ajax.js"></script>
<script>
function arametin(arametin,arasoyad,arasube)
{

var arametin=arametin;
var dosya='hasta_ara.asp?uId=<%=request("uID")%>&subeId=<%=request("subeId")%>&hasta=' + arametin + '&soyad=' + arasoyad + '&subeisim=' + arasube;

JXG (1,'aramasonuc',dosya,'Hasta Aran?yor... Lütfen Bekleyin...')

}

</script>

<body onSelectStart="return false";>
<table width="800" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><table width="100%" border="0" cellpadding="3" cellspacing="3" bgcolor="#006699" class="alt_kesik_cizgi">
<tr>
<td><strong style="font-family:'Arial'; font-size:18px; color:#FFFFFF">Hasta Onay Formu Arama </strong></td>
</tr>
</table> </td>
</tr>
</table>


<table width="800" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td>

<form action="index.asp" method="post" name="formum">


<table width="100%" border="0" cellpadding="3" cellspacing="0" bgcolor="#F5F5F5">

<tr>
<td height="25" colspan="4" bgcolor="#FF3300"><strong style="color:#FFFFFF; font-size:16px;">+ Hasta Bilgisine Göre Arama </strong> </td>
</tr>

<tr>
<td width="69"><strong>Hasta Ad? : </strong></td>
<td width="286"><input type="text" name="adi" style="width:95%;" onkeyup="arametin(escape(formum.adi.value),escape(formum.soyadi.value),escape(forumum.subeler.value));"/></td>
<td width="101"><div align="right"><strong>Hasta Soyad?: </strong></div></td>
<td width="305"><input type="text" name="soyadi" style="width:95%;" onkeyup="arametin(escape(formum.adi.value),escape(formum.soyadi.value),escape(forumum.subeler.value));"/></td>
</tr>

<tr>
<td height="25" colspan="4" bgcolor="#FF3300"><strong style="color:#FFFFFF; font-size:16px;">+ ?ube Bilgisine Göre Arama </strong> </td>
</tr>

<tr>
<td colspan="4"><strong>?ube Ad? :&nbsp;&nbsp;&nbsp; </strong>


<select name="subeler" style="width:200px;" onchange="arametin(escape(formum.adi.value),escape(formum.soyadi.value),escape(forumum.subeler.value));">
<%
sql="select * from tblBirimSUBELER"
set rs=conn.execute(sql)
%>
<option value="">Seçiniz</option>
<% while not rs.eof %>

<option value="<%=rs("subeadi")%>" ><%=rs("subeadi")%></option>



<%
rs.movenext
wend
%>
</td>
</tr>
</table>
</form>
<div id="aramasonuc"></div>
</td>
</tr>
</table>

</body>
</html>
<%
conn.close
set conn=nothing
%>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top