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 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
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
> 
> 
> 

-- 
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







Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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]

Reply via email to