Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    Regular Coder
    Join Date
    Jul 2002
    Location
    Brighton, UK
    Posts
    282
    Thanks
    1
    Thanked 0 Times in 0 Posts

    slow down countdown with a delay

    hello I have typed this script, I am trying to slow down the countdown. it is counting down to 0, but it goes so fast you cant see it,

    here is the code, in javascript to delay you put timeset, I thiknk but what do I do for VB/asp ???? any help would be greatful

    Dim i As Decimal

    i = 1
    Do While i < 100
    TextBox1.Text = Str(i)
    i = i + 1
    need to add something here maybe to slow down the countdown
    Loop
    If i = 100 Then
    TextBox1.Text = "hello"

    End If

    also I am getting stuck on how to add a javascript function to an aspx page or a aspx.vb page ?????
    Last edited by chris_angell; 10-14-2003 at 06:53 PM.
    <marquee>thanks</marquee>

  • #2
    Regular Coder
    Join Date
    Sep 2002
    Location
    Bugaha, NE
    Posts
    330
    Thanks
    0
    Thanked 0 Times in 0 Posts
    What are you trying to accomplish by delaying it? Maybe an alternate solution is available.

    If anything,

    %>

    <script language = "javascript">
    *** Put a javascript timeout here ***
    </script>

    <%
    Last edited by BigDaddy; 10-14-2003 at 10:35 PM.
    This is in spanish when you're not looking.

  • #3
    Regular Coder
    Join Date
    Jul 2002
    Location
    Brighton, UK
    Posts
    282
    Thanks
    1
    Thanked 0 Times in 0 Posts
    thanks for getting back...

    what I am trying to do is make an input box count up from 1 to 100, I can get it to count up but sadly it counts so fast you can't see the numbers go up in the input box.. so I am trying to slow theese numbers down so you can see them count up I was wonder if there is a way to do this in VB, well vb.net, I know in javascript you add setttime to your add function.. but I don't know how to do it in vb

    hope this makes more scense of what I am trying to do

    thanks




    oh and I am still having trouble placing a javascript function in asp.net ????????? any ideas on how to do this.
    <marquee>thanks</marquee>

  • #4
    raf
    raf is offline
    Master Coder
    Join Date
    Jul 2002
    Posts
    6,589
    Thanks
    0
    Thanked 0 Times in 0 Posts
    this sounds like a clientside action to me, so i'm with BigDaddy.

    If you would like to do it serversided, then you'd need to resend the partially processed script each time, which generates a lot of trafic and is quite pointless.
    I don't know .NET so i can't answer you question, but did you try to simply print it like you print other html-code ?. Or switching in and out asp-mode like BigDaddys code ?

  • #5
    Regular Coder
    Join Date
    Jul 2002
    Location
    Brighton, UK
    Posts
    282
    Thanks
    1
    Thanked 0 Times in 0 Posts
    see another problem is that combining the two languages.. seems to be harder in asp.net,, I am still trying to call a javascript function from a asp.net page, and I can't work out this, but I will keep plodding on in the hope I get a break through,

    thaNKS for getting back to me

    chris
    <marquee>thanks</marquee>

  • #6
    raf
    raf is offline
    Master Coder
    Join Date
    Jul 2002
    Posts
    6,589
    Thanks
    0
    Thanked 0 Times in 0 Posts


  •  

    Posting Permissions

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