Hi Oleg

the following function works for getting the previous page


 <cffunction   name="backbutton" returntype="any">

 <cfargument name="previouspage" required="yes" type="string">

  <cfsavecontent  variable="backbtn">

      <cfoutput>

    <form name="f1" method="post" action="index.cfm
?fuseaction=#arguments.previouspage#">



       <input type="hidden" name="bBtn" value="true">

       <cfset varstring="">

       <cfset formstring="">

<!--- Loop for getting all the form field data in the Hidden fileds--->

       <cfloop collection="#form#" item="varname">

             <input type="hidden" name="#varname#" value="#Form[VarName]#">

            <cfset varstring=varstring & varname & "*">

            <cfset formstring=formstring & Form[VarName] & "*">

         </cfloop>

       <input type="hidden" name="varstring" value="#varstring#">

       <input type="hidden" name="formstring" value="#formstring#">



       <input type="submit" value="Back">

    </form></cfoutput>

 </cfsavecontent>

 <cfreturn backbtn>

</cffunction>

Srinivas Ganta

On 3/21/06, Oleg Gunkin <[EMAIL PROTECTED]> wrote:
>
> I am looking for a way to find out what was the previous page. I cannot
> just use history.back() javascript because I have to do something before
> redirecting to a previous page. I would really appreciate any suggestions.
>
> --
> Oleg Gunkin
> Email: [EMAIL PROTECTED]
> Phone: (604) 666-9392
> Emerging Technologies / Pacific Web Services
> Information Technology Services
> Public Works and Government Services Canada (Pacific)
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:235844
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to