Click to See Complete Forum and Search --> : force to load window.open()


jean-baptiste
06-18-2003, 05:24 PM
Hi,
my code is :
<A HREF="javascript:window.open('./ServletAcces?
nomBase=etudiant','_self','status=yes');" >
<IMG SRC="bouton.gif"/></A>

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.

Thanks a lot

Khalid Ali
06-18-2003, 05:39 PM
Use this in the head section of your webpage where you want toforce no cache

<meta http-equiv="Pragma" content="no-cache;">

It should work..

Charles
06-18-2003, 09:05 PM
By the way, <A HREF="javascript:window.open('./ServletAcces?nomBase=etudiant','_self','status=yes');" >
<IMG SRC="bouton.gif"/></A> will needlessly give you a link that does absolutely nothing for 13% of users. Use instead <a href="./ServletAcces?nomBase=etudiant" onclick="window.open(this.href, 'child', 'status'); return false"><IMG SRC="bouton.gif"></a>.

jean-baptiste
06-19-2003, 11:42 AM
thanks a lot for your answer.
<meta http-equiv="Pragma" content="no-cache;"> works but not at each time.