[Javascript] force to load window.open()
noel.jean-baptiste at courrier.uqam.ca
noel.jean-baptiste at courrier.uqam.ca
Thu Jun 19 11:44:25 CDT 2003
Thank you for you response.
Your algorithme seems to work but i don't understand all.
For example, eventhough i comment "t.search = t.search + "&date=" +
Date.parse(new Date());" in init function it seems to work...
any idea ?
Djib
---- Messages d´origine ----
De: Hassan Schroeder <hassan at webtuitive.com>
Date: mercredi 18 juin 2003 19:04
Objet: Re: [Javascript] force to load window.open()
> noel.jean-baptiste at courrier.uqam.ca wrote:
>
> > > nomBase=etudiant','_self','status=yes');" >
> > <IMG SRC="bouton.gif"/>
> >
> > When i clik on the button for the first time the ServletAcces is
> > called.
> > But the second time and more, the ServletAcces is not called
> because i
> > think it's the cach's browser.
> > How can i do to force the link to call the ServletAcces each
> times it
> > is called ?
> >
> > I kwow it is ok if i use _blank as attribute but i don't want to
> use
> > it.
>
> I'm totally unclear why you're using JavaScript to open another page
> in the same window, but as far as your immediate question -- you can
> have `ServletAcces` return no-cache headers and/or append a unique
> (timestamp) string to the URL to minimize browser caching.
>
> Here's one approach to the latter:
>
> <script type="text/javascript">
> function init()
> {
> var t = document.getElementById("s");
> t.search = t.search + "&date=" + Date.parse(new Date());
> }
>
> window.onload=init;
> </script>
>
> href="ServletAcces?nomBase=etudiant"
> onclick="window.open(this.href,'_self','status=yes');"
> >
> <img src="bouton.gif"/>
>
>
> (I put the onclick in there, though it's superfluous; the normal
> link will open in the same window, unless you change the '_self'
> to something else...)
>
> HTH!
> --
> Hassan Schroeder ----------------------------- hassan at webtuitive.com
> Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com
>
> dream. code.
>
>
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
>
More information about the Javascript
mailing list