How Can I Do This ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lakshman99
    New Member
    • Jul 2006
    • 3

    How Can I Do This ?

    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 ?
  • Niheel
    Recognized Expert Moderator Top Contributor
    • Jul 2005
    • 2432

    #2
    It would help if you tried to explain in english what you were trying to do.
    niheel @ bytes

    Comment

    • Egypt_81
      New Member
      • Jul 2006
      • 25

      #3
      What is the problem there. please explain may be we can help

      Comment

      • wsrinivas
        New Member
        • Jul 2006
        • 10

        #4
        laxman

        you have declare session("names" )= in ASP first and you want to use this server session on client side that is not goign to work
        Try to recode everything in Javascript or use AJAX for non-refresh browser events.

        Comment

        Working...