Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / June 2007

Tip: Looking for answers? Try searching our database.

Javascript files not updating when doing JS debugging

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
TS - 07 Jun 2007 22:40 GMT
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
Steve C. Orr [MCSD, MVP, CSM, ASP Insider] - 07 Jun 2007 23:26 GMT
You need to restart your application, and you need to close the browser and
open a new browser window.
This always works for me.

Signature

I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider
http://SteveOrr.net

> 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
[quoted text clipped - 11 lines]
>
> thanks
Steven Cheng[MSFT] - 08 Jun 2007 08:15 GMT
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/subscriptions/managednewsgroups/default.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/subscriptions/support/default.aspx.

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

This posting is provided "AS IS" with no warranties, and confers no rights.
TS - 08 Jun 2007 13:44 GMT
that worked. Here i was resetiis and clear temp folders and still couldnt'
get it.

thanks

> You need to restart your application, and you need to close the browser and
> open a new browser window.
[quoted text clipped - 15 lines]
> >
> > thanks
Göran Andersson - 09 Jun 2007 10:52 GMT
> 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. ;)

Signature

Göran Andersson
_____
http://www.guffa.com

Göran Andersson - 08 Jun 2007 09:48 GMT
> 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
[quoted text clipped - 8 lines]
>
> thanks

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

Signature

Göran Andersson
_____
http://www.guffa.com


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.