Enter some text and click submit:
[allowsmilie] => 1 [showsignature] => 0 [ipaddress] => [iconid] => 0 [visible] => 1 [attach] => 0 [infraction] => 0 [reportthreadid] => 0 [isusenetpost] => 1 [msgid] => [ref] => [htmlstate] => on_nl2br [postusername] => Bob Barrows [ip] => reb01501@NOyaho [isdeleted] => 0 [usergroupid] => [membergroupids] => [displaygroupid] => [password] => [passworddate] => [email] => [styleid] => [parentemail] => [homepage] => [icq] => [aim] => [yahoo] => [msn] => [skype] => [showvbcode] => [showbirthday] => [usertitle] => [customtitle] => [joindate] => [daysprune] => [lastvisit] => [lastactivity] => [lastpost] => [lastpostid] => [posts] => [reputation] => [reputationlevelid] => [timezoneoffset] => [pmpopup] => [avatarid] => [avatarrevision] => [profilepicrevision] => [sigpicrevision] => [options] => [akvbghsfs_optionsfield] => [birthday] => [birthday_search] => [maxposts] => [startofweek] => [referrerid] => [languageid] => [emailstamp] => [threadedmode] => [autosubscribe] => [pmtotal] => [pmunread] => [salt] => [ipoints] => [infractions] => [warnings] => [infractiongroupids] => [infractiongroupid] => [adminoptions] => [profilevisits] => [friendcount] => [friendreqcount] => [vmunreadcount] => [vmmoderatedcount] => [socgroupinvitecount] => [socgroupreqcount] => [pcunreadcount] => [pcmoderatedcount] => [gmmoderatedcount] => [assetposthash] => [fbuserid] => [fbjoindate] => [fbname] => [logintype] => [fbaccesstoken] => [newrepcount] => [vbseo_likes_in] => [vbseo_likes_out] => [vbseo_likes_unread] => [temp] => [field1] => [field2] => [field3] => [field4] => [field5] => [subfolders] => [pmfolders] => [buddylist] => [ignorelist] => [signature] => [searchprefs] => [rank] => [icontitle] => [iconpath] => [avatarpath] => [hascustomavatar] => 0 [avatardateline] => [avwidth] => [avheight] => [edit_userid] => [edit_username] => [edit_dateline] => [edit_reason] => [hashistory] => [pagetext_html] => [hasimages] => [signatureparsed] => [sighasimages] => [sigpic] => [sigpicdateline] => [sigpicwidth] => [sigpicheight] => [postcount] => 2 [islastshown] => [isfirstshown] => [attachments] => [allattachments] => ) --> <% if len(Request.Form("text1")) > 0 then Response.Write "
Processing
" 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 "
" & "Nothing to process" & "
" Response.Flush end if %>
Enter some text and click submit:
[allowsmilie] => 1 [showsignature] => 0 [ipaddress] => [iconid] => 0 [visible] => 1 [attach] => 0 [infraction] => 0 [reportthreadid] => 0 [isusenetpost] => 1 [msgid] => [ref] => [htmlstate] => on_nl2br [postusername] => Bob Barrows [ip] => reb01501@NOyaho [isdeleted] => 0 [usergroupid] => [membergroupids] => [displaygroupid] => [password] => [passworddate] => [email] => [styleid] => [parentemail] => [homepage] => [icq] => [aim] => [yahoo] => [msn] => [skype] => [showvbcode] => [showbirthday] => [usertitle] => [customtitle] => [joindate] => [daysprune] => [lastvisit] => [lastactivity] => [lastpost] => [lastpostid] => [posts] => [reputation] => [reputationlevelid] => [timezoneoffset] => [pmpopup] => [avatarid] => [avatarrevision] => [profilepicrevision] => [sigpicrevision] => [options] => [akvbghsfs_optionsfield] => [birthday] => [birthday_search] => [maxposts] => [startofweek] => [referrerid] => [languageid] => [emailstamp] => [threadedmode] => [autosubscribe] => [pmtotal] => [pmunread] => [salt] => [ipoints] => [infractions] => [warnings] => [infractiongroupids] => [infractiongroupid] => [adminoptions] => [profilevisits] => [friendcount] => [friendreqcount] => [vmunreadcount] => [vmmoderatedcount] => [socgroupinvitecount] => [socgroupreqcount] => [pcunreadcount] => [pcmoderatedcount] => [gmmoderatedcount] => [assetposthash] => [fbuserid] => [fbjoindate] => [fbname] => [logintype] => [fbaccesstoken] => [newrepcount] => [vbseo_likes_in] => [vbseo_likes_out] => [vbseo_likes_unread] => [temp] => [field1] => [field2] => [field3] => [field4] => [field5] => [subfolders] => [pmfolders] => [buddylist] => [ignorelist] => [signature] => [searchprefs] => [rank] => [icontitle] => [iconpath] => [avatarpath] => [hascustomavatar] => 0 [avatardateline] => [avwidth] => [avheight] => [edit_userid] => [edit_username] => [edit_dateline] => [edit_reason] => [hashistory] => [pagetext_html] => [hasimages] => [signatureparsed] => [sighasimages] => [sigpic] => [sigpicdateline] => [sigpicwidth] => [sigpicheight] => [postcount] => 3 [islastshown] => [isfirstshown] => [attachments] => [allattachments] => ) --> > > > > <% > if len(Request.Form("text1")) > 0 then > Response.Write "
Processing
" > 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 "
" & "Nothing to process" & "
" > Response.Flush > end if > %> > >
> Enter some text and click submit: > > >
> > > > > > >[/quote] [allowsmilie] => 1 [showsignature] => 0 [ipaddress] => [iconid] => 0 [visible] => 1 [attach] => 0 [infraction] => 0 [reportthreadid] => 0 [isusenetpost] => 1 [msgid] => [ref] => [htmlstate] => on_nl2br [postusername] => Freeserve [ip] => nospam@bigfoot. [isdeleted] => 0 [usergroupid] => [membergroupids] => [displaygroupid] => [password] => [passworddate] => [email] => [styleid] => [parentemail] => [homepage] => [icq] => [aim] => [yahoo] => [msn] => [skype] => [showvbcode] => [showbirthday] => [usertitle] => [customtitle] => [joindate] => [daysprune] => [lastvisit] => [lastactivity] => [lastpost] => [lastpostid] => [posts] => [reputation] => [reputationlevelid] => [timezoneoffset] => [pmpopup] => [avatarid] => [avatarrevision] => [profilepicrevision] => [sigpicrevision] => [options] => [akvbghsfs_optionsfield] => [birthday] => [birthday_search] => [maxposts] => [startofweek] => [referrerid] => [languageid] => [emailstamp] => [threadedmode] => [autosubscribe] => [pmtotal] => [pmunread] => [salt] => [ipoints] => [infractions] => [warnings] => [infractiongroupids] => [infractiongroupid] => [adminoptions] => [profilevisits] => [friendcount] => [friendreqcount] => [vmunreadcount] => [vmmoderatedcount] => [socgroupinvitecount] => [socgroupreqcount] => [pcunreadcount] => [pcmoderatedcount] => [gmmoderatedcount] => [assetposthash] => [fbuserid] => [fbjoindate] => [fbname] => [logintype] => [fbaccesstoken] => [newrepcount] => [vbseo_likes_in] => [vbseo_likes_out] => [vbseo_likes_unread] => [temp] => [field1] => [field2] => [field3] => [field4] => [field5] => [subfolders] => [pmfolders] => [buddylist] => [ignorelist] => [signature] => [searchprefs] => [rank] => [icontitle] => [iconpath] => [avatarpath] => [hascustomavatar] => 0 [avatardateline] => [avwidth] => [avheight] => [edit_userid] => [edit_username] => [edit_dateline] => [edit_reason] => [hashistory] => [pagetext_html] => [hasimages] => [signatureparsed] => [sighasimages] => [sigpic] => [sigpicdateline] => [sigpicwidth] => [sigpicheight] => [postcount] => 4 [islastshown] => [isfirstshown] => [attachments] => [allattachments] => ) --> forms question - ASP

