473,563 Members | 2,683 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Caching prevents pages from changing.

I have some javascript which allows a header, iframe and picture to be
changed when the user clicks a next/previous button. In Opera, if you
click next enough times to loop back to the start, or back to get to
the previous one the the javascript fails. I have narrowed the problem
down to Opera trying to load things from cache as it only happens when
you go over a previously displayed iframe/image/header and if I clear
the cache then you can do it all again.

I have tried preventing caching using asp but to no avail.

I have had no problems with the script in ie.

it can be seen here if anybody wants to help me.

http://www.ifdesign.co.uk/portfolio.asp

Any help appreciated.

Thanks

Ian
Jul 23 '05 #1
2 1347


Ian F wrote:
I have some javascript which allows a header, iframe and picture to be
changed when the user clicks a next/previous button. In Opera, if you
click next enough times to loop back to the start, or back to get to
the previous one the the javascript fails. I have narrowed the problem
down to Opera trying to load things from cache as it only happens when
you go over a previously displayed iframe/image/header and if I clear
the cache then you can do it all again.

I have tried preventing caching using asp but to no avail.

I have had no problems with the script in ie.

it can be seen here if anybody wants to help me.

http://www.ifdesign.co.uk/portfolio.asp


Try changing

<a href="#"><img src="images/prev_arrow.png" width="26" height="23"
onClick="prev_p ortfolio_item() " border="0" alt="Previous"> </a>

to

<a href="#" onclick="return false;"><img src="images/prev_arrow.png"
width="26" height="23" onClick="prev_p ortfolio_item() " border="0"
alt="Previous"> </a>

and

<a href="#"><img src="images/next_arrow.png" width="26" height="23"
onClick="next_p ortfolio_item() " border="0" alt="Next"></a>

to

<a href="#" onclick="return false;"><img src="images/next_arrow.png"
width="26" height="23" onClick="next_p ortfolio_item() " border="0"
alt="Next"></a>

I hope that improves things.

--

Martin Honnen
http://JavaScript.FAQTs.com/

Jul 23 '05 #2

Thanks for the help, that fixed it straight away. Fairly obvious now it
has been shown to me... I guess its explorer that is actually 'breaking
the law', cant say I'm surprised.

Thanks again.

Ian

*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 23 '05 #3

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

Similar topics

4
1379
by: Captain Chaos | last post by:
Is it Possible to Cache Pictures JPG/BMP on the Client Browser ? The other Elements of the Page should not being cached because they change. Is it possible to cache parts of a page on the Client but not the whole page
0
1730
by: Troy Simpson | last post by:
Hi, I have a website which is made up of dynamic pages. Each page that's loaded has some code which looks at which template to load amongst other things, which causes the page to take a little while to be processed. At the moment I have programmatic page caching in the "loader" using paramater caching to send a cached version of every...
8
2095
by: Nick Gilbert | last post by:
Hi, Our development web server (Win 2003 Server) seems to be caching the output of various files (CSS and .aspx files) if they have no query string. The moment you put a question mark in the URL, it's fine. The problem is that if you modify a file, it still shows you the old file unless you restart the website or IIS itself. It's...
13
5672
by: Rohit | last post by:
I need to turn off caching in my ASP.NET page. I have set the following code in Page Load event: Response.Cache.SetCacheability(HttpCacheability.NoCache) Still, sometimes the page is retreived from cache. Are there any other options I need to set? TIA Rohit
13
1641
by: tshad | last post by:
How do we handle Caching in IE? It seems that my system works fine in Mozilla and Netscape when I make changes. But in IE the changes are not brought across when someone has been to the site before. If they have been here before and hit the same page, the old page is rendered which will cause errors as things that are expected with the...
0
1345
by: Raj | last post by:
What is the purpose of file system caching while creating a tablespace? Memory on the test server gets used up pretty quickly after a user executes a complex query(database is already activated), after some investgation i found out that most of it being consumed by filesystem caching... thanks to Liam and Phil Sherman for their valuable...
5
7838
by: Raj | last post by:
What is the purpose of file system caching while creating a tablespace? Memory on the test server gets used up pretty quickly after a user executes a complex query(database is already activated), after some investgation i found out that most of it being consumed by filesystem caching... thanks to Liam and Phil Sherman for their valuable...
3
2935
by: Purti Malhotra | last post by:
Hi All, In our Web hosting environment we are using Virtual hosting i.e. multiple websites are on one server and multiple domains are pointing to a single website. Issue: We have two domains say “www.Test1.com” and “www.Test2.com” pointing to a single website. Website content is located onto UNCPath i.e. remote location. Domain...
0
14758
docdiesel
by: docdiesel | last post by:
The fastest (and cheapest) transfer of data is that which doesn't have to be done - because the data is already there. Or still there - the caching of files is widely known and practised. Each web browser is caching the files he formerly requested from the web server. But if the file is to be loaded a second time, still a request is sent to the...
0
7580
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7882
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8103
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7634
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
3634
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3618
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2079
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1194
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
916
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.