General discussion

Locked

Simple HTML/JavaScript Q. - please help

By rsp05 ·
I am novice at ASP, but am frustrated w/ something that seems so simple HTML. I have a form with a piece of javascript that incorporates a calendar applet, which you select the date, and it places it in the input-textbox. Now when I submit the form, I should be able to reference the value contained in the input box. But my efforts have been fruitless....Here is the code.
(I am commenting out, in case post executes HTML)
<!--
<Script language="javascript">

function ShowDate(oDoc,cDate)
{
window.open("datepicker.asp?backf="+oDoc+"&cDate="+cDate,"window", "height=210, width=300, resizeable=no,","");
}

</Script>


<Form action="UDO.asp" method="Post" name="HICSF">
<Table Border="0">
<TR>
<td align=right>Date Requested:</TD>
<TD>   </TD>
<TD><TD><Input type="text" class="INPUTTEXT" style="text-align:center" id="VonDatum" name="VonDatum" size=10 Value=<%Response.write Date%> maxlength=12> <A href="javascript:ShowDate('HICSF.VonDatum',this.HICSF.VonDatum.value)"><IMG src="/images/calendar.gif" align=absmiddle border="0"></A></TD>
</TR>
</Table>

<td align=right><INPUT TYPE="submit" NAME="submit" VALUE="Submit Form"></td>
</tr>

</form> -->
<%response.write ???%> name of form or inputtextbox?? I tried both, and get no value.

Thank you for you speedy help!

This conversation is currently closed to new comments.

4 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Simple HTML/JavaScript Q. - please help

by rsp05 In reply to Simple HTML/JavaScript Q. ...

I guess to make the question much shorter: How can you pass a JAVASCRIPT variable back to an ASP variable?

Collapse -

Simple HTML/JavaScript Q. - please help

by quahsays In reply to Simple HTML/JavaScript Q. ...

you should be referencing the name of the textbox that contains the date.

i.e. response.write request.form('VonDatum')

if your date picker does not show on the textbox, then there's a problem. i can recommend another solution.

Collapse -

Simple HTML/JavaScript Q. - please help

by rsp05 In reply to Simple HTML/JavaScript Q. ...

I tried your suggestion, and doesn't seem to work. The problem is the value in the textbox is not getting passed from the JScript world to ASP. Any other clues?

Collapse -

Simple HTML/JavaScript Q. - please help

by rsp05 In reply to Simple HTML/JavaScript Q. ...

This question was closed by the author

Back to Web Development Forum
4 total posts (Page 1 of 1)  

Related Discussions

Related Forums