Please solve my problem below i was given....
<%
dim names(100)
session("names" )=names
session("non")= 0
%>
<table>
<tr><td>
<input type="textbox" name="name1" id="name1" value="">
</td></tr>
<tr><td>
<input type="button" id="btn" name="btn" value="Click here to Add this Name" on click="return chk()">
</table>
<script language="javas cript">
function chk()
{
if(session("non ")<100)
{
tn = document.getEle mentById("name1 ").value
// i want to do like this
----------------------------------------------------
session("non") = session("non")+ 1
tns = session("names" )
tns(session("no n"))=tn
session("non")= tns
----------------------------------------------------
}
}
</script>
but i don't want to refresh page for this logic.
is it posiable ?
<%
dim names(100)
session("names" )=names
session("non")= 0
%>
<table>
<tr><td>
<input type="textbox" name="name1" id="name1" value="">
</td></tr>
<tr><td>
<input type="button" id="btn" name="btn" value="Click here to Add this Name" on click="return chk()">
</table>
<script language="javas cript">
function chk()
{
if(session("non ")<100)
{
tn = document.getEle mentById("name1 ").value
// i want to do like this
----------------------------------------------------
session("non") = session("non")+ 1
tns = session("names" )
tns(session("no n"))=tn
session("non")= tns
----------------------------------------------------
}
}
</script>
but i don't want to refresh page for this logic.
is it posiable ?
Comment