Ask a Question related to ASP, Design and Development.
-
Freeserve #1
forms question
Hi,
I have a form with some fields and a submit button. The submit button posts
the results to itself, which are then processed. I have 2 questions:
1. Is it possible to have a series of button each of which changes one of
the items posted and then posts the form?
2. Is it possible to cause a "processing" banner to be displayed until the
page gets refreshed?
Thanks.
Freeserve Guest
-
question about forms
I have run into a few problems when creating an interactive form in acrobat 7 pro. 1. Calculation fields don't seem to add up totals right away.... -
question about flash forms
Hi All, Am fairly new to flash and need to re-code a HTML domain name checking form, to a Flash based version. Can anyone help? This is the... -
Forms Authentication Question
Everything is working in my authentication process except for the fact that I can't retrieve the "UserData" property from the... -
asp.net FORMS authentication question
hi all with forms authentication, how does that work for a site with introduction and tour or maybe some more pages? by using forms... -
Little question about forms
I'm making a database at home. I take care of my forms, to fit them on the screen i.e. when the form is maximised, the information on it (lists,... -
Bob Barrows #2
Re: forms question
Freeserve wrote:
Sure. This is a client-side code question and should have been posted to one> Hi,
> I have a form with some fields and a submit button. The submit
> button posts the results to itself, which are then processed. I have
> 2 questions:
>
> 1. Is it possible to have a series of button each of which changes
> one of the items posted and then posts the form?
of the dhtml groups, but, assuming you;ve set the form's id property to
"myForm":
1. give your textbox an id (set its id property), say id="txt1"
2. give the button that controls that textbox a unique id, say id="cmd1"
3. In a script block, create a cmd1_onclick sub if you are using vbscript,
or function if jscript. Write the code to set the textbox's value property:
myForm.txt1.value = "something"
and call the form's submit method:
vbscript:
myForm.submit
jscript:
myForm.submit()
This is your last free pass :-)
In the future submit client-side code questions to the appopripriate
newsgroup and indicate which script language you intend to use.
There is a method which sometimes works, sometimes doesn't. It requires a> 2. Is it possible to cause a "processing" banner to be displayed
> until the page gets refreshed?
>
combination of server-side and client-side code:
Make sure buffering is on and then use response.flush to display your
message. Then do your processing and hide the message in the window's onload
event. Here is an example:
<%@ Language=VBScript %>
<%
Response.Buffer=true
%>
<%
if len(Request.Form("text1")) > 0 then
Response.Write "<div id=""divPrc"">Processing</div>"
Response.Flush
dim t
t=now
t=dateadd("s",3,t)
do until now > t
loop
else
//we need the div to be there - this message will never be seen
Response.Write "<div id=""divPrc"">" & "Nothing to process" & "</div>"
Response.Flush
end if
%>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>
<!--
function window_onload() {
divPrc.style.display="none";
/*the following line is optional - do not use this if you are submitting
to another page*/
MyForm.action=window.location;
}
//-->
</SCRIPT>
</HEAD>
<BODY LANGUAGE=javascript onload="return window_onload()">
<form id="MyForm" method="post">
Enter some text and click submit:
<INPUT type="text" id=text1 name=text1>
<INPUT type="submit" value="Submit" id=submit1 name=submit1>
</form>
</BODY>
</HTML>
Bob Barrows Guest
-
Bob Barrows #3
Re: forms question
Correction:
<%@ Language=VBScript %>
<%
Response.Buffer=true
%>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>
<!--
function window_onload() {
divPrc.style.display="none";
/*the following line is optional - do not use this if you are submitting
to another page*/
MyForm.action=window.location;
}
//-->
</SCRIPT>
</HEAD>
<BODY LANGUAGE=javascript onload="return window_onload()">
<%
if len(Request.Form("text1")) > 0 then
Response.Write "<div id=""divPrc"">Processing</div>"
Response.Flush
dim t
t=now
t=dateadd("s",3,t)
do until now > t
loop
else
//we need the div to be there - this message will never be seen
Response.Write "<div id=""divPrc"">" & "Nothing to process" & "</div>"
Response.Flush
end if
%>
<form id="MyForm" method="post">
Enter some text and click submit:
<INPUT type="text" id=text1 name=text1>
<INPUT type="submit" value="Submit" id=submit1 name=submit1>
</form>
</BODY>
</HTML>
Bob Barrows Guest
-
Freeserve #4
Re: forms question
Thanks for the info. I will try and get the correct group next time!
"Bob Barrows" <reb01501@NOyahoo.SPAMcom> wrote in message
news:eXK41NaiDHA.3104@TK2MSFTNGP11.phx.gbl...> Correction:
> <%@ Language=VBScript %>
> <%
> Response.Buffer=true
> %>
> <HTML>
> <HEAD>
> <META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
> <SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>
> <!--
>
> function window_onload() {
> divPrc.style.display="none";
> /*the following line is optional - do not use this if you are submitting
> to another page*/
> MyForm.action=window.location;
> }
>
> //-->
> </SCRIPT>
> </HEAD>
> <BODY LANGUAGE=javascript onload="return window_onload()">
> <%
> if len(Request.Form("text1")) > 0 then
> Response.Write "<div id=""divPrc"">Processing</div>"
> Response.Flush
> dim t
> t=now
> t=dateadd("s",3,t)
> do until now > t
> loop
> else
> //we need the div to be there - this message will never be seen
> Response.Write "<div id=""divPrc"">" & "Nothing to process" & "</div>"
> Response.Flush
> end if
> %>
>
> <form id="MyForm" method="post">
> Enter some text and click submit:
> <INPUT type="text" id=text1 name=text1>
> <INPUT type="submit" value="Submit" id=submit1 name=submit1>
> </form>
>
> </BODY>
> </HTML>
>
>
>
>
Freeserve Guest
-
CoolD78 #5
Forms Question
I'm creating a multi-page website for different store locations. At each
location, the customer can access the following common Coupon Request Form:
mysite.com/coupon.html
I have a form list with 17 of the store locations. Is it possible to have the
"Store Location" field's Initial Value change based on the previous page they
came from? To make this easier for the customer.
The form is inside the coupon.html page. The LIST element id & name is:
storelocation. The form's ACTION is set to:
coupon_rqst.php
I used a program called "Forms to Go" to create the PHP script.
Please help. Thanks
CoolD78 Guest



Reply With Quote

