|
 |
asptoday_discuss thread: Re: Updation Error
Message #1 by "Bill Cohen" <billcohen@h...> on Tue, 5 Feb 2002 08:40:42 -0600
|
|
I would like a page to automatically submit when the user clicks another
link to go to another page on the site. Is this possible?
We have users that update data on the web site and forget to click submit
before continuing on to other web pages in the site. The data is then lost.
I appreciate any help you folks could offer.
Message #2 by "Dmitry Brook" <brook74@h...> on Tue, 05 Feb 2002 15:01:46 +0000
|
|
Sure it is. Just put JScript function name in href attribute of you
hyperlink (<a href="javascript:smartURL();">My Hyperlink Name</a>).
Within this function put a submit into the form itself and after that by
query string extra parameter re-direct page to another. Also, create a dummy
form especially for storing Redirect Path
<form name="frmRedirectURL" method="POST" action="PageToSubmit.asp">
<input type="hidden" name="redirectURL"/>
<form>
<%
if len(Request("redirectURL"))<>0 then
Response.Redirect(Request("redirectURL"))
end if
%>
fucntion smartURL(){
document.all("redirectURL") = "URLWithcWasPreviously"
document.forms("frmRedirectURL").submit()
}
Cheers.
>From: "Bill Cohen" <billcohen@h...>
>Reply-To: "ASPToday Discuss" <asptoday_discuss@p...>
>To: "ASPToday Discuss" <asptoday_discuss@p...>
>Subject: [asptoday_discuss] Re: Updation Error
>Date: Tue, 5 Feb 2002 08:40:42 -0600
>
>I would like a page to automatically submit when the user clicks another
>link to go to another page on the site. Is this possible?
>
>We have users that update data on the web site and forget to click submit
>before continuing on to other web pages in the site. The data is then
>lost.
>
>I appreciate any help you folks could offer.
>
>
>
_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com
Message #3 by "Dmitry Brook" <brook74@h...> on Tue, 05 Feb 2002 15:12:40 +0000
|
|
Some more words... Actually, this may is artificial... It's better to
re-orinise general architecture... What I'd do... You move to Target page
anyway.. Rigth ? So, do all the transformation at very first lines of your
Target page (all data can be passed by form or query string)... The main is
to mind where is client and where is server ;-)
Cheers.
>From: "Dmitry Brook" <brook74@h...>
>Reply-To: "ASPToday Discuss" <asptoday_discuss@p...>
>To: "ASPToday Discuss" <asptoday_discuss@p...>
>Subject: [asptoday_discuss] Re: Updation Error
>Date: Tue, 05 Feb 2002 15:01:46 +0000
>
>Sure it is. Just put JScript function name in href attribute of you
>hyperlink (<a href="javascript:smartURL();">My Hyperlink Name</a>).
>
>Within this function put a submit into the form itself and after that by
>query string extra parameter re-direct page to another. Also, create a
>dummy
>form especially for storing Redirect Path
>
><form name="frmRedirectURL" method="POST" action="PageToSubmit.asp">
> <input type="hidden" name="redirectURL"/>
><form>
>
>
><%
>if len(Request("redirectURL"))<>0 then
> Response.Redirect(Request("redirectURL"))
>end if
>%>
>
>fucntion smartURL(){
> document.all("redirectURL") = "URLWithcWasPreviously"
> document.forms("frmRedirectURL").submit()
>}
>
>Cheers.
>
>
>
>>From: "Bill Cohen" <billcohen@h...>
>>Reply-To: "ASPToday Discuss" <asptoday_discuss@p...>
>>To: "ASPToday Discuss" <asptoday_discuss@p...>
>>Subject: [asptoday_discuss] Re: Updation Error
>>Date: Tue, 5 Feb 2002 08:40:42 -0600
>>
>>I would like a page to automatically submit when the user clicks another
>>link to go to another page on the site. Is this possible?
>>
>>We have users that update data on the web site and forget to click submit
>>before continuing on to other web pages in the site. The data is then
>>lost.
>>
>>I appreciate any help you folks could offer.
>>
>>
>>
>
>
>_________________________________________________________________
>Chat with friends online, try MSN Messenger: http://messenger.msn.com
>
>
_________________________________________________________________
Join the world?s largest e-mail service with MSN Hotmail.
http://www.hotmail.com
|
|
 |