Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jul 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Page Reload Problem

    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">
    <tr>
    <td width="979" colspan="3">
    <table border="0" width="100%">
    </table>
    </td>
    </tr>
    <tr>
    <SCRIPT LANGUAGE="JavaScript" ID="jscal1x">
    var cal1x = new CalendarPopup("testdiv1");
    </SCRIPT>
    <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>

    </tr>
    </form>


    Please help!!

    Demireal

  • #2
    Senior Coder
    Join Date
    Jul 2005
    Location
    New York, NY
    Posts
    1,084
    Thanks
    4
    Thanked 19 Times in 19 Posts
    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()

  • #3
    New to the CF scene
    Join Date
    Jul 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

    Demi


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •