Caching prevents pages from changing.

I

Ian F

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
 
M

Martin Honnen

Ian said:
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_portfolio_item()" border="0" alt="Previous"></a>

to

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

and

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

to

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

I hope that improves things.
 
I

Ian Fuller

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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,265
Messages
2,571,069
Members
48,771
Latest member
ElysaD

Latest Threads

Top