Results 1 to 2 of 2

Thread: simple question

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2002
    Posts
    5

    simple question

    Hi!
    I have a simple question. Is there a way to change the values on an asp page without refreshing the page?

    I am trying to send modify a variable that displays the current week on the screen and I am going to use forward and backward buttons to go forward and backward a week. Session variables are not helping me because they execute on the server and are acting very unstable. Sometimes the code works sometimes it doesn't. Can someone tell me why it behaves this way.
    Any help is appreciated.

    Thanks

    Here is the code
    Back Button
    <script for = "back" event="onClick" language = "VBScript">
    <% Session ("increment") = "0" %>
    <% Session ("decrement") = "7" %>
    window.location.reload(true)


    </script>

    Front Button
    <input type="image" border="0" name="Forward" src="arrow5.gif" width="22" height="20" onClick="buttonClick();" >
    <script for = "Forward" event="onClick" language = "VBScript">
    <% Session ("increment") = "7" %>
    <% Session ("decrement") = "0" %>
    window.location.reload(true)
    alert ("Forward")
    </script>

  2. #2
    Fanatic Member punkpie_uk's Avatar
    Join Date
    Sep 2001
    Location
    UK
    Posts
    645
    Have a read off remote scripting, it might be useful to you

    http://www.aspfree.com/authors/salim...escripting.asp
    SPREAD THE WORD!!! Are You Lee McCormick? Because I Am



    Lee M McCormick
    [email protected]

    Lee McCormick.com - Live
    Dynamically Webbed.com - In development but live

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width