Simon, My situation was somewhat different. The ADP was 'working' in IE8 sometimes.
It did work on a Component that was the 'base' page of my site. However if I put the ADP on a AMD, then things broke. On the first display of the AMD, the ADP worked fine, then on the second (and subsequent) displays of the AMD it did not function. My fix was to place: <wo:ERXStyleSheet filename = "calendar.css" framework = "Ajax" media = "screen" /> in the head of the main page (the one that was bringing up the AMD). Although the ADP does have an annoying problem that if the list that is used to present the hyperlink to call the AMD is long, and you scroll to the bottom, when the AMD shows itself, it appears that the ADP doesn't work (safari, IE, etc). However on closer examination, I see it is working, it is just that it is connected to a point close to the top of the original list. So if I view the log list, scroll to the bottom, show the AMD and click the ADP, I then need to scroll the background list to show the top and voila, the datepicker slides into place. I wish I knew enough to look at the code and propose a fix. Ted --- On Wed, 9/15/10, Simon <[email protected]> wrote: From: Simon <[email protected]> Subject: Re: AjaxDatePicker and IE(7 or 8) To: "Theodore Petrosky" <[email protected]> Cc: "Chuck Hill" <[email protected]>, [email protected] Date: Wednesday, September 15, 2010, 4:12 AM hey all - we've just bumped into this error now, after updating wonder to the latest version. one of our devs has tracked it down to a patch that was applied to the wonder trunk some time ago. reversing that patch fixes the issue. we've opened a new ticket to get the original patch which breaks ADP rolled back (http://issues.objectstyle.org/jira/browse/WONDER-588) if you use ADP in your wo apps, and your users use IE, please go vote for it !!! Simon On 9 August 2010 16:45, Theodore Petrosky <[email protected]> wrote: I don't know if I am doing something wrong… Here is my html <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <html> <head> <title>Untitled</title> </head> <body> <wo:AjaxDatePicker value = "$theNewDate"/> </body> </html> my java: package your.app.components; import com.webobjects.appserver.WOContext; import er.extensions.components.ERXComponent; import com.webobjects.foundation.NSTimestamp; public class Main extends ERXComponent { public Main(WOContext context) { super(context); } private NSTimestamp theNewDate; /** * @return the theNewDate */ public NSTimestamp theNewDate() { return theNewDate; } /** * @param theNewDate the theNewDate to set */ public void setTheNewDate(NSTimestamp theNewDate) { this.theNewDate = theNewDate; } } I added the Ajax Framework to my build path and ran the app (Wonder App) by selecting the application.java and run as WOApplication. Safari opens and displays a text area that if you click, you get the date picker.. on IE 8… Nada….nichevo, niente (I just checked it using Safari 501 on a windows machine and it worked fine) Here is the Source that was created: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <html> <head> <title>Untitled</title> <script src="/cgi-bin/WebObjects/DatePickerTest.woa/_wr_/wodata=/Library/Frameworks/Ajax.framework/WebServerResources/prototype.js"></script> <script src="/cgi-bin/WebObjects/DatePickerTest.woa/_wr_/wodata=/Library/Frameworks/Ajax.framework/WebServerResources/wonder.js"></script> <script src="/cgi-bin/WebObjects/DatePickerTest.woa/_wr_/wodata=/Library/Frameworks/Ajax.framework/WebServerResources/calendar.js"></script> <script src="/cgi-bin/WebObjects/DatePickerTest.woa/_wr_/wodata=/Library/Frameworks/Ajax.framework/WebServerResources/date.js"></script> <link rel="stylesheet" type="text/css" href="/cgi-bin/WebObjects/DatePickerTest.woa/_wr_/wodata=/Library/Frameworks/Ajax.framework/WebServerResources/calendar.css"/> </head> <body> <input onclick="event.cancelBubble=true; AOD.loadCSS('/cgi-bin/WebObjects/DatePickerTest.woa/_wr_/wodata=/Library/Frameworks/Ajax.framework/WebServerResources/calendar.css'); this.select(); calendar_open(this, {images_dir:'/cgi-bin/WebObjects/DatePickerTest.woa/_wr_/wodata=/Library/Frameworks/Ajax.framework/WebServerResources', format:'%m %d %Y'});" onfocus="AOD.loadCSS('/cgi-bin/WebObjects/DatePickerTest.woa/_wr_/wodata=/Library/Frameworks/Ajax.framework/WebServerResources/calendar.css'); this.select(); calendar_open(this, {images_dir:'/cgi-bin/WebObjects/DatePickerTest.woa/_wr_/wodata=/Library/Frameworks/Ajax.framework/WebServerResources', format:'%m %d %Y'});" type="text" name="1" /> </body> </html> Here is the error console from the IE 8 rendering. Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; GTB6.5) Timestamp: Mon, 9 Aug 2010 15:41:51 UTC Message: Object doesn't support this property or method Line: 112 Char: 3 Code: 0 URI: http://10.1.10.92:51619/cgi-bin/Webobjects/datepickertest.woa/_wr_/wodata=/Library/Frameworks/Ajax.framework/WebServerResources/calendar.js Message: Object doesn't support this property or method Line: 13 Char: 150 Code: 0 URI: http://10.1.10.92:51619/cgi-bin/Webobjects/datepickertest.woa Message: Object doesn't support this property or method Line: 112 Char: 3 Code: 0 URI: http://10.1.10.92:51619/cgi-bin/Webobjects/datepickertest.woa/_wr_/wodata=/Library/Frameworks/Ajax.framework/WebServerResources/calendar.js Message: Object doesn't support this property or method Line: 13 Char: 175 Code: 0 URI: http://10.1.10.92:51619/cgi-bin/Webobjects/datepickertest.woa btw, on various other components on my app, the datepicker is working on both safari and IE 8. --- On Sun, 8/8/10, Chuck Hill <[email protected]> wrote: > From: Chuck Hill <[email protected]> > Subject: Re: AjaxDatePicker and IE(7 or 8) > To: "Simon" <[email protected]> > Cc: "Theodore Petrosky" <[email protected]>, [email protected] > Date: Sunday, August 8, 2010, 11:03 PM > I don't see this on the Open list in > Jira. > > > On Aug 7, 2010, at 1:30 PM, Simon wrote: > > > there is an patch for some IE related bollox on the > wonder jira that one of our devs submitted. not sure if it > made it into the trunk yet, or whether it will fix your > specific issue. IIRC, it whacks an iframe behind the popped > calendar to prevent IE "standards" getting on your > nerves... > > > > simon > > > > > > On 7 August 2010 20:59, Theodore Petrosky <[email protected]> > wrote: > > I seem to have a problem with my AjaxDatePicker…. I > did see the listing in the Wonder Docs that says there > was(is) a problem playing with AMDOpener … The ADP is on a > AMD. However, it works just fine in Safari and FireFox… on > IE 7 or 8 sometimes it displays correctly, mostly not. > > > > Sometimes it displays with no background. I see the > calendar and all the controls (last year, last month, etc) > and I can click to select a date. But the calendar is > completely transparent making it difficult to find the > correct date to click on. > > > > This is only when the page (AMD) is displayed on IE. I > will try adding the line to the appendToResponse but this > doesn't seem to relate to the issue stated in the docs. > > > > Any other ideas… > > > > Ted > > > > > > > > _______________________________________________ > > Do not post admin requests to the list. They will be > ignored. > > Webobjects-dev mailing list ([email protected]) > > Help/Unsubscribe/Update your Subscription: > > http://lists.apple.com/mailman/options/webobjects-dev/simon%40potwells.co.uk > > > > This email sent to [email protected] > > > > _______________________________________________ > > Do not post admin requests to the list. They will be > ignored. > > Webobjects-dev mailing list ([email protected]) > > Help/Unsubscribe/Update your Subscription: > > http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net > > > > This email sent to [email protected] > > -- > Chuck Hill > Senior Consultant / VP Development > > Practical WebObjects - for developers who want to increase > their overall knowledge of WebObjects or who are trying to > solve specific problems. > http://www.global-village.net/products/practical_webobjects > > > > > > > > _______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
