>> Our DBA has an app written in PL/SQL on our Oracle app server. It utilizes
>> frames because of the complex heirarchy of information that is
>> involved. The
>> users can go several levels deep. When the user clicks the BACK button,
>> however, we don't want them to have to keep clicking back to go
>> back through
>> all of the frame content. We would rather that when they click the BACK
>> button it takes them back to the initial frameset.
Hmm, wouldn't a document.referrer test work in each content page? If the
referring document is not the previous one in order, then the script jumps
back to the initial frame.
Seat-of-the-pants scripting, probably with syntax errors:
<script language="JavaScript">
// make sure we're in the frameset:
if (top.location.href != [frameset address]) {
window.location.href = [frameset address] }
// make sure we came from the correct page:
dr = document.referrer;
if (dr != "") {
if (dr != [previous page]) {
window.location.href = [frameset address] } }
</script>
Would something like this do what you're seeking...?
jd
John Dowdell, Macromedia Developer Support, San Francisco
(Best to reply on-list, to avoid my mighty spam filters!)
Technotes: http://www.macromedia.com/support/search/
Column: http://www.macromedia.com/desdev/jd_forum/
Technical daily diary: http://jdmx.blogspot.com/
______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists