By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,984 Members | 1,423 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,984 IT Pros & Developers. It's quick & easy.

Javascript files not updating when doing JS debugging

P: n/a
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
Share this Question
Share on Google+
5 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.