Solved

location.href + ie4 + asp

Posted on 1998-11-14
1
160 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Read about why website design really matters in today's demanding market.
Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
The viewer will learn how to count occurrences of each item in an array.
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

758 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now