[/quote] [allowsmilie] => 1 [showsignature] => 0 [ipaddress] => [iconid] => 0 [visible] => 1 [attach] => 0 [infraction] => 0 [reportthreadid] => 0 [isusenetpost] => 1 [msgid] => [ref] => [htmlstate] => on_nl2br [postusername] => Marvin Thompson [ip] => marv@wavefront. [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] => 1 [islastshown] => [isfirstshown] => 1 [attachments] => [allattachments] => ) -->[/quote] > >[/quote] >[/quote] [allowsmilie] => 1 [showsignature] => 0 [ipaddress] => [iconid] => 0 [visible] => 1 [attach] => 0 [infraction] => 0 [reportthreadid] => 0 [isusenetpost] => 1 [msgid] => [ref] => [htmlstate] => on_nl2br [postusername] => Marvin Thompson [ip] => marv@wavefront. [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] => ) -->[/quote] [allowsmilie] => 1 [showsignature] => 0 [ipaddress] => [iconid] => 0 [visible] => 1 [attach] => 0 [infraction] => 0 [reportthreadid] => 0 [isusenetpost] => 1 [msgid] => [ref] => [htmlstate] => on_nl2br [postusername] => Linda [ip] => Linda@LindaLeac [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] => 5 [islastshown] => [isfirstshown] => [attachments] => [allattachments] => ) -->[/quote] [allowsmilie] => 1 [showsignature] => 0 [ipaddress] => [iconid] => 0 [visible] => 1 [attach] => 0 [infraction] => 0 [reportthreadid] => 0 [isusenetpost] => 1 [msgid] => <#z7CYkBYDHA.1280@tk2msftngp13.phx.gbl> [ref] => [htmlstate] => on_nl2br [postusername] => Bob Barrows [ip] => reb_01501@yahoo [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] => 6 [islastshown] => 1 [isfirstshown] => [attachments] => [allattachments] => ) --> Displaying calculation result without reloading whole ASP page - ASP

Displaying calculation result without reloading whole ASP page - ASP

