Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 23rd, 2005, 03:33 AM
Authorized User
 
Join Date: Jun 2005
Posts: 97
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to aldwinenriquez
Default Problem with the Back button

We are implementing a virtual delete(a records timestamp is set to invalid for every deletion,without actually deleting the record) mechanism in our application.

Each object has details,where a user can edit and do other stuff.

When a user deletes an instance of an object, he is redirected to the search page to search for other instances of that object.

Problem is when user deletes an instance of an object,he will be redirected to the search page.But when he hit the Back button of IE,he gets the previous page with object details and can hit any buttons (say edit)within that page.After typing updated details and hitting the OK button,he will prompt to an error message in which all his effort to update a DELETED object where.I know only dumb user will do stuffs like this but can we do something to disable the Back button on some instances?

Yeah my story seems to be long.To sum it up:

CAN I DISABLE THE BACK BUTTON IN IE?


Aldwin Enriquez
President,Software Engineer - Narrasoft Philippines Inc.
__________________
\"Dont you ever give up!\"
 
Old June 23rd, 2005, 06:44 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

Even if you can do some snazzy client side wizardry which I have never seen. Users can simply press Ctrl + N, F11 or right click/back - this brings back the tools including the back button.

My suggestion is to use the JS window.open function creating a window without browser features you dont want - EG:

    var newWindow
    function openNewWin(pageURL, pageName, width, height, top, left)
    {
          newWindow = window.open(pageURL, pageName,"width=" + width + ",height=" + height + ",top=" + top + ",left=" + left + ",scrollbars=0, resizable=1,toolbar=0,location=0,status=0,menubar= 0");
          newWindow.focus()
    }

call it like:

<a href="#" onClick="openNewWinScroll('pageName.asp','windowNa me',650,200,150,150);">open Window</a>

This way only users who know how to get window features back can do so.

Wind is your friend
Matt
 
Old June 24th, 2005, 01:53 AM
Authorized User
 
Join Date: Jun 2005
Posts: 97
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to aldwinenriquez
Default

thanks Matt

Aldwin Enriquez
President,Software Engineer - Narrasoft Philippines Inc.





Similar Threads
Thread Thread Starter Forum Replies Last Post
back button problem k.manisha ASP.NET 1.0 and 1.1 Professional 4 October 30th, 2006 04:32 AM
Browser's BACK Button Problem phungleon Classic ASP Databases 6 May 16th, 2005 03:10 PM
problem with back button. gurucharan_cs Javascript 1 April 6th, 2005 07:12 AM
Back Button Problem someshtrivedi General .NET 0 February 7th, 2005 05:43 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.