Click here to Skip to main content
15,886,795 members
Home / Discussions / JavaScript
   

JavaScript

 
GeneralRe: cosmetic fix, get the spinner to show for a second Pin
jkirkerx17-Oct-16 6:29
professionaljkirkerx17-Oct-16 6:29 
GeneralRe: cosmetic fix, get the spinner to show for a second Pin
jkirkerx17-Oct-16 6:53
professionaljkirkerx17-Oct-16 6:53 
GeneralRe: cosmetic fix, get the spinner to show for a second Pin
Richard Deeming17-Oct-16 7:38
mveRichard Deeming17-Oct-16 7:38 
GeneralRe: cosmetic fix, get the spinner to show for a second Pin
jkirkerx17-Oct-16 10:15
professionaljkirkerx17-Oct-16 10:15 
QuestionBig Data beginner, where do I start? Pin
roraaa_9-Oct-16 16:58
roraaa_9-Oct-16 16:58 
AnswerRe: Big Data beginner, where do I start? Pin
Richard MacCutchan9-Oct-16 21:52
mveRichard MacCutchan9-Oct-16 21:52 
GeneralRe: Big Data beginner, where do I start? Pin
Mycroft Holmes9-Oct-16 22:33
professionalMycroft Holmes9-Oct-16 22:33 
QuestionDealing with browser caching and updated script files Pin
Matt U.28-Sep-16 9:39
Matt U.28-Sep-16 9:39 
I encounter this issue fairly regularly at work, and I'm interested in learning about how others handle it. Basically, when you have a Web app and you make some changes to a JavaScript file, how do you ensure that the correct script is loaded when users navigate to the updated Web app? We're using ASP.NET MVC, IIS 7.

I've done some digging online and a common solution seems to be appending some sort of identifier to script files in the markup, like this:

HTML
<script src="scripts/myscript.js?v=123"></script>


Where 'v' is maybe a version number or something along those lines, updated with each deployment. I came across a StackOverflow post in which someone provided a custom HtmlHelper method to append the file's 'LastWriteTime'. But I was wondering how you all handle this.

Thanks in advance!
djj55: Nice but may have a permission problem
Pete O'Hanlon: He has my permission to run it.

AnswerRe: Dealing with browser caching and updated script files Pin
User 171649228-Sep-16 12:31
professionalUser 171649228-Sep-16 12:31 
GeneralRe: Dealing with browser caching and updated script files Pin
Matt U.28-Sep-16 12:33
Matt U.28-Sep-16 12:33 
QuestionHow to grab the value of id from the GET query with JavaScript or jQuery? Pin
Bokleence24-Sep-16 23:17
Bokleence24-Sep-16 23:17 
AnswerRe: How to grab the value of id from the GET query with JavaScript or jQuery? Pin
Afzaal Ahmad Zeeshan24-Sep-16 23:58
professionalAfzaal Ahmad Zeeshan24-Sep-16 23:58 
GeneralRe: How to grab the value of id from the GET query with JavaScript or jQuery? Pin
Bokleence25-Sep-16 0:26
Bokleence25-Sep-16 0:26 
GeneralRe: How to grab the value of id from the GET query with JavaScript or jQuery? Pin
Afzaal Ahmad Zeeshan25-Sep-16 0:37
professionalAfzaal Ahmad Zeeshan25-Sep-16 0:37 
GeneralRe: How to grab the value of id from the GET query with JavaScript or jQuery? Pin
Bokleence25-Sep-16 0:55
Bokleence25-Sep-16 0:55 
QuestionJasmine testing Angular issues Pin
cjb11023-Sep-16 0:04
cjb11023-Sep-16 0:04 
AnswerRe: Jasmine testing Angular issues Pin
cjb11025-Sep-16 22:26
cjb11025-Sep-16 22:26 
QuestionHow to Load Content Without Refreshing Menu Bar. Pin
roraaa_19-Sep-16 23:10
roraaa_19-Sep-16 23:10 
AnswerRe: How to Load Content Without Refreshing Menu Bar. Pin
Nathan Minier20-Sep-16 0:59
professionalNathan Minier20-Sep-16 0:59 
AnswerRe: How to Load Content Without Refreshing Menu Bar. Pin
W Balboos, GHB21-Sep-16 6:07
W Balboos, GHB21-Sep-16 6:07 
Questionunexpected identifier: quick question Pin
shoysmTP19-Sep-16 1:59
shoysmTP19-Sep-16 1:59 
AnswerRe: unexpected identifier: quick question Pin
Richard Deeming19-Sep-16 2:20
mveRichard Deeming19-Sep-16 2:20 
GeneralRe: unexpected identifier: quick question Pin
shoysmTP19-Sep-16 3:56
shoysmTP19-Sep-16 3:56 
Questionjavascript message on web app Pin
dcof16-Sep-16 15:07
dcof16-Sep-16 15:07 
AnswerRe: javascript message on web app Pin
Nathan Minier19-Sep-16 1:39
professionalNathan Minier19-Sep-16 1:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.