While loading external javascript there is problem of caching the general solutionfor this is appending a url parameter like "?rnd=Date.Now()" at the end of the url, so that the url is always unique while making the call. The other way around is to set the IIS ouput caching with FIle change notifications. But the same could be achieve without much effort by setting the response header. We can set the response header to get the modified version from the server instead of the cached one using the following script:
Search
How to define a class in JScript ?
This a common example for JScript(ECMA262) to create a class with defined constructor. The constructor can be parameteries to accent a/multiple parameter.
Wiindows Search with batch script
Till last year i was using Windows XP which was quite faster then windows 7 on searching files in the local system. But again windows 7 started giving me hard-time with it’s indexing services. So i started using the old batch script i wrote in the late 90’s. Its’s called windows search.
All you have to do, is to copy and save this file as "search.bat" in the user folder(c:\users\).
calling it is even easier cause it supports wildcard(*) characters.
will search the whole directory for the files with text extension, the query can be modified if you know a part of the file name as
After pressing enter.. it takes a while and pops up a message window(with instructions), clicking ok in the message window will open notepad with a file search.txt with all the results.
All you have to do, is to copy and save this file as "search.bat" in the user folder(c:\users\
calling it is even easier cause it supports wildcard(*) characters.
Example: search *.txt
will search the whole directory for the files with text extension, the query can be modified if you know a part of the file name as
search read*.txt
After pressing enter.. it takes a while and pops up a message window(with instructions), clicking ok in the message window will open notepad with a file search.txt with all the results.
Subscribe to:
Posts
(
Atom
)