Re: AjaxDatePicker and IE(7 or 8)
Re: AjaxDatePicker and IE(7 or 8)
- Subject: Re: AjaxDatePicker and IE(7 or 8)
- From: Theodore Petrosky <email@hidden>
- Date: Wed, 15 Sep 2010 04:00:37 -0700 (PDT)
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@hidden> wrote:
From: Simon <email@hidden>
Subject: Re: AjaxDatePicker and IE(7 or 8)
To: "Theodore Petrosky" <email@hidden>
Cc: "Chuck Hill" <email@hidden>, email@hidden
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@hidden> 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@hidden> wrote:
> From: Chuck Hill <email@hidden>
> Subject: Re: AjaxDatePicker and IE(7 or 8)
> To: "Simon" <email@hidden>
> Cc: "Theodore Petrosky" <email@hidden>, email@hidden
> 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@hidden>
> 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@hidden)
> > Help/Unsubscribe/Update your Subscription:
> >
> > This email sent to email@hidden
> >
> > _______________________________________________
> > Do not post admin requests to the list. They will be
> ignored.
> > Webobjects-dev mailing list (email@hidden)
> > Help/Unsubscribe/Update your Subscription:
> >
> > This email sent to email@hidden
>
> --
> 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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden