473,480 Members | 1,810 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Remember data

46 New Member
Hello

I'm building a simple search option so my site and I have a problem with remembering the data. For example if user hits the search button, the data is loaded with ajax and he/she goes to the next link showed in loaded data. Now when he/she hits the return button, it goes back to main state, but I want that it returns to state where the search data is showed....

should I use some tricks, maybe remembering data with cookies or something...
Jul 2 '08 #1
3 1441
acoder
16,027 Recognized Expert Moderator MVP
Yes, or add history/back button functionality to your Ajax application. See, for example, this link.
Jul 2 '08 #2
FrEaKmAn
46 New Member
hm, looks interesting, only problem is that it doesn't work with safari... maybe does now after almost 3 years...

my idea was to use ajax to store data, basically what is users searching, where etc and then this data is reloaded when he/she returns to search page. Only problem is that I don't know how to separate returning to search page and accessing it (it will load last searched data).. any ideas?
Jul 2 '08 #3
acoder
16,027 Recognized Expert Moderator MVP
Well, in that case, use cookies. If the cookie is set, reload the search, otherwise keep the default state.
Jul 2 '08 #4

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

Similar topics

15
7624
by: Joshua Beall | last post by:
Hi All, What is the best way to use a cookie to remember a logged in user? Would you store the username and password in two separate cookies? Should the password be plain text? Hashed? Not...
15
2613
by: Hal Robertson | last post by:
I have created a rather complicated series of html forms for a data entry wizard In my mozilla browser, every time I submit each form along the process, it asks me if I want to remember the...
1
1186
by: RSB | last post by:
Hi Every One, How do i create Objects and then remember the state of the Objects once we do the post back. Here is what i am trying to Do. . I have to objects. A object Called CollegeClass...
4
1756
by: Simon Cooke | last post by:
Hi there; A while back when I was in Albany, NY, I came across what looked like a really great C++ book for the experienced programmer. Unfortunately, I couldn't buy it and take it with me...
3
2608
by: coffee_man | last post by:
Hi, I have a page with a form. This form has an input field <textarea>. I use it to have my users enter text and on form submit it gets inserted into a db. Initially there is some standard text...
9
5287
by: McGeeky | last post by:
Is there a way to get a user control to remember its state across pages? I have a standard page layout I use with a header and footer as user controls. Each page uses the same layout by means of...
2
1242
by: LuB | last post by:
Bruce Sutter talks about this a bit - but I can't remember where. When is it safe to use an object or reference to an object. When does it have an accessible address? Specifically, I think it...
2
2851
by: Shakun | last post by:
Hi All, This is my 1st posting to this group. Can any1 help me with the "Remember Me" which is there in a login form. Im pasting the code below. Im not able to set a cookie.. Thanks, Shakun...
0
1302
by: Frank Miverk | last post by:
Hi, I am not understanding how the Remember Me checkbox is supposed to work here. I have a LoginCtrl (asp.net 2.0, framework 2.0) and all I want to do is remember the user the next time if they...
1
3304
by: =?Utf-8?B?VEo=?= | last post by:
Hi, Environment : Asp.net 2.0 / C# As you know, there is a "Remember me" check box in Login control is VS.NET 2005. It allows you to get in the page without logging it if user closes browser,...
0
7048
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7088
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
6741
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
6956
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...
0
5342
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,...
1
4783
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
2997
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
2986
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
183
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...

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.