473,698 Members | 2,371 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

forcing Explorer not to cache javascript code.

I use screen.width to check escreen resolution and then document.write
to write different width tables accordingly. It all works OK with
Mozilla Firefox, however it seems that in IExplorer it only works when
I reload the page. I think it can be cache handling in IE.

I tried putting the javascript code in an extrenal js.file. Then i
tried calling that file with a random number (using time functions) eg.
mycode.js?nn=se condss; but it doesn't work either.

The page is rather heavy so I am only interested in the javascript not
being cached.

Is there a solution for this?
Thanks

Jul 14 '06 #1
3 1619
kaston3 said the following on 7/14/2006 5:46 PM:
I use screen.width to check escreen resolution and then document.write
to write different width tables accordingly.
I'm sorry. Why are you using unreliable antiquated methods to create
your pages?

<URL: http://allmyfaqs.net/faq.pl?AnySizeD esign>
It all works OK with Mozilla Firefox, however it seems that in
IExplorer it only works when I reload the page. I think it can
be cache handling in IE.
It's possible, but highly unlikely.
I tried putting the javascript code in an extrenal js.file. Then i
tried calling that file with a random number (using time functions) eg.
mycode.js?nn=se condss; but it doesn't work either.
What does "doesn't work" mean?
The page is rather heavy so I am only interested in the javascript not
being cached.

Is there a solution for this?
Maybe, depending on what the problem is.

Why doesn't my dishwasher work? No, you can't see it, just guess and
tell me what's wrong with it.

Post a URL to a sample page that shows the behavior.

--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
Temporarily at: http://members.aol.com/_ht_a/hikksnotathome/cljfaq/
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Jul 15 '06 #2

Yes, You are right about the dishwasher that you can't see to repair.
Sorry :-)

http://www.educationprojects.net/index9.php

The problem is with the background image (light blue color is actually
an image) on the left and the flash slideshow on the right.

When you first load the page it seems there's no problem aside from
some error (object not found), no related to the tables.

But when you load it again or at random times the cells for image
(left) and flash (right) are not displayed correctly being displaced
further left and right respectively and leaving a space in the middle.

This problem doesn't happen with Firefox.
Thanks.

Jul 15 '06 #3

Ok, to reproduce the problem.

Go to www.educationprojects.net/index9.php

Everything seems ok but now put the mouse cursor in the bowser url box
and press enter to load the page again. The cells are displaced to the
sides leaving a space in the middle.
I use IE 7 beta but the same occurs in IE 6

Thanks.

Jul 15 '06 #4

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

Similar topics

1
3997
by: ehm | last post by:
I apologize in advance for the cross-post (from microsoft.public.inetexplorer.scripting), but that board seems dead. I have what I think is a fairly simple problem, but I cannot figure this out. I have a SELECT object on my page. When the user performs a certain action, I want the focus to be placed in the drop-down field AND the actual list of drop-down objects to appear (i.e. simulating that the user has clicked in that field). ...
11
1764
by: dhplank | last post by:
Hello everyone, I've developed a calendar program in javascript, and up until now I've done most of my testing using Mozilla and Firefox. Everything works fine, but when I try to use Internet Explorer my response time is sometimes 50 times slower than using Mozilla. I know I haven't given you much to go by, but I'm not looking for an answer so much as an approach to debugging the problem. For example, does anyone here know of a good...
7
7765
by: moondaddy | last post by:
I want to dynamically create a JavaScript file and cache it on the client for re-use. I know how to write javascript to a web page from the code behind, but I don't know how to actually create a file such as MyNewScript.js and then cache that on the client so all the pages of that session can use it. Can this be done? Thanks -- moondaddy@nospam.com
2
3798
by: Leszek Taratuta | last post by:
Hello, I am using the following code to prevent users to see the previous pages: Response.CacheControl = "no-cache"; Response.AddHeader( "Pragma", "no-cache" ); Response.Expires = -1; When users select the "Back" button in IE, they see the message:
4
2466
by: Angel | last post by:
I am saving items in the cache in my code behind. By setting these items with an expiration are these items only available for the page its being set or throughout the application? My next question is can these cache items be accessed on the client side code(Javascript), If so, how? do you have any javascript code out there that accesses these cached items from the code behind? thank you in advance...
7
2031
by: korund | last post by:
I want solve a small problem. Since javascript can't read and write as a file, VBScript is used in a code. When a user click's on a 'Yes' button on a Internet Explorer activeX prompt, a VBScript will create a txt file on the harddrive with unique info. If user press 'no' by mistake, VBScript can no work and file cannot be created. I want to force user to click "Yes" button on a IE activeX prompt, so this prompt need appear again in the...
2
2142
by: jeanray | last post by:
I have a site made entirely with AJAX, base PhP and MySQL, so the is only one page (index.php). The user goes through various selections and an image is formed (on the server), then sent back to the client to show the updated image (SAME IMAGE NAME) It did not work "all the time" (IE7). I realised that the first image was stored in the cache and that, when the new image came, the image displayed was the one from the user's CACHE! Easy...
8
4052
by: Edward Diener | last post by:
Is there a way in Javascript, or perhaps in HTML, to force a browser to re-render an image on an HTML page after a round-trip between the client and the server ? In my particular case, the image is changing on the server although the URL for it remains the same, but the browser is still displaying the old image from its cache rather than the new image from its URL location.
1
7447
by: yawnmoth | last post by:
http://www.frostjedi.com/terra/scripts/demo/download2.php Whenever I get that page, I get the following error: --------------------- Internet Explorer cannot download download2.php from www.frostjedi.com. Internet Explorer was not able to open this Internet site. The requested site is either unavailable or cannot be found. Please try
0
8683
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9170
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8901
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
8871
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7739
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6528
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4371
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3052
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
3
2007
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.