473,394 Members | 1,841 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Replacing entries in the History

MAL
Hi

I need to Replace the current entry in the History list with a new randomly
genrated URL BEFORE following the link being clicked. I want to use the
onclick property, replace the current History entry witha new one, then
follow the link being clicked which generates a new history entry.

Then when a user clicks the back button they will go to the randomly
generated page.

Can someone help with a piece of code.

Many thanks

Mark


Jul 20 '05 #1
3 2944
On Wed, 2 Jul 2003 12:07:17 +0100, "MAL" <no******@here.co.uk> wrote:
I need to Replace the current entry in the History list with a new randomly
genrated URL BEFORE following the link being clicked. I want to use the
onclick property, replace the current History entry witha new one, then
follow the link being clicked which generates a new history entry.


The history list is exactly that a history, I don't believe what
you're suggesting is even possible in a secure environment *, let
alone in a non-secure client-side javascript one. You can't mess with
such fundamental things.

You certainly don't _need_ it, why not tell us your actual problem
rather than a problem some crazy solution requires.

Jim.

* [actually it is you could actually navigate to the random page,
replacing the entry, then navigate to the one you want.]
--
comp.lang.javascript FAQ - http://jibbering.com/faq/

Jul 20 '05 #2
MAL
Thanks Jim

OK the "ACTUAL" problem is that after using all the normal methods of
preventing pages being cached like

Response.Expires = 15
Response.ExpiresAbsolute = Now() - 2
Response.AddHeader "pragma","no-cache"
Response.AddHeader "cachecontrol","private"
Response.AddHeader "Cache-Control", "must-revalidate"
Response.CacheControl = "no-cache"

etc

When a user is connected via a proxy server the above is ignored.

I have also tried the method of appending a random string to my asp page
after the ? in an attempt to fox the proxy servers into not being able to
find the page... but it doesnt work either when a user clciks the back
button to go back to the page.

I need the page to reload when a user clciks the back button, because our
database will have recorded the fact thet they have clicked on a link on the
page and the recordset has changed and needs to be redispalyed correctly.

Thanks.

Mark

"Jim Ley" <ji*@jibbering.com> wrote in message
news:3f**************@news.cis.dfn.de...
On Wed, 2 Jul 2003 12:07:17 +0100, "MAL" <no******@here.co.uk> wrote:
I need to Replace the current entry in the History list with a new randomlygenrated URL BEFORE following the link being clicked. I want to use the
onclick property, replace the current History entry witha new one, then
follow the link being clicked which generates a new history entry.


The history list is exactly that a history, I don't believe what
you're suggesting is even possible in a secure environment *, let
alone in a non-secure client-side javascript one. You can't mess with
such fundamental things.

You certainly don't _need_ it, why not tell us your actual problem
rather than a problem some crazy solution requires.

Jim.

* [actually it is you could actually navigate to the random page,
replacing the entry, then navigate to the one you want.]
--
comp.lang.javascript FAQ - http://jibbering.com/faq/

Jul 20 '05 #3
On Wed, 2 Jul 2003 12:36:54 +0100, "MAL" <no******@here.co.uk> wrote:
When a user is connected via a proxy server the above is ignored.


When going "back" to a page in the history, a new request is
explicitly forbidden by HTTP specification. the history, is exactly
that a history. It should not be different.

Are you sure you need this, people understand what back button means,
and do not expect things to be different, if you only need it to make
it easier on your server side scripts (which most people ask this
question for IME) then simply improve those, you have full control
there.

Jim.
--
comp.lang.javascript FAQ - http://jibbering.com/faq/

Jul 20 '05 #4

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

Similar topics

14
by: ss.wisch | last post by:
Ok here's the thing... I have a vBulletin forum database... there is a table in there called "post" which has all of my forums posts in it. What I have are many posts with regular titles like "Oh...
16
by: StenKoll | last post by:
Help needed in order to create a register of stocks in a company. In accordance with local laws I need to give each individual share a number. I have accomplished this by establishing three tables...
20
by: Dan | last post by:
Is there a way to obtain the last page visited? I don't want to go to that page, I just want to be able find out what page they came from, the url of that page. Is this possible?
1
by: Roshan | last post by:
Hi, In NTFS all folders/container objects have an option called 'Replace permission entries on all child objects with entries shown here that apply to child objects' As I understand this...
2
by: Shyckymn | last post by:
How do I delete some entries that are result of the query below? db2 list history containing schema.table for database I want to remove some entries from the List History command. It is...
0
by: lemnitzer | last post by:
Full Article: http://iamthewitness.com/FreedmanFactsAreFacts.html <-------- KEY DOCUMENT Steamy Excerpts: Will you be patient with me while I review here as briefly as I can the history of...
5
by: Ana C. Dent | last post by:
PF wrote: A couple of months ago I found a Note: on MetaLink which detailed how to use OID to serve DB names. I was going from TNSNAMES.ORA files to OID, but it did work. However I never...
2
by: Max | last post by:
I recently moved to ASPnet Ext 3.5 What I can't get with Ajax and History browser managemet is this: User fills some fields (dropdown and textbox) on page 1 (all are in an update panel) User...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
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
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...
0
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
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...

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.