473,511 Members | 16,776 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to retain display after moving back then forward in history

10 New Member
i have this slight of problem
my page displays a div tag each time a new info is inserted
but if i hit the back history button,move back to an earlier page then come back to the one i was working on, the divs are no longer displayed
is there a way to retain them like in the browser's cache or elsewhere ?

I Need to accomplish this fast please !!
Aug 3 '06 #1
4 2048
iam_clint
1,208 Recognized Expert Top Contributor
use sessions or a database.
Aug 3 '06 #2
jay_dev
10 New Member
how ?
in my code i cache values entered by user in hidden fields that are added to the div content. User can also remove a div he has added, so i've set up a counter that gives me the div id each time one is added it is incremented and decremented when one is removed
So i'd have

'<input type="hidden" name="qty" ' +id_of_the_div + ' value=" ' + entered_value + ' ">

So how can i use session to retain those values
please help me if you can
Aug 4 '06 #3
jay_dev
10 New Member
hi
here's my problem
i'm trying to create somthing like a shopping basket ,
i have a menu where users pick what ever they want and whatevere they pick
i append it as a div child of a master div tag existing in my document.
So im creating child DIVs every time a choice is made and removing'em when
choice deleted. Assume this is Page1

the problem is that when the HISTORY BACK button of the browser ( Page0) is clicked all these created DIV tags ( the children) disappear when press Forward to go back to Page1 so everything done by the user is lost

is there a way to resolve this?
Aug 10 '06 #4
iam_clint
1,208 Recognized Expert Top Contributor
record the information in sessions and then if those variables aren't empty then re run the script with the variables. or use variables in the windows location
www.bleh.com/cart.asp?yadda=1&somethingelse=2
Aug 10 '06 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

1
11046
by: Bud Zielinski | last post by:
Can someone point me to a script that will allow me to implement a "back button" in an HTA, since there is no history for HTA's. Understand this requires an array, is there any sample code out...
3
2662
by: Nick Tew | last post by:
Hi, Firstly, any help would be gratefully received. Im using several iframes on a single page and would like individual 'back' and 'forward' buttons located in each of the iframes which only...
3
1788
by: pmelanso | last post by:
hello, I want to create back and forward buttons on my web page. I didn't have a problem with that... the thing I am having trouble with is I woudl like to display "disabled" images when there if...
10
8046
by: pmelanso | last post by:
Hello, How can I tell if there is a page to go back to in the history or not??? Same with forward??? say something like/// if (there is a page to go back to ) { // DO something }else { }
5
3058
by: Ma³y Piotruœ | last post by:
Hello, (Sorry for my english.) I am new to HTML/JavaScript/CSS. I would like to ask for help with such a problem: I need to create a href link working like "back" button (I know this is not...
2
3589
by: Massimiliano Campagnoli | last post by:
Good morning, Database PRODUCTION was created on a system mamanged tablespace on drive c:\ Now drive c:\ is running out of space and I need to move PRODUCTION to the larger drive d:\ on the...
1
1789
by: Jimmy | last post by:
I want to hook the "back" event or "forward" event from a browser page. How can I trigger these events to my asp.net page? ch Jimmy
1
6698
by: Badass Scotsman | last post by:
Hello, I have an application which should never allow the back button to be pushed without refreshing the previous page. For example: Step 1: User fills in form.html and presses submit ...
0
7242
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7138
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...
0
7423
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...
1
7081
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...
0
7510
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...
1
5066
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4737
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...
0
3225
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...
0
3213
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.