|
 |
asp_databases thread: Re: textboxes in ASP
Message #1 by shrij@v... on Wed, 17 Jan 2001 15:05:40 +0530 (IST)
|
|
Hi Hiro
For example, I want to add numbers from Textbox1 to Textbox2 and show
the results on Textbox3.
-- Do u want to do it client side or server side
-- if client side, then use javascript,
-- if server side(which is not wise), use vbscript
-- just call for more clarification if necessary
Regds
Shreekar Joshi
Message #2 by PERRETTA Franco <Franco.PERRETTA@c...> on Wed, 17 Jan 2001 12:00:04 +0100
|
|
Hi Hiro,
Here you have an example about your request.
Regards
Franco
============================================================================
=====
<TABLE>
<TR>
<TD width="88" align="middle" height="19"><INPUT NAME="MornHourArr>"
size="5" maxlength="5" onchange=SumMorn() onKeyPress=testKeyNumPo(event)
Value=0></TD>
<TD width="90" align="middle" height="19"><INPUT NAME="MornHourDep>"
size="5" maxlength="5" onchange=SumMorn() onKeyPress=testKeyNumPo(event)
Value=0></TD>
<TD width="102" align="middle" height="19"><INPUT NAME="MornHourTo>"
size="5" readOnly Value=0 style="BACKGROUND-COLOR: #ccffff; FONT-WEIGHT:
bold"></TD>
</TR>
</TABLE>
function SumMorn()
{
if (FormButton.elements["MornHourArr"].value>23)
{
alert("Vous aviez entre un horaire inexistent");
FormButton.elements["MornHourDep"].focus();
} //if
else
FormButton.elements["MornHourTot"].value
FormButton.elements["MornHourDep"].value -
FormButton.elements["MornHourArr"].value;
} //function
============================================================================
=====
Franco
___________________________________
Perretta Franco
software developer
Council of Europe
Department of Information Technology
Information Access Unit
67075 Strasbourg Cedex
tel: +33 (0)3 88 41 22 18 fax: +33 (0)3 88 41 27 39
mailto:franco.perretta@c...
http://www.coe.int
-----Original Message-----
From: shrij@v... [mailto:shrij@v...]
Sent: Wednesday 17 January 2001 10:36
To: ASP Databases
Subject: [asp_databases] Re: textboxes in ASP
Hi Hiro
For example, I want to add numbers from Textbox1 to Textbox2 and show
the results on Textbox3.
-- Do u want to do it client side or server side
-- if client side, then use javascript,
-- if server side(which is not wise), use vbscript
-- just call for more clarification if necessary
Regds
Shreekar Joshi
Message #3 by "Suzanne M. Haig" <smhaig@t...> on Wed, 17 Jan 2001 11:41:27 -0500
|
|
Hi I am new to asp and am wondering why you are suggesting that it is not
wise to do the add routine from textboxes on the server side and instead to
do it on the client side. Is it a speed consideration? If it is down on
the server side, then one does not have to worry about the browser in use.
I would be interested in hearing more of the pros and cons of this from you.
thanks
SM Haig
-----Original Message-----
From: shrij@v... [mailto:shrij@v...]
Sent: Wednesday, January 17, 2001 4:36 AM
To: ASP Databases
Subject: [asp_databases] Re: textboxes in ASP
Hi Hiro
For example, I want to add numbers from Textbox1 to Textbox2 and show
the results on Textbox3.
-- Do u want to do it client side or server side
-- if client side, then use javascript,
-- if server side(which is not wise), use vbscript
-- just call for more clarification if necessary
Regds
Shreekar Joshi
Message #4 by Gregory_Griffiths@c... on Wed, 17 Jan 2001 17:19:14 +0000
|
|
Doing it on the server side does increase the load and traffic on the
server, so doing it on the client is quicker, there may be other
considerations that others here will highlight.
|
|
 |