Simultaneous fill out and display of a form

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • W

    Simultaneous fill out and display of a form

    I would like to make a form that multiple people can access and update at
    same time with their web browser. The form would have fields that each would
    fill in and I would like for all to see what the others fill in. Is there an
    automatic way or would they have to refresh?

    Any books, etc. to help would be great. Thank you.


  • Bob Barrows [MVP]

    #2
    Re: Simultaneous fill out and display of a form

    W wrote:[color=blue]
    > I would like to make a form that multiple people can access and
    > update at same time with their web browser. The form would have
    > fields that each would fill in and I would like for all to see what
    > the others fill in. Is there an automatic way or would they have to
    > refresh?[/color]
    How frustrating would that be?!? I just spent time filling in my stuff only
    to have it be overwritten by stuff another user entered?!?

    So, in the simplest form, yes, the user would have to refresh.
    Using AJAX, which is offtopic in this group, you can use client-side
    scripting to send requests to the web server without submitting your form.
    There's a wealth of information about AJAX and using the XMLHTTPRequest
    object that can be quickly seen via the use of Google. When you have
    specific questions, see a client-side newsgroup such as .scripting.jscr ipt
    or comp.lang.javas cript.

    --
    Microsoft MVP - ASP/ASP.NET
    Please reply to the newsgroup. This email account is my spam trap so I
    don't check it very often. If you must reply off-line, then remove the
    "NO SPAM"


    Comment

    • Evertjan.

      #3
      Re: Simultaneous fill out and display of a form

      W wrote on 09 mei 2006 in microsoft.publi c.inetserver.as p.general:
      [color=blue]
      > I would like to make a form that multiple people can access and update
      > at same time with their web browser. The form would have fields that
      > each would fill in and I would like for all to see what the others
      > fill in. Is there an automatic way or would they have to refresh?[/color]

      if you do not need the data to persist on server/IIS down,
      application varables will do fine.

      You will have to refresh [or do an AJAX like connection].

      Beware of data clash.

      ========= refreshing example of minimalistic chatbox ===========

      <meta http-equiv="refresh" content="10">
      <%
      if request.form("x 1")<>"" then
      application("a1 ") = application("a1 ")&"<br>"&reque st.form("x1")
      end if
      %>
      <%=application( "a1")%>
      <br><br>
      <form method=post>
      <input name=x1 value='<%=appli cation("a1")%>' >
      <input type=submit>
      </form>

      not tested

      --
      Evertjan.
      The Netherlands.
      (Please change the x'es to dots in my emailaddress)

      Comment

      • Evertjan.

        #4
        Re: Simultaneous fill out and display of a form

        Evertjan. wrote on 09 mei 2006 in
        microsoft.publi c.inetserver.as p.general:
        [color=blue]
        > W wrote on 09 mei 2006 in microsoft.publi c.inetserver.as p.general:
        >[color=green]
        >> I would like to make a form that multiple people can access and update
        >> at same time with their web browser. The form would have fields that
        >> each would fill in and I would like for all to see what the others
        >> fill in. Is there an automatic way or would they have to refresh?[/color]
        >
        > if you do not need the data to persist on server/IIS down,
        > application varables will do fine.
        >
        > You will have to refresh [or do an AJAX like connection].
        >
        > Beware of data clash.
        >
        > ========= refreshing example of minimalistic chatbox ===========
        >
        > <meta http-equiv="refresh" content="10">
        > <%
        > if request.form("x 1")<>"" then
        > application("a1 ") = application("a1 ")&"<br>"&reque st.form("x1")
        > end if
        > %>
        > <%=application( "a1")%>
        > <br><br>
        > <form method=post>
        > <input name=x1 value='<%=appli cation("a1")%>' >[/color]

        sorry:

        <input name=x1 value=''>
        [color=blue]
        > <input type=submit>
        > </form>
        >
        > not tested
        >[/color]



        --
        Evertjan.
        The Netherlands.
        (Please change the x'es to dots in my emailaddress)

        Comment

        Working...