473,785 Members | 2,910 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Javascript Security and History functions

I have a web-based application that contains page with a form to allow
a user to edit their account information (i.e. address, phone, email,
etc.). This form is being pre-populated through XSLT from my
database. This form submits to a second form/page that uses XSLT to
compare the original values in my database to the parameters submitted
by the previous for to filter out which values have changed. This
second form will ask the user to confirm their changes, update my
database and then sends the user to a third page that will display a
message that the update was complete. My users are clicking the back
button from this message screen, to return to the confirmation form.
Upon doing so, the form does not display correctly due to the update
being completed.

I would like to use the history function to evaluate to force users to
be "redirected " to the message screen if they try to click the back
button from the message screen. (Essentially, I don't want the users
to be able to click the back button.) I know that I can NOT view the
history properties without the UniversalBrowse rRead property enabled
via a signed script or SSL. My production environment will be SSL,
but I read that the user can deny this privilege. I have the ability
to include this as a "training issue" for my users, but I'm not sure
what browser versions, settings, etc. in IE and NS a user would need
to use. Has anyone had any experience with this?

Also, I read a few alternatives to using the history functions by
opening my forms in a new window or using cookies. Neither of these
are feasible for my application. Has anyone had any experience with a
different javascript function to avoid this issue?

Thanks in advance for your assistance!!!
Nicki S.
ka****@yahoo.co m
Jul 20 '05 #1
2 2505
In article <76************ **************@ posting.google. com>, ka****@yahoo.co m
(Nicki Pittman) writes:

<snip>
This
second form will ask the user to confirm their changes, update my
database and then sends the user to a third page that will display a
message that the update was complete. My users are clicking the back
button from this message screen, to return to the confirmation form.
Upon doing so, the form does not display correctly due to the update
being completed.


How is the browser being sent to the "third page"? If you can rely on JS being
present, use location.replac e() and it will replace the second page in the
history with the third. They click Back from the third page, they get the first
page.
--
Randy
Jul 20 '05 #2
hi************@ aol.com (HikksNotAtHome ) wrote in message news:<20******* *************** *****@mb-m21.aol.com>...
In article <76************ **************@ posting.google. com>, ka****@yahoo.co m
(Nicki Pittman) writes:

<snip>
This
second form will ask the user to confirm their changes, update my
database and then sends the user to a third page that will display a
message that the update was complete. My users are clicking the back
button from this message screen, to return to the confirmation form.
Upon doing so, the form does not display correctly due to the update
being completed.


How is the browser being sent to the "third page"? If you can rely on JS being
present, use location.replac e() and it will replace the second page in the
history with the third. They click Back from the third page, they get the first
page.

Thanks for the recommendation Randy! The location.replac e() sounds
like a good option since no history entry is made. But I still have a
question....

My users are passed from the first screen to the second screen AND the
second screen to the third screen by submitting forms (post method to
update my database). My urls are dynamic based on parameters passed
through the application, session ids, database processes that validate
any changesn with other systems, and the xslt stylesheet names. Since
I am not linking to a "static" url in my application, would the
location.replac e() function as it needed?

I apologize for my Friday Stupidity Leak...I've been stumped on this
issue for a while now.

Thanks again for your help!

Nicki
ka****@yahoo.co m
Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
9480
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10151
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10092
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9950
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8973
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6740
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5381
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4053
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2879
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.