Why is the progress bar there ?

Discussion in 'ASP General' started by PW, Jun 10, 2006.

  1. PW

    PW Guest

    I have an ASP which is a form (get), and whenever I run it, even though its
    just sitting there waiting for input, the progress bar at the bottom of the
    page starts slowly climbing up. Why is it doing that ?

    TIA,
    PW
     
    PW, Jun 10, 2006
    #1
    1. Advertisements

  2. PW

    Evertjan. Guest

    PW wrote on 10 jun 2006 in microsoft.public.inetserver.asp.general:
    "an ASP" ?

    ASP is a serverside platform for coding in computer languages
    like vbs or js and doesn't even know browsers exist.

    You will have to ask in a clientside NG.
     
    Evertjan., Jun 10, 2006
    #2
    1. Advertisements

  3. PW

    Mike Brind Guest

    Yeah - an Active Server Page :)
    OTOH, he may have Response.Buffer = False or a Response.Flush and some
    asp code still running in a loop. Without showing us any code, it's
    all a guess at the moment.
     
    Mike Brind, Jun 10, 2006
    #3
  4. PW

    PW Guest

    Heres the whole page ... TIA, PW.




    <!-- #include file=aaa_Settings.asp -->

    <html>
    <head>
    <script language="JavaScript" src="scripts\datetimepicker.js"></script>
    </head>

    <body bgcolor="<%=Session("SystemColourBgStd")%>">

    <!-- #include file=aaa_Heading.asp -->

    <b>Enter the full details, then press the Ok button</b>
    <p>

    <form ID="myform" NAME="myform" method="GET" action="AddTask2.asp">

    <table width=100% bgcolor="<%=Session("SystemColourBgStd")%>"
    style="font-size:<%=Session("SystemFontSizeStd")%>;color:<%=Session("SystemFontColourStd")%>;font-family:<%=Session("SystemFontFaceStd")%>">

    <tr>
    <td>
    <b>
    Date:
    </b>
    </td>
    <td>
    <%
    myDate = day(Date()) & "-" & month(Date()) & "-" & year(Date())
    %>
    <input type="Text" id="txtDateFrom" name="txtCommDate"
    value="<%=myDate%>" maxlength="10" size="10"><a
    href="javascript:NewCal('txtDateFrom','ddmmyyyy',false,24)"><img
    src="treeview/treeicons/icons/ocalendar.gif" border="0" alt="Pick a
    date"></a>
    </td>
    </tr>

    <tr>
    <td>
    <b>
    <%
    if Session("SystemActivity1") = "" then
    response.write "Activity 1:"
    else
    response.write Session("SystemActivity1") & ":"
    end if
    %>
    </b>
    </td>
    <td>
    <%
    mySQL = "Select Activity from Activity1 where ActiveFlag = TRUE order
    by Activity"
    rs5.open mySQL,myDSN
    %>
    <select name="lbActivity1" size="1">
    <option></option>
    <%
    Do While Not rs5.EOF
    response.write "<option>"
    response.write rs5("Activity")
    response.write "</option>"
    rs5.MoveNext
    Loop
    %>
    </select>
    <%
    rs5.Close
    Set rs5 = Nothing
    %>
    </td>
    </tr>

    <tr>
    <td>
    <b>
    <%
    if Session("SystemActivity2") = "" then
    response.write "Activity 2:"
    else
    response.write Session("SystemActivity2") & ":"
    end if
    %>
    </b>
    </td>
    <td>
    <%
    mySQL = "Select Activity from Activity2 where ActiveFlag = TRUE order
    by Activity"
    rs3.open mySQL,myDSN
    %>
    <select name="lbActivity2" size="1">
    <option></option>
    <%
    Do While Not rs3.EOF
    response.write "<option>"
    response.write rs3("Activity")
    response.write "</option>"
    rs3.MoveNext
    Loop
    %>
    </select>
    <%
    rs3.Close
    Set rs3 = Nothing
    %>
    </td>
    </tr>

    <tr>
    <td>
    <b>
    <%
    if Session("SystemActivity3") = "" then
    response.write "Activity 3:"
    else
    response.write Session("SystemActivity3") & ":"
    end if
    %>
    </b>
    </td>
    <td>
    <%
    mySQL = "Select Activity from Activity3 where ActiveFlag = TRUE order
    by Activity"
    rs2.open mySQL,myDSN
    %>
    <select name="lbActivity3" size="1">
    <option></option>
    <%
    Do While Not rs2.EOF
    response.write "<option>"
    response.write rs2("Activity")
    response.write "</option>"
    rs2.MoveNext
    Loop
    %>
    </select>
    <%
    rs2.Close
    Set rs2 = Nothing
    %>
    </td>
    </tr>

    <tr>
    <td>
    <b>
    <%
    if Session("SystemActivity4") = "" then
    response.write "Activity 4:"
    else
    response.write Session("SystemActivity4") & ":"
    end if
    %>
    </b>
    </td>
    <td>
    <%
    mySQL = "Select Activity from Activity4 where ActiveFlag = TRUE order
    by Activity"
    rs6.open mySQL,myDSN
    %>
    <select name="lbActivity4" size="1">
    <option></option>
    <%
    Do While Not rs6.EOF
    response.write "<option>"
    response.write rs6("Activity")
    response.write "</option>"
    rs6.MoveNext
    Loop
    response.write "</select>"
    rs6.Close
    Set rs6 = Nothing
    %>
    </td>
    </tr>

    <tr>
    <td>
    <b>
    Hours:
    </b>
    </td>
    <td>
    <input type=text name="txtHours" size=10>
    </td>
    </tr>

    <tr>
    <td valign=top>
    <b>
    Description:
    </b>
    </td>
    <td>
    <textarea rows="5" cols="50" Name="txtDescription"></textarea>
    </td>
    </tr>

    </table>

    <!-- #include file=inc_Buttons.asp -->

    </form>

    </body>
    </html>
     
    PW, Jun 10, 2006
    #4
  5. PW

    Mike Brind Guest

    You need to start tasking things out one by one to see what causes it.
    I'd start with the javascript, myself.
     
    Mike Brind, Jun 10, 2006
    #5
  6. Hi,

    I also face the same problem.

    I tried with different ways but no use.

    1. Set Nothing for opened objects.
    2. Use Response.Flush
    3. Set Response.Buffer = True.

    If any one help on this, it would be grateful to you.
     
    Mohammed Igbal, Jun 23, 2006
    #6
  7. PW

    Mike Brind Guest

    And you leave us with the same problem. No code to look at to even
    begin to be able to help you....
     
    Mike Brind, Jun 23, 2006
    #7
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.