Solved

location.href + ie4 + asp

Posted on 1998-11-14
1
164 Views
Last Modified: 2013-12-25
If I want an automatic jump back to the calling page and use location.href="first.asp" everything works fine with netscape, but if a use ie4 the "first.asp" page is loaded from cache (and changes to variables that second.asp makes itn't shown). Why whis difference between browsers?

May by the use of response.expires=0 could help but I would like location.href="first.asp" to reload the page.

Any solutions?
0
Comment
Question by:manne
1 Comment
 
LVL 75

Accepted Solution

by:
Michel Plungjan earned 100 total points
ID: 1856348
1. Make sure the cache settings in IE are approx. the same (contact server once a session or always...)
2. MS made asp and IE so IE knows asp better than Netscape
3. A <META HTTP-EQUIV="Expires" CONTENT="0"> will do the job of response.expires...
4. You could load location="first.asp?reload"
and put
<SCRIPT>
if (location.search && location.search.substring(1) == 'reload) {
   if (location.reload) location.reload(true); // true forces server load
}
</SCRIPT>
in the head of first.asp's html

Michel
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Read about why website design really matters in today's demanding market.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to count occurrences of each item in an array.

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question