If the calculation is simple and you do not care if the user sees the algorithm, do the calculation in JavaScript and do not go back to the server. "Aspersion" <aspersionexasperated.btopenworld.com> wrote in message news:be77fc$1sosv$1ID-13547.news.dfncis.de... > > > I'm building an ASP page that has a lot of text and graphics. > > There is a calculation facility on the page. The user enters several > numbers in a form and presses a button to see the calculated answer. > > The problem is this: when the user presses the Calculate button, the > whole page is reloaded and, on ...

  1. #1

    Default Re: Displaying calculation result without reloading whole ASP page

    If the calculation is simple and you do not care if the user sees the
    algorithm, do the calculation in JavaScript and do not go back to the
    server.

    "Aspersion" <aspersionexasperated.btopenworld.com> wrote in message
    news:be77fc$1sosv$1ID-13547.news.dfncis.de...
    >
    >
    > I'm building an ASP page that has a lot of text and graphics.
    >
    > There is a calculation facility on the page. The user enters several
    > numbers in a form and presses a button to see the calculated answer.
    >
    > The problem is this: when the user presses the Calculate button, the
    > whole page is reloaded and, on a large page, this is very noticeable.
    >
    > Is there any way that I can get the calculation done and the result
    > displayed without reloading the whole page?
    >
    > A simplified version of the page "calctest.asp" is shown below.
    >
    > <!-- ignore html on usenet
    > <html>
    > <head>
    > <title>
    > This is calctest.asp
    > </title>
    > </head>
    >
    > <body>
    > <h1>This is the test page</h1>
    >
    > There are a lot of words and graphics displayed here.
    >
    > <%
    > Var1 = trim(Request.Form("VarA"))
    > Var2 = trim(Request.Form("VarB"))
    > Var3 = Var1 * Var2
    > %>
    >
    > <FORM Name=Calculation Action=calctest.asp Method=Post>
    > <input type="text" name="VarA" size="2" value=<%=Var1%>>
    > &nbsp;
    > <input type="text" name="VarB" size="2" value=<%=Var2%>>
    > &nbsp;
    > <input type="text" name="VarC" size="3" value=<%=Var3%>>
    > &nbsp;
    > <INPUT Type="Submit" Value="Calculate" Name="btnSubmit">
    > <p>
    > </FORM>
    >
    > </body>
    > </html>
    > end ignore html on usenet -->

    Marvin Thompson Guest

  2. #2

    Default Re: Displaying calculation result without reloading whole ASP page

    OK, you can hide the algorithm with an include file. As for JavaScript,
    only IE understands VBscript. All browsers understand JavaScript. All
    client side scripting requires that you learn JavaScript. Server side
    scripting can be VBscript. Good luck.


    "Aspersion" <aspersionexasperated.btopenworld.com> wrote in message
    news:be798r$21oa8$1ID-13547.news.dfncis.de...
    > On Sat, 5 Jul 2003 14:12:23 -0500, "Marvin Thompson"
    > <marvwavefront.com> wrote:
    >
    > >If the calculation is simple and you do not care if the user sees the
    > >algorithm, do the calculation in JavaScript and do not go back to the
    > >server.
    >
    > Thanks, but I don't want the user to know how the calculation works.
    > As for JavaScript, not everyone uses it.
    >
    > >"Aspersion" <aspersionexasperated.btopenworld.com> wrote in message
    > >news:be77fc$1sosv$1ID-13547.news.dfncis.de...
    > >>
    > >>
    > >> I'm building an ASP page that has a lot of text and graphics.
    > >>
    > >> There is a calculation facility on the page. The user enters several
    > >> numbers in a form and presses a button to see the calculated answer.
    > >>
    > >> The problem is this: when the user presses the Calculate button, the
    > >> whole page is reloaded and, on a large page, this is very noticeable.
    > >>
    > >> Is there any way that I can get the calculation done and the result
    > >> displayed without reloading the whole page?
    > >>
    > >> A simplified version of the page "calctest.asp" is shown below.
    > >>
    > >> <!-- ignore html on usenet
    > >> <html>
    > >> <head>
    > >> <title>
    > >> This is calctest.asp
    > >> </title>
    > >> </head>
    > >>
    > >> <body>
    > >> <h1>This is the test page</h1>
    > >>
    > >> There are a lot of words and graphics displayed here.
    > >>
    > >> <%
    > >> Var1 = trim(Request.Form("VarA"))
    > >> Var2 = trim(Request.Form("VarB"))
    > >> Var3 = Var1 * Var2
    > >> %>
    > >>
    > >> <FORM Name=Calculation Action=calctest.asp Method=Post>
    > >> <input type="text" name="VarA" size="2" value=<%=Var1%>>
    > >> &nbsp;
    > >> <input type="text" name="VarB" size="2" value=<%=Var2%>>
    > >> &nbsp;
    > >> <input type="text" name="VarC" size="3" value=<%=Var3%>>
    > >> &nbsp;
    > >> <INPUT Type="Submit" Value="Calculate" Name="btnSubmit">
    > >> <p>
    > >> </FORM>
    > >>
    > >> </body>
    > >> </html>
    > >> end ignore html on usenet -->
    > >
    >

    Marvin Thompson Guest

  3. #3

    Default Re: Displaying calculation result without reloading whole ASP page

    Aspersion wrote on 06 jul 2003 in
    microsoft.public.inetserver.asp.general:
    > On 05 Jul 2003 20:01:29 GMT, "Evertjan." wrote:
    >>Aspersion wrote on 05 jul 2003 :
    >>> Thanks, but I don't want the user to know how the calculation works.
    >>> As for JavaScript, not everyone uses it.
    >>
    >>You can do this with concealed iframes, but you will need clientside
    >>code to realize this.
    >
    > Thanks, but I don't want any client side code. The whole process must
    > run on the server.
    That is what I said. The proces runs on the server, but either you load a
    new page everuy time or you use clientside code to load the output in a
    concealed iframe and then using it on your initial page.

    That is your choice
    > Some users disable JavaScript
    You mean, I think, some users disable clientside code, this can be
    javascript and [in IE] vbscript, just as serverside code can be in
    javascript, vbscript, and many more.
    > and, besides, I don't want to make the code visible.
    The code of your secret algorithm is not accessable, as it stays
    serverside. only the code to enter the result on the clients screen
    without a total refresh is clientside.
    > That leaves me with the original problem: how do I refresh a box on
    > the page to show a calculated result without having to re-send the
    > whole page?
    Impossible without clientside scripting.


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

  4. Moderated Post

    Default Re: Displaying calculation result without reloading whole ASP page

    Removed by Administrator
    1-1-2-Trialkyl-Methylsulfonyl-Trichloroallanoyl-1-3-2-Methoxybenzene Guest
    Moderated Post

  5. #5

    Default Re: Displaying calculation result without reloading whole ASP page

    Have you tried using Remote Scripting? The premise of this technology is
    that it will do calculations without reloading the whole page. It's

    tricky...you'll have to read the doentation on it carefully, (and it
    doesn't work in Netscape) but, if you have a specific audience that uses

    only IE it can be your answer.

    Good luck,

    Linda

    "Aspersion" <aspersionexasperated.btopenworld.com> wrote in message
    news:be77fc$1sosv$1ID-13547.news.dfncis.de...
    >
    >
    > I'm building an ASP page that has a lot of text and graphics.
    >
    > There is a calculation facility on the page. The user enters several
    > numbers in a form and presses a button to see the calculated answer.
    >
    > The problem is this: when the user presses the Calculate button, the
    > whole page is reloaded and, on a large page, this is very noticeable.
    >
    > Is there any way that I can get the calculation done and the result
    > displayed without reloading the whole page?
    >
    > A simplified version of the page "calctest.asp" is shown below.
    >
    > <!-- ignore html on usenet
    > <html>
    > <head>
    > <title>
    > This is calctest.asp
    > </title>
    > </head>
    >
    > <body>
    > <h1>This is the test page</h1>
    >
    > There are a lot of words and graphics displayed here.
    >
    > <%
    > Var1 = trim(Request.Form("VarA"))
    > Var2 = trim(Request.Form("VarB"))
    > Var3 = Var1 * Var2
    > %>
    >
    > <FORM Name=Calculation Action=calctest.asp Method=Post>
    > <input type="text" name="VarA" size="2" value=<%=Var1%>>
    > &nbsp;
    > <input type="text" name="VarB" size="2" value=<%=Var2%>>
    > &nbsp;
    > <input type="text" name="VarC" size="3" value=<%=Var3%>>
    > &nbsp;
    > <INPUT Type="Submit" Value="Calculate" Name="btnSubmit">
    > <p>
    > </FORM>
    >
    > </body>
    > </html>
    > end ignore html on usenet -->

    Linda Guest

  6. #6

    Default Re: Displaying calculation result without reloading whole ASP page

    Another option is xmlhttp. I have a demo for this at
    [url]http://tinyurl.com/5luf[/url]. Scroll down to the dynamic listbox example.

    Bob Barrows
    Aspersion wrote:
    > I'm building an ASP page that has a lot of text and graphics.
    >
    > There is a calculation facility on the page. The user enters several
    > numbers in a form and presses a button to see the calculated answer.
    >
    > The problem is this: when the user presses the Calculate button, the
    > whole page is reloaded and, on a large page, this is very noticeable.
    >
    > Is there any way that I can get the calculation done and the result
    > displayed without reloading the whole page?
    >
    > A simplified version of the page "calctest.asp" is shown below.
    >
    > <!-- ignore html on usenet
    > <html>
    > <head>
    > <title>
    > This is calctest.asp
    > </title>
    > </head>
    >
    > <body>
    > <h1>This is the test page</h1>
    >
    > There are a lot of words and graphics displayed here.
    >
    > <%
    > Var1 = trim(Request.Form("VarA"))
    > Var2 = trim(Request.Form("VarB"))
    > Var3 = Var1 * Var2
    > %>
    >
    > <FORM Name=Calculation Action=calctest.asp Method=Post>
    > <input type="text" name="VarA" size="2" value=<%=Var1%>>
    > &nbsp;
    > <input type="text" name="VarB" size="2" value=<%=Var2%>>
    > &nbsp;
    > <input type="text" name="VarC" size="3" value=<%=Var3%>>
    > &nbsp;
    > <INPUT Type="Submit" Value="Calculate" Name="btnSubmit">
    > <p>
    > </FORM>
    >
    > </body>
    > </html>
    > end ignore html on usenet -->

    Bob Barrows Guest

Similar Threads

  1. problems with displaying the result.cfm page
    By vasoulitsa in forum Coldfusion Database Access
    Replies: 21
    Last Post: September 16th, 10:37 AM
  2. Result XML page not displaying
    By mareal in forum ASP.NET Web Services
    Replies: 0
    Last Post: June 8th, 01:41 PM
  3. order table result without reloading
    By Bob Bedford in forum PHP Development
    Replies: 4
    Last Post: January 5th, 05:12 PM
  4. Doing a calculation and displaying
    By bob in forum Microsoft Access
    Replies: 2
    Last Post: July 16th, 12:41 PM
  5. Reloading a page
    By Brian in forum PHP Development
    Replies: 5
    Last Post: July 11th, 09:14 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
  •