Hi,

you can try something like:

<!-- This is JS stuff - see link below if interested -->
<script language='JavaScript' src='/javascript/AnchorPosition.js'></script>
<script language='JavaScript' src='/javascript/PopupWindow.js'></script>
<script language='JavaScript' src='/javascript/CalendarPopup.js'></script>
<script language='JavaScript'>var cal0 = new CalendarPopup();
cal0.setReturnFunction('showDate0');
cal0.offsetX=2;
function showDate0(y,m,d)
{document.forms[0].elements['registrationDate'].value = y + "-" + m + "-" +
d;}
</script>
<html:text property="registrationDate" size="10" maxlength="10">

HTH.. I've used a tag to generate the above, but it should work fine...

Andrej

BTW, pretty nice JS calendar at
http://www.mattkruse.com/javascript/calendarpopup/

-----Original Message-----
From: Paul [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 20, 2001 4:02 PM
To: Struts Users Mailing List
Subject: <html:form> and javascript popup calendar


Hello,

Is there a way to include a popup calendar within my 

<html:form action="/Action_Page" >

to populate a <html:text> field?? 

normally, the JS would open a popup, you would select
the date, the text field would populate and the window
closes...

The normal popup JS calendar is dependent on the form
name, but i haven't had any luck getting the syntax
right w/ struts.

thank you in advance,
paul




__________________________________________________
Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1

--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

Reply via email to