简体   繁体   English

IE9中Javascript Stepcarousel的缓存问题

[英]Caching issue with Javascript Stepcarousel in IE9

I'm using the Stepcarousel Javascript plugin from this link : Stepcarousel I have 20 separate html pages that contain some html codes : divs and paragraphes that I'm loading using the JQuery.load() method into the stepcarousel as panels so for each forward/backward click I'm loading the content of an html page into the stepcarousel it's working like a slider that loads and shows html content on each forward/backward click. 我正在通过此链接使用Stepcarousel Javascript插件: Stepcarousel我有20个单独的html页面,其中包含一些html代码:我将使用JQuery.load()方法加载到stepcarousel中作为面板的div和段落,因此每个转发/向后单击我正在将html页面的内容加载到stepcarousel中,它的工作方式类似于滑块,每次向前/向后单击时都会加载并显示html内容。

The issue I'm facing is that everything is working on Firefox and Chrome but in IE9 it's working too however while I'm at at the panel 15 it is starting to show things like if many html pages are loading at the same time, I think it's about caching in IE9 but I tried everything and that bug is still happening. 我面临的问题是,一切都可以在Firefox和Chrome上运行,但是在IE9中也可以运行,但是当我在第15面板上时,它开始显示出是否同时加载了许多html页面的信息。认为这与IE9中的缓存有关,但我尝试了所有操作,但该错误仍在发生。

This is the html code I'm using: 这是我正在使用的html代码:

<div id="divCarousel" class="stepcarousel">
   <div id="panel1" class="panel"></div>
   <div id="panel2" class="panel"></div>
   .....................................
   .....................................
   <div id="panel20" class="panel"></div>
</div>

And this is the function I'm using to load the html content from a separate html page and display it on the stepcarousel : 这是我用来从单独的html页面加载html内容并将其显示在stepcarousel上的功能:

function fncToPage(vintPage) {/*vintPage is the number of the panel that the carousel goes to when I click on the forward button*/
   $("#panel"+vintPage).load('HTMLContent/page'+vintPage+'.html');
} 

Can you please tell me what can I do to make this bug desapear in IE9? 您能告诉我如何做才能使此错误在IE9中消失吗?

Thanks. 谢谢。

如果是缓存问题,请尝试向您使用AJAX加载的页面网址添加随机数或时间戳作为虚拟查询字符串,以强制浏览器不使用缓存的副本

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM