CalendarPopup and indexed date fields on forms.

M

Manoj Nair

I have a piece of code below where the date field is indexed and each
date field is associated with a calendarpopup. Under these
circumstances how should I code the "select" for the calendar object?

Sorry if this is a simple question. I am pretty much a novice in
struts and just started about 3 weeks back.

<html:text indexed="true" size="12" maxlength="11"
name="billingtriggerdate" property="actualDateDDMMMYYYY"
disabled="false" onchange="modifyRow(document.updateBillingTriggerDateForm,this)"/>
<script type="text/javascript" language="JavaScript">
var cal5 = new CalendarPopup();
cal5.showYearNavigation();
</script>
<c2c:img imageName="newactualDate"
alt="calendar"
page="/images/calendar.gif"
onclick="cal5.select(???????
,newactualDate);return false;;"
onmouseover="showToolTips(this,'Click to Select
Date');return true;"
onmouseout="window.status='';return true;"
align="absmiddle"
border="0" />
<span class="error"><c2c:errors property="actualDateDDMMMYYYY"
showHeader="false"/></span>
</td>

Thanks and appreciate all your help
 
K

Karthik

Manoj said:
I have a piece of code below where the date field is indexed and each
date field is associated with a calendarpopup. Under these
circumstances how should I code the "select" for the calendar object?

Sorry if this is a simple question. I am pretty much a novice in
struts and just started about 3 weeks back.

<html:text indexed="true" size="12" maxlength="11"
name="billingtriggerdate" property="actualDateDDMMMYYYY"
disabled="false" onchange="modifyRow(document.updateBillingTriggerDateForm,this)"/>
<script type="text/javascript" language="JavaScript">
var cal5 = new CalendarPopup();
cal5.showYearNavigation();
</script>
<c2c:img imageName="newactualDate"
alt="calendar"
page="/images/calendar.gif"
onclick="cal5.select(???????
,newactualDate);return false;;"
onmouseover="showToolTips(this,'Click to Select
Date');return true;"
onmouseout="window.status='';return true;"
align="absmiddle"
border="0" />
<span class="error"><c2c:errors property="actualDateDDMMMYYYY"
showHeader="false"/></span>
</td>

Thanks and appreciate all your help
Tbought this was a Java programming lang. mailing list and not javascript !!
 
M

Manoj Nair

Karthik said:
Manoj Nair wrote:

Tbought this was a Java programming lang. mailing list and not javascript !!

If you had read the note I posted carefully you would have noticed
that this is a struts question.And if you search for "struts" you will
get this mailing list and not the javascript mailing list !! The
javascript mailing list has just 2 pages of search result returned
unlike programmer which returns many...
 
S

Sudsy

Manoj said:
I have a piece of code below where the date field is indexed and each
date field is associated with a calendarpopup. Under these
circumstances how should I code the "select" for the calendar object?

Sorry if this is a simple question. I am pretty much a novice in
struts and just started about 3 weeks back.

<html:text indexed="true" size="12" maxlength="11"
name="billingtriggerdate" property="actualDateDDMMMYYYY"
disabled="false" onchange="modifyRow(document.updateBillingTriggerDateForm,this)"/>
<snip>

So forget about the JavaScript for a moment. You're obviously not
providing all the relevant information. You don't use indexed
properties except within an iteration, right? So there's an outside
tag construct which you haven't provided.
You've soiled the water and given rise to the confusion shown by
a previous respondent.
More detailed information would be welcome...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top