new version errors

Y

yanivmad

hi,
what can I do to download to the users my new version of javascript file?

I found that when I relase an new version of my web site with new javascript
function at the *.js files (that the html files had an ref to them )
some users did not got the new ver of the JS file and get script errors.

what can I do with this?

10X
yaniv madar
(e-mail address removed) ; (e-mail address removed)
 
E

Evertjan.

yanivmad wrote on 11 feb 2004 in comp.lang.javascript:
what can I do to download to the users my new version of javascript
file?

I found that when I relase an new version of my web site with new
javascript function at the *.js files (that the html files had an ref
to them ) some users did not got the new ver of the JS file and get
script errors.

do not give it the same name.
 
G

Grant Wagner

yanivmad said:
hi,
what can I do to download to the users my new version of javascript file?

I found that when I relase an new version of my web site with new javascript
function at the *.js files (that the html files had an ref to them )
some users did not got the new ver of the JS file and get script errors.

what can I do with this?

10X
yaniv madar
(e-mail address removed) ; (e-mail address removed)

<script type="text/javascript" src="myfile.js?version=200402271430"></script>

When you update myfile.js, update "version" as well. This can be done in one
place if you use server-side includes, or just include the <script> tag with
"version" in it on a page they are certain to go to, like the home page.

--
| Grant Wagner <[email protected]>

* Client-side Javascript and Netscape 4 DOM Reference available at:
*
http://devedge.netscape.com/library/manuals/2000/javascript/1.3/reference/frames.html

* Internet Explorer DOM Reference available at:
*
http://msdn.microsoft.com/workshop/author/dhtml/reference/dhtml_reference_entry.asp

* Netscape 6/7 DOM Reference available at:
* http://www.mozilla.org/docs/dom/domref/
* Tips for upgrading JavaScript for Netscape 7 / Mozilla
* http://www.mozilla.org/docs/web-developer/upgrade_2.html
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,012
Latest member
RoxanneDzm

Latest Threads

Top