SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Aug 2003
    Location
    Michigan
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Forcing Javascript to Refresh?

    Hey All,

    I'm having some problems with our company intranet. I have a DHTML-based menu system, which is referenced with a JS include. I'm having some issues where the menu isn't showing up for people (it's just blank). They reboot their machine, then it works.

    Any suggestions for a possible solution? I'm thinking I may need to force a refresh on the JS ..

    Any help would be greatly appreciated.

    Thanks!

  2. #2
    Non-Member QualityWebHosts's Avatar
    Join Date
    Sep 2003
    Location
    USA
    Posts
    45
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Are you using window.refresh?

  3. #3
    ♪♪ ♪ ♪ ♪ ♪♪ ♪ ♪♪ Markdidj's Avatar
    Join Date
    Sep 2002
    Location
    Bournemouth, South UK
    Posts
    1,551
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    If its a microsoft intranet you may be able to use
    Code:
    document.getElementsByTagName("script" )[0].src=""newJs.js
    I used it on a simple chat box but it didn't work online as the javascript was being called from the cache.
    LiveScript: Putting the "Live" Back into JavaScript
    if live output_as_javascript else output_as_html end if


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •