Re: [ANN] AjaxDatePicker and AjaxDefaultSubmitButton
Re: [ANN] AjaxDatePicker and AjaxDefaultSubmitButton
- Subject: Re: [ANN] AjaxDatePicker and AjaxDefaultSubmitButton
- From: Chuck Hill <email@hidden>
- Date: Tue, 23 Jun 2009 18:09:59 -0700
Hi Travis,
On Apr 28, 2009, at 6:37 AM, Travis Britt wrote:
On Mar 27, 2009, at 11:02 AM, Chuck Hill wrote:
One other thing is when you reopen the AMD a second time (without
doing a page refresh) the css will be lost. To fix it I adding the
css in the appendToResponse of the AMD with ERXResponseRewriter,
just like your note about putting the javascript in there. Now it
looks like its working.
I don't see this problem. Is this only after using the close
link? If I close it using my controls, and open it again, it looks
as it did the first time.
First of all, thanks Chuck for wiring this up!
I was able to reproduce this issue by using AjaxDatePicker in a form
on an AjaxTabbedPanel. If the AjaxDatePicker is not on the initially
selected tab, and is updated via Ajax (for example, an ajax form
submit) the next time the calendar is activated it has lost its css.
Not sure *why* this happens yet, but was able to work around it by
using ERXResponseRewriter to add the calendar's css in the page
component containing the AjaxTabbedPanel.
I _think_ I just fixed this. The CSS is now loaded dynamically and
DOM manipulation is used instead of document.write. In my failure
cases, this has fixed the problem.
Chuck
--
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