Simultaneous fill out and display of a form

W

W

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.
 
B

Bob Barrows [MVP]

W said:
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?
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.jscript
or comp.lang.javascript.
 
E

Evertjan.

W wrote on 09 mei 2006 in microsoft.public.inetserver.asp.general:
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?

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("x1")<>"" then
application("a1") = application("a1")&"<br>"&request.form("x1")
end if
%>
<%=application("a1")%>
<br><br>
<form method=post>
<input name=x1 value='<%=application("a1")%>'>
<input type=submit>
</form>

not tested
 
E

Evertjan.

Evertjan. wrote on 09 mei 2006 in
microsoft.public.inetserver.asp.general:
W wrote on 09 mei 2006 in microsoft.public.inetserver.asp.general:
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?

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("x1")<>"" then
application("a1") = application("a1")&"<br>"&request.form("x1")
end if
%>
<%=application("a1")%>
<br><br>
<form method=post>
<input name=x1 value='<%=application("a1")%>'>

sorry:
 

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. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,262
Messages
2,571,055
Members
48,769
Latest member
Clifft

Latest Threads

Top