forms question - ASP

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

  1. #1

    Default 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

  2. #2

    Default Re: forms question

    Freeserve wrote:
    > 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?
    Sure. This is a client-side code question and should have been posted to one
    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.
    > 2. Is it possible to cause a "processing" banner to be displayed
    > until the page gets refreshed?
    >
    There is a method which sometimes works, sometimes doesn't. It requires a
    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

  3. #3

    Default 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

  4. #4

    Default Re: forms question

    Thanks for the info. I will try and get the correct group next time!

    "Bob Barrows" <reb01501NOyahoo.SPAMcom> wrote in message
    news:eXK41NaiDHA.3104TK2MSFTNGP11.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

  5. #5

    Default 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

Similar Threads

  1. question about forms
    By ejo@adobeforums.com in forum Adobe Acrobat Macintosh
    Replies: 1
    Last Post: November 30th, 07:16 PM
  2. Forms Authentication Question
    By bill yeager in forum ASP.NET Security
    Replies: 21
    Last Post: January 23rd, 06:02 PM
  3. question about flash forms
    By oo in forum Macromedia Flash
    Replies: 1
    Last Post: January 15th, 10:22 PM
  4. PHP4 forms question
    By Nisha_tm in forum PHP Development
    Replies: 0
    Last Post: July 24th, 01:03 AM
  5. Little question about forms
    By Johan in forum Microsoft Access
    Replies: 1
    Last Post: July 20th, 11:43 AM

Bookmarks

Posting Permissions

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