|
Dave, While I do not use the same coding example as you point out, I think you may be missing the word "return" after onclick=". I adapted the coding sample from the Understanding the IBM WebFacing Tool example. The code in the DDS is... A*%%WB 8 FLD <DIV style="position: absolute;"><A href=# onclick="return sh+ A*%%WB +owCalendar('l<%=zOrder%>_SCREENID$FIELDNAME', 'm/d/y');"> <IMG src=+ A*%%WB +"images/generated/CalendarButton.gif" width="23" height="23" borde+ A*%%WB +r="0"></A></DIV> ... and generates into the .jsp file as... <TD NOWRAP colspan=10 rowspan=1><INPUT <% if (isProtected) { %> readonly tabindex=-1 <% } %> id="l<%=zOrder%>_SCREENID$FIELDNAME" previousValue="<%= SCREENID.getFieldValueWithTransform("FIELDNAME", QUOTED_TRANSFORM)%>" class="wf_hi <%=isProtected?"wf_pr":""%> wf_ul wf_default wf_field" VALUE="<%=SCREENID.getFieldValueWithTransform("WSSF1DAT", QUOTED_TRANSFORM)%>" SIZE=10 MAXLENGTH=10 ><DIV style="position: absolute;"><A href=# onclick="return showCalendar('l<%=zOrder%>_SCREENID$ FIELDNAME', 'm/d/y');"> <IMG src="images/generated/CalendarButton.gif" width="23" height="23" border="0"></A></DIV></TD><% lastCol=46; %> HTH David R. Sager ITS Project Leader, BPMS Office: (847) 482-2627 Cell: (847) 489-4941 AIM: drsatpca ----- Message from Dave Reiher/prairiefarms <DReiher@xxxxxxxxxxxxxxxx> on Thu, 13 Oct 2005 12:26:56 -0500 ----- To: web400@xxxxxxxxxxxx Subject: [WEB400] WebFacing Drop-Down Box I used the example in the "Mastering the IBM WebFacing Tool" redbook to create a drop-down, this is the snippet of code from the redbook: <SPAN class="wf_blue wf_field" <%if (isProtected) {%> <% } else { %>TITLE="Click to select with Calendar" STYLE="cursor: pointer; cursor: hand;" onClick="show_calendar('window.opener.document.SCREEN.l<%=zOrder%>_SCRN01$DOFMON', 'window.opener.document.SCREEN.l<%=zOrder%>_SCRN01$DOFDAY', 'window.opener.document.SCREEN.l<%=zOrder%>_SCRN01$DOFYR', 'window.opener.document.SCREEN.DepMon', 'window.opener.document.SCREEN.DepDay', 'window.opener.document.SCREEN.DepYea', 'N')" ONMOUSEOVER="this.style.background='yellow';" ONMOUSEOUT="this.style.background=document.body.currentStyle.backgroundColor;" <%}%>>Date of Delivery:</SPAN> Everything works fine, the calendar pops up, and it passes the value back to my main screen, however there is an error on the page once the date gets passed back: Line: 43 Char: 1 Error: 'undefined' is null or not an object. Code: 0 URL: http://blah/WebFacing.do Does the code for the drop down look okay? Dave Reiher System Analyst Prairie Farms Dairy - Corporate Ph: 217.854.2547 ext. 254 dreiher@xxxxxxxxxxxxxxxx
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.