hjre
February 1st, 2005, 09:04 AM
Hi
I have this script;
<script>
<!--
var nu = new Date();
var aar = nu.getYear();
var mdr = nu.getMonth()+1;
var dato = nu.getDate();
if(dato <10) dato='0'+dato;
if(mdr<10) mdr='0'+mdr;
url="http://www.xxx.yyy/hillerod_lokale/booking.asp?"
kult1="WCI=dag&d="+dato+"-"+mdr+"-"+aar+"&o=1";
kult2="WCI=dag&d="+dato+"-"+mdr+"-"+aar+"&o=2";
kult3="WCI=dag&d="+dato+"-"+mdr+"-"+aar+"&o=3";
kult4="WCI=dag&d="+dato+"-"+mdr+"-"+aar+"&o=4";
-->
</SCRIPT>
And the link look like this;
<a href="#" onClick="window.open(url+kult1);">
Link</a><br>
The problem is that, when the link open I get an error from the server that the page has expired...
Anyone know how I force the script to 'connect' directly to the server and refresh the url?
HJ
I have this script;
<script>
<!--
var nu = new Date();
var aar = nu.getYear();
var mdr = nu.getMonth()+1;
var dato = nu.getDate();
if(dato <10) dato='0'+dato;
if(mdr<10) mdr='0'+mdr;
url="http://www.xxx.yyy/hillerod_lokale/booking.asp?"
kult1="WCI=dag&d="+dato+"-"+mdr+"-"+aar+"&o=1";
kult2="WCI=dag&d="+dato+"-"+mdr+"-"+aar+"&o=2";
kult3="WCI=dag&d="+dato+"-"+mdr+"-"+aar+"&o=3";
kult4="WCI=dag&d="+dato+"-"+mdr+"-"+aar+"&o=4";
-->
</SCRIPT>
And the link look like this;
<a href="#" onClick="window.open(url+kult1);">
Link</a><br>
The problem is that, when the link open I get an error from the server that the page has expired...
Anyone know how I force the script to 'connect' directly to the server and refresh the url?
HJ