in reply to Re: PERL + javascript popup
in thread PERL + javascript popup

dhosek, you might be right, but i restarted my pc, cleaned my cache and it didn't work. then i went ahead to try appending a random number besides its url and it worked just fine! peculiarly though, im actually using IE 7.0.5730.11, while my friend is using 7.0.5730.11RC and he didn't had any prob without the random numbers. Firefox also worked fine.

Replies are listed 'Best First'.
Re^3: PERL + javascript popup
by dhosek (Beadle) on Mar 05, 2008 at 14:56 UTC
    Yeah, it's a browser-dependent thing. IE tends to be the most egregious offender in the unintended caching thing, as it tends to ignore nocache directives (but not, as you noticed, consistently).

    The other option to consider would be to do this through an Ajax call: Set up a div to hold the updated info, and have the button action do an XHR to update the div. I would suggest not writing the code directly, but using a pre-existing library (jquery and yui are relatively lightweight, I'm partial to prototype, my JS guy from a previous job swore by mootools, it's all religion ultimately). Once you start doing the Ajax-y stuff, you discover that the old way of doing things is just painful.

    Donald Hosek, Tech Lead at oversee.net
    L.A. perl people, we're hiring.