Re: AjaxDatePicker and IE(7 or 8)
Re: AjaxDatePicker and IE(7 or 8)
- Subject: Re: AjaxDatePicker and IE(7 or 8)
- From: Ramsey Gurley <email@hidden>
- Date: Mon, 9 Aug 2010 16:01:39 -0400
You can also try the one here:
http://webobjects.mdimension.com/cgi-bin/WebObjects/AjaxExample.woa
Ramsey
On Aug 9, 2010, at 3:32 PM, Theodore Petrosky wrote:
I also just tried the AjaxExample, this also does not render a
calendar when I click the text area.
did I screw something up?
I am going back to Hudson and download the frameworks again.
ted
--- On Mon, 8/9/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>, "WebObjects-Dev List" <email@hidden
>
Date: Monday, August 9, 2010, 3:04 PM
given that it's working fine in other browsers, i'd try microsofts
advice (http://support.microsoft.com/kb/308260) and dump all the
temprary interent files. it might just be that IE is being "clever"
and using a cached version of calendar.js.
simon
On 9 August 2010 16:55, Theodore Petrosky <email@hidden> wrote:
so here is my new html:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>Untitled</title>
</head>
<body>
<wo:WOForm>
<wo:AjaxDatePicker value = "$theNewDate"/>
</wo:WOForm>
</body>
</html>
still no joy with windows IE8
here is the error console:
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:52:24 UTC
Message: Object doesn't support this property or method
Line: 112
Char: 3
Code: 0
URI: http://10.1.10.92:52074/cgi-bin/Webobjects/datepickertest.woa/_wr_/wodata=/Library/Frameworks/Ajax.framework/WebServerResources/calendar.js
Message: Object doesn't support this property or method
Line: 14
Char: 150
Code: 0
URI: http://10.1.10.92:52074/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:52074/cgi-bin/Webobjects/datepickertest.woa/_wr_/wodata=/Library/Frameworks/Ajax.framework/WebServerResources/calendar.js
Message: Object doesn't support this property or method
Line: 14
Char: 175
Code: 0
URI: http://10.1.10.92:52074/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:52074/cgi-bin/Webobjects/datepickertest.woa/_wr_/wodata=/Library/Frameworks/Ajax.framework/WebServerResources/calendar.js
Message: Object doesn't support this property or method
Line: 14
Char: 175
Code: 0
URI: http://10.1.10.92:52074/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:52074/cgi-bin/Webobjects/datepickertest.woa/_wr_/wodata=/Library/Frameworks/Ajax.framework/WebServerResources/calendar.js
Message: Object doesn't support this property or method
Line: 14
Char: 175
Code: 0
URI: http://10.1.10.92:52074/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:52074/cgi-bin/Webobjects/datepickertest.woa/_wr_/wodata=/Library/Frameworks/Ajax.framework/WebServerResources/calendar.js
Message: Object doesn't support this property or method
Line: 14
Char: 150
Code: 0
URI: http://10.1.10.92:52074/cgi-bin/Webobjects/datepickertest.woa
--- On Mon, 8/9/10, Chuck Hill <email@hidden> wrote:
From: Chuck Hill <email@hidden>
Subject: Re: AjaxDatePicker and IE(7 or 8)
To: "Theodore Petrosky" <email@hidden>
Cc: "WebObjects-Dev List" <email@hidden>
Date: Monday, August 9, 2010, 11:46 AM
On Aug 9, 2010, at 8:45 AM, Theodore Petrosky 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"/>
It is an input, it need to be in a <form>.
Chuck
</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
--
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
_______________________________________________
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