View Full Version : Page Reload Problem

07-11-2006, 06:19 PM
Hi All.

I am having a web page which is using a JS Calendar, once the user click on calender image and pick the date from the calendar it will show up in the text box on the web page, I want once the date is picked up from the calendar, the main page should reload.

Here is the code

<form method="POST" name="form" action="xxx.asp">
<DIV ID="testdiv1" STYLE="position:absolute;visibility:hidden;background-color:white;layer-background-color:white;"></DIV>
<table border="0" width="915">
<td width="963">
<table width="691">
<td width="979" colspan="3">
<table border="0" width="100%">
<SCRIPT LANGUAGE="JavaScript" ID="jscal1x">
var cal1x = new CalendarPopup("testdiv1");
<SCRIPT LANGUAGE="JavaScript">writeSource("jscal1x");</SCRIPT>

<td width="247">

<p align="left"><font face="Verdana" size="1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Week Ending<input type="text" name="date1x" value="<%= Request.Form("date1x") %>" size="13" ><A HREF="#" onClick="cal1x.select(document.forms[0].date1x,'anchor1x','MM/dd/yyyy'); return false;" NAME="anchor1x" ID="anchor1x"><img border="0" src="images/calendar.jpg"></a></font></td>


Please help!!


07-11-2006, 06:55 PM
when you say reload, do you mean you want the form posted? You want a url query string in the url? Why just reload it? If you want the form to submit, it's document.formname.submit()

07-11-2006, 07:17 PM
Thanks for your reply.
Yes it will be a form submit.
But the problem is that where should I call the submit event in my code.