new version errors

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • yanivmad

    new version errors

    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
    yanivardit@hotm ail.com ; yanivma@shaam.g ov.il
  • Evertjan.

    #2
    Re: new version errors

    yanivmad wrote on 11 feb 2004 in comp.lang.javas cript:[color=blue]
    > 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.[/color]

    do not give it the same name.

    --
    Evertjan.
    The Netherlands.
    (Please change the x'es to dots in my emailaddress)

    Comment

    • Grant Wagner

      #3
      Re: new version errors

      yanivmad wrote:
      [color=blue]
      > 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
      > yanivardit@hotm ail.com ; yanivma@shaam.g ov.il[/color]

      <script type="text/javascript" src="myfile.js? version=2004022 71430"></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 <gwagner@agrico reunited.com>

      * Client-side Javascript and Netscape 4 DOM Reference available at:
      *


      * Internet Explorer DOM Reference available at:
      *
      Find official documentation, practical know-how, and expert guidance for builders working and troubleshooting in Microsoft products.


      * 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-deve...upgrade_2.html


      Comment

      Working...