473,406 Members | 2,847 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Javascript files not updating when doing JS debugging

TS
1. When i have a webpage open and i change a source javascript file, then
refresh the site and attach to IExplorer process, sometimes the old js code
is running that i hook into (i set a breakpoint in the source file and then
it puts a breakpoint in the running file and i see the code is the old
code).

2. i tried to clear out the temporary asp.net directory but got file acces
permissions.

how do i do 1 & 2?

thanks

Jun 7 '07 #1
5 2326
You need to restart your application, and you need to close the browser and
open a new browser window.
This always works for me.

--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider
http://SteveOrr.net
"TS" <ma**********@nospam.nospamwrote in message
news:uk**************@TK2MSFTNGP02.phx.gbl...
1. When i have a webpage open and i change a source javascript file, then
refresh the site and attach to IExplorer process, sometimes the old js
code
is running that i hook into (i set a breakpoint in the source file and
then
it puts a breakpoint in the running file and i see the code is the old
code).

2. i tried to clear out the temporary asp.net directory but got file
acces
permissions.

how do i do 1 & 2?

thanks
Jun 7 '07 #2
Hi TS,

You can also try configure the IE browser to always refresh for new version
when visit a page or resource item via the following steps:

1. in IE, choose "tools-->internet options" menu item

2. in the dialog, choose "General" tab

3. in the tab, under " Browsing history" section, click the "Settings"
button

4. in the popup setting dialog, select "Every time I visit the webpage" for
the "Check for newer versions of stored pages" option.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

==================================================

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Jun 8 '07 #3
TS wrote:
1. When i have a webpage open and i change a source javascript file, then
refresh the site and attach to IExplorer process, sometimes the old js code
is running that i hook into (i set a breakpoint in the source file and then
it puts a breakpoint in the running file and i see the code is the old
code).

2. i tried to clear out the temporary asp.net directory but got file acces
permissions.

how do i do 1 & 2?

thanks
The Javascript file is cached in the browser, not in the temporary
ASP.NET directory. Clear the internet cache and reload the page.

--
Göran Andersson
_____
http://www.guffa.com
Jun 8 '07 #4
TS
that worked. Here i was resetiis and clear temp folders and still couldnt'
get it.

thanks

"Steve C. Orr [MCSD, MVP, CSM, ASP Insider]" <St***@Orr.netwrote in
message news:EF**********************************@microsof t.com...
You need to restart your application, and you need to close the browser
and
open a new browser window.
This always works for me.

--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider
http://SteveOrr.net
"TS" <ma**********@nospam.nospamwrote in message
news:uk**************@TK2MSFTNGP02.phx.gbl...
1. When i have a webpage open and i change a source javascript file,
then
refresh the site and attach to IExplorer process, sometimes the old js
code
is running that i hook into (i set a breakpoint in the source file and
then
it puts a breakpoint in the running file and i see the code is the old
code).

2. i tried to clear out the temporary asp.net directory but got file
acces
permissions.

how do i do 1 & 2?

thanks


Jun 8 '07 #5
TS wrote:
that worked. Here i was resetiis and clear temp folders and still couldnt'
get it.
Clearing the temp folder also works. You just have to clear the correct
one. ;)

--
Göran Andersson
_____
http://www.guffa.com
Jun 9 '07 #6

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

Similar topics

5
by: joaopedrogoncalves | last post by:
Hi, I want to load an external javascript file, get its results and stick them inside a <div> block. I also want to do this in several places on a web page. This way the browser doesn't have...
4
by: Robert | last post by:
Hi, I have some questions regarding including javascript files. <head> <script src="file1.js" type="text/javascript"></script> <script src="file2.js" type="text/javascript"></script> </head> ...
1
by: ozzy.osborn | last post by:
Hello All, I have been struggling with a cross browser solution to loading external javascript files on the fly. I have been successful using the following code in IE6: var newScr =...
3
by: Prash | last post by:
IIS serving javascript files, gives me error 4/21/2006 6:48 AM Guys/Gals, I am using IIS as a server to serve the javascript files. But it is giving me the error as "Object doesn't support this...
4
by: fmaxwell | last post by:
Dear Group I have a very frustrating problem. I have been trying to make it more difficult to access external javascript files by using PHP sessions. This works beautifully locally (both in...
3
by: battle.chris | last post by:
Hello. I'm using Prototype's Updater class to refresh sections of a page. Is there a way to include an external javascript files in the updated content; i.e., have a javascript tag with src...
2
by: Nathan Sokalski | last post by:
I am moving my website from my machine to my webhost, and need some help with what extra files I need to include due to the fact that I used AJAX in my site. Everything on the site is obviously...
7
by: mark4asp | last post by:
How can I prevent Caching of JavaScript and CSS files ONLY when I deploy a new application? I only want to force a refresh the first time the client uses the new build. For instance, I'm told I...
2
by: ray | last post by:
I have a html file stored as the D:/proj/test.html. In the html file I wish to load a javascript file---test.js which is stored in the same directory as test.html. <!DOCTYPE HTML PUBLIC...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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...
0
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,...

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.