Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-31-2004, 02:47 PM   PM User | #1
LVPRADEEP
New Coder

 
Join Date: Aug 2004
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
LVPRADEEP is an unknown quantity at this point
Javascript loading in mac pc

I am using mac with IE5.2. Any change in my javascript code is not getting reflected in the browser, thought i had cleared the IE cash. Please let me know a solution for this problem

Pradeep
LVPRADEEP is offline   Reply With Quote
Old 08-31-2004, 02:56 PM   PM User | #2
fci
Senior Coder

 
Join Date: Aug 2004
Location: Twin Cities
Posts: 1,345
Thanks: 0
Thanked 0 Times in 0 Posts
fci is an unknown quantity at this point
Quote:
Originally Posted by LVPRADEEP
I am using mac with IE5.2. Any change in my javascript code is not getting reflected in the browser, thought i had cleared the IE cash. Please let me know a solution for this problem

Pradeep
maybe the Javascript has errors? Post the Javascript so we can debug for you.
And, it's spelt "cache" not "cash."
fci is offline   Reply With Quote
Old 08-31-2004, 03:05 PM   PM User | #3
Willy Duitt
Banned

 
Join Date: Sep 2003
Posts: 3,620
Thanks: 0
Thanked 0 Times in 0 Posts
Willy Duitt is an unknown quantity at this point
If you are using an external script try adding a querry and a number to the uri to fool the browser into thinking it is a new page... (the same if the script is on the page)....

EG:
<script source="myJS.js?2" ....
Or, in the addressbar: http://myPage.html?2

And increment the number each time you make a change....

.....Willy

Edit: BTW, an additional benifit of using this method is that it allows you to quickly return/retrieve a previously cached change.... such as if you have made six changes and incremented the number for each change.... you can call up the previously cached second change by using it's index number behind the querry....

Last edited by Willy Duitt; 08-31-2004 at 03:37 PM..
Willy Duitt is offline   Reply With Quote
Old 08-31-2004, 05:29 PM   PM User | #4
brothercake
Senior Coder


 
Join Date: Jun 2002
Location: near Oswestry
Posts: 4,508
Thanks: 0
Thanked 0 Times in 0 Posts
brothercake is an unknown quantity at this point
To clear Mac/IE's cache - close all open windows, then go to preferences and clear the cache, then quit and restart explorer. Then you should be good
__________________
"Why bother with accessibility? ... Because deep down you know that the web is attractive to people who aren't exactly like you." - Joe Clark
brothercake is offline   Reply With Quote
Old 08-31-2004, 07:37 PM   PM User | #5
mikemalter
New Coder

 
Join Date: Aug 2004
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
mikemalter is an unknown quantity at this point
We had a lot of problems with 5.2 on the mac. It never wanted to clear its cache.
mikemalter is offline   Reply With Quote
Old 09-01-2004, 06:35 AM   PM User | #6
LVPRADEEP
New Coder

 
Join Date: Aug 2004
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
LVPRADEEP is an unknown quantity at this point
It worked

I changed the javascript file name and mentioned that name while calling. It worked. but for every change i need to do this...Is there any alternative?..cache clearing in the prefernces and quiting the explorrer does not work
LVPRADEEP is offline   Reply With Quote
Old 09-01-2004, 09:36 AM   PM User | #7
Willy Duitt
Banned

 
Join Date: Sep 2003
Posts: 3,620
Thanks: 0
Thanked 0 Times in 0 Posts
Willy Duitt is an unknown quantity at this point
You do not need to change the file name...
The trick is while making changes to just add the querry and a number to the source call....
Willy Duitt is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:02 AM.


Advertisement
Log in to turn off these ads.