• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: AjaxModalDialog and AjaxDatePicker
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AjaxModalDialog and AjaxDatePicker


  • Subject: Re: AjaxModalDialog and AjaxDatePicker
  • From: Theodore Petrosky <email@hidden>
  • Date: Wed, 31 Jul 2013 13:52:03 -0400

sorry, I never had any datepickers on a regular page they were all on AjaxModalDialogs.  I assume that this is a standard WO App. wrap the ajaxDatePicker on the standard page in a div with a different id so you can target this DatePicker differently?

but I thought that AjaxDatePicker had a binding for id?

at this moment, anything that I would think of would be really hackish. 

Ted



On Jul 31, 2013, at 1:35 PM, Lon Varscsak <email@hidden> wrote:

This does work in modal dialogs, but then causes a problem for me when not in a modal dialog.  If I scroll on a regular page, the calendar component moves with the scroller.

-Lon


On Tue, Jul 30, 2013 at 8:24 PM, Theodore Petrosky <email@hidden> wrote:
try this CSS:


body #calendar_control {
 position: fixed !important;
}

it worked for me.

Ted


--------------------------------------------
On Tue, 7/30/13, Lon Varscsak <email@hidden> wrote:

 Subject: Re: AjaxModalDialog and AjaxDatePicker
 To: "Chuck Hill" <email@hidden>
 Cc: "email@hidden" <email@hidden>
 Date: Tuesday, July 30, 2013, 8:21 PM

 lol, I'm not sure I can
 tell the users that. 
 There is this line in the
 calendar.js:

   var result =
 [document.viewport.getScrollOffsets().left -
 $(el).cumulativeScrollOffset().left,
 document.viewport.getScrollOffsets().top -
 $(el).cumulativeScrollOffset().top]; 

 Which results in [0,0] because the
 document's viewport's getScrollOffsets() are the
 same as the element's cumulativeScrollOffset().  If I
 change it to:

   var result =
 [document.viewport.getScrollOffsets().left,
 document.viewport.getScrollOffsets().top]; 

 It displays in the right location.  Scrolling while
 it's displayed will cause it to move since the
 background is moving…but I could live with that.
 I'm just not familiar enough with JS
 to know the ramifications of such a change.

 -Lon

 On Tue, Jul 30, 2013
 at 5:13 PM, Chuck Hill <email@hidden>
 wrote:

 We
 see this too.  Don't scroll?  :-)  My guess would be
 absolute vs relative positioning.



 Chuck



 On 2013-07-30, at 4:54 PM, Lon Varscsak wrote:



 > Hey all,

 >

 > I have an AjaxDatePicker on an AjaxModalDialog and am
 running into a bit of trouble.  If the page that is
 launching the AMD is scrolled down at all, the
 AjaxDatePicker is in the wrong location (up at the top as
 though the page hadn't been scrolled).


 >

 > I can actually scroll (the background) while an AMD is
 open and make it align, but I'm not sure how to deal
 with this.

 >

 > Any ideas?

 >

 > Thanks,

 >

 > Lon

 >

 > P.S. -- Happens in both Safari and Chrome…default
 CSS.

 >
 _______________________________________________

 > 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

 Executive Managing Partner, VP Development and Technical
 Services



 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/gvc/practical_webobjects



 Global Village Consulting ranks 13th in 2012 in BIV's
 Top 100 Fastest Growing Companies in B.C!



 Global Village Consulting ranks 44th in 25th annual PROFIT
 500 ranking of Canada’s Fastest-Growing Companies by
 PROFIT Magazine!




























 -----Inline Attachment Follows-----


 _______________________________________________
 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

References: 
 >Re: AjaxModalDialog and AjaxDatePicker (From: Lon Varscsak <email@hidden>)
 >Re: AjaxModalDialog and AjaxDatePicker (From: Theodore Petrosky <email@hidden>)
 >Re: AjaxModalDialog and AjaxDatePicker (From: Lon Varscsak <email@hidden>)

  • Prev by Date: Re: AjaxModalDialog and AjaxDatePicker
  • Next by Date: Re: AjaxModalDialog and AjaxDatePicker
  • Previous by thread: Re: AjaxModalDialog and AjaxDatePicker
  • Next by thread: Re: AjaxModalDialog and AjaxDatePicker
  • Index(es):
    • Date
    • Thread