Re: AjaxModalDialog and AjaxDatePicker
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 tedp...@yahoo.comwrote: try this CSS: body #calendar_control { position: fixed !important; } it worked for me. Ted On Tue, 7/30/13, Lon Varscsak lon.varsc...@gmail.com wrote: Subject: Re: AjaxModalDialog and AjaxDatePicker To: Chuck Hill ch...@global-village.net Cc: webobjects-dev@lists.apple.com webobjects-dev@lists.apple.com 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 ch...@global-village.net 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 (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net This email sent to ch...@global-village.net -- 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 (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com This email sent to tedp...@yahoo.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: AjaxModalDialog and AjaxDatePicker
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 lon.varsc...@gmail.com 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 tedp...@yahoo.com wrote: try this CSS: body #calendar_control { position: fixed !important; } it worked for me. Ted On Tue, 7/30/13, Lon Varscsak lon.varsc...@gmail.com wrote: Subject: Re: AjaxModalDialog and AjaxDatePicker To: Chuck Hill ch...@global-village.net Cc: webobjects-dev@lists.apple.com webobjects-dev@lists.apple.com 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 ch...@global-village.net 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 (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net This email sent to ch...@global-village.net -- 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 (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com This email sent to tedp...@yahoo.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: AjaxModalDialog and AjaxDatePicker
Hi Lon, I suppose you could add an on scroll event to the document to recalculate the position of the calendar. Maybe add it to the onClick binding and remove it using onDateSelect? Aloha, Mr. Johnny Miller Web Development Manager Kahalawai Media Company Lahaina, HI 96761 tel: (808) 661-7962 | mobile: (808) 283-0791 website | e-mail On Jul 30, 2013, at 2:21 PM, Lon Varscsak lon.varsc...@gmail.com wrote: 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 ch...@global-village.net 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 (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net This email sent to ch...@global-village.net -- 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! ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/jlmiller%40kahalawai.com This email sent to jlmil...@kahalawai.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: AjaxModalDialog and AjaxDatePicker
The problem isn't just that it moves when you scroll on an AMD (which probably shouldn't happen anyway)…it's that when you launch an AMD from a page that's already scrolled, the AjaxDatePicker starts off in the wrong position (it's treating it like it's not scrolled). This isn't the only bad behavior of ADP, it also doesn't close on it's own when closing the AMD. I've gone ahead and written a new component based on jQuery UI's datepicker and it seems to be a better citizen…but time will tell. :P -Lon On Wed, Jul 31, 2013 at 10:54 AM, Johnny Miller jlmil...@kahalawai.comwrote: Hi Lon, I suppose you could add an on scroll event to the document to recalculate the position of the calendar. Maybe add it to the onClick binding and remove it using onDateSelect? Aloha, Mr. Johnny Miller Web Development Manager Kahalawai Media Company Lahaina, HI 96761 tel: (808) 661-7962 | mobile: (808) 283-0791 website http://www.kahalawai.com | e-mail +jlmil...@kahalawai.com On Jul 30, 2013, at 2:21 PM, Lon Varscsak lon.varsc...@gmail.com wrote: 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 ch...@global-village.netwrote: 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 (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net This email sent to ch...@global-village.net -- 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! ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/jlmiller%40kahalawai.com This email sent to jlmil...@kahalawai.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: AjaxModalDialog and AjaxDatePicker
Hi Lon, Yeah - the right implementation would be to have the date picker position's to be set relative to the input. I was trying to give you a hack. But if you have a scroll within a scroll I can see how that really complicates things. I did start on a JQuery framework for WO - there is the beginning of a date picker from JQuery UI. You can see the sample app here: http://www.kahalawai.com/JQuery - it's in my fork here: https://github.com/johnnykahalawai/wonder/tree/integration If your date picker is more developed than mine and you don't mind sharing please send me what you have. Aloha, Mr. Johnny Miller Web Development Manager Kahalawai Media Company Lahaina, HI 96761 tel: (808) 661-7962 | mobile: (808) 283-0791 website | e-mail On Jul 31, 2013, at 4:33 PM, Lon Varscsak lon.varsc...@gmail.com wrote: The problem isn't just that it moves when you scroll on an AMD (which probably shouldn't happen anyway)…it's that when you launch an AMD from a page that's already scrolled, the AjaxDatePicker starts off in the wrong position (it's treating it like it's not scrolled). This isn't the only bad behavior of ADP, it also doesn't close on it's own when closing the AMD. I've gone ahead and written a new component based on jQuery UI's datepicker and it seems to be a better citizen…but time will tell. :P -Lon On Wed, Jul 31, 2013 at 10:54 AM, Johnny Miller jlmil...@kahalawai.com wrote: Hi Lon, I suppose you could add an on scroll event to the document to recalculate the position of the calendar. Maybe add it to the onClick binding and remove it using onDateSelect? Aloha, Mr. Johnny Miller Web Development Manager Kahalawai Media Company Lahaina, HI 96761 tel: (808) 661-7962 | mobile: (808) 283-0791 website | e-mail On Jul 30, 2013, at 2:21 PM, Lon Varscsak lon.varsc...@gmail.com wrote: 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 ch...@global-village.net 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 (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net This email sent to ch...@global-village.net -- 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! ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/jlmiller%40kahalawai.com This email sent to jlmil...@kahalawai.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to
Re: AjaxModalDialog and AjaxDatePicker
IIRC the ADP is my fault. It was the best fit that found a few years back. It has been far from problem free though. Chuck On 2013-07-31, at 7:33 PM, Lon Varscsak wrote: The problem isn't just that it moves when you scroll on an AMD (which probably shouldn't happen anyway)…it's that when you launch an AMD from a page that's already scrolled, the AjaxDatePicker starts off in the wrong position (it's treating it like it's not scrolled). This isn't the only bad behavior of ADP, it also doesn't close on it's own when closing the AMD. I've gone ahead and written a new component based on jQuery UI's datepicker and it seems to be a better citizen…but time will tell. :P -Lon On Wed, Jul 31, 2013 at 10:54 AM, Johnny Miller jlmil...@kahalawai.com wrote: Hi Lon, I suppose you could add an on scroll event to the document to recalculate the position of the calendar. Maybe add it to the onClick binding and remove it using onDateSelect? Aloha, Mr. Johnny Miller Web Development Manager Kahalawai Media Company Lahaina, HI 96761 tel: (808) 661-7962 | mobile: (808) 283-0791 website | e-mail On Jul 30, 2013, at 2:21 PM, Lon Varscsak lon.varsc...@gmail.com wrote: 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 ch...@global-village.net 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 (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net This email sent to ch...@global-village.net -- 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! ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/jlmiller%40kahalawai.com This email sent to jlmil...@kahalawai.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net This email sent to ch...@global-village.net -- 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! ___ Do not post admin requests to the list. They
Re: AjaxModalDialog and AjaxDatePicker
haha, well, it's really the fault of the JS library you used. This is the first time that I've ever had problems with it…so we got years of use out of it! -Lon On Wed, Jul 31, 2013 at 7:59 PM, Chuck Hill ch...@global-village.netwrote: IIRC the ADP is my fault. It was the best fit that found a few years back. It has been far from problem free though. Chuck On 2013-07-31, at 7:33 PM, Lon Varscsak wrote: The problem isn't just that it moves when you scroll on an AMD (which probably shouldn't happen anyway)…it's that when you launch an AMD from a page that's already scrolled, the AjaxDatePicker starts off in the wrong position (it's treating it like it's not scrolled). This isn't the only bad behavior of ADP, it also doesn't close on it's own when closing the AMD. I've gone ahead and written a new component based on jQuery UI's datepicker and it seems to be a better citizen…but time will tell. :P -Lon On Wed, Jul 31, 2013 at 10:54 AM, Johnny Miller jlmil...@kahalawai.com wrote: Hi Lon, I suppose you could add an on scroll event to the document to recalculate the position of the calendar. Maybe add it to the onClick binding and remove it using onDateSelect? Aloha, Mr. Johnny Miller Web Development Manager Kahalawai Media Company Lahaina, HI 96761 tel: (808) 661-7962 | mobile: (808) 283-0791 website | e-mail On Jul 30, 2013, at 2:21 PM, Lon Varscsak lon.varsc...@gmail.com wrote: 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 ch...@global-village.net 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 (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net This email sent to ch...@global-village.net -- 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! ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/jlmiller%40kahalawai.com This email sent to jlmil...@kahalawai.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net This email sent to ch...@global-village.net -- 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
Re: AjaxModalDialog and AjaxDatePicker
Yeah, I'll look at what you have and see if mine is embarassing or not. :P I don't have full coverage of the datepicker, but it covers pretty much all of what ADP did. -Lon On Wed, Jul 31, 2013 at 7:48 PM, Johnny Miller jlmil...@kahalawai.comwrote: Hi Lon, Yeah - the right implementation would be to have the date picker position's to be set relative to the input. I was trying to give you a hack. But if you have a scroll within a scroll I can see how that really complicates things. I did start on a JQuery framework for WO - there is the beginning of a date picker from JQuery UI. You can see the sample app here: http://www.kahalawai.com/JQuery - it's in my fork here: https://github.com/johnnykahalawai/wonder/tree/integration If your date picker is more developed than mine and you don't mind sharing please send me what you have. Aloha, Mr. Johnny Miller Web Development Manager Kahalawai Media Company Lahaina, HI 96761 tel: (808) 661-7962 | mobile: (808) 283-0791 website http://www.kahalawai.com | e-mail +jlmil...@kahalawai.com On Jul 31, 2013, at 4:33 PM, Lon Varscsak lon.varsc...@gmail.com wrote: The problem isn't just that it moves when you scroll on an AMD (which probably shouldn't happen anyway)…it's that when you launch an AMD from a page that's already scrolled, the AjaxDatePicker starts off in the wrong position (it's treating it like it's not scrolled). This isn't the only bad behavior of ADP, it also doesn't close on it's own when closing the AMD. I've gone ahead and written a new component based on jQuery UI's datepicker and it seems to be a better citizen…but time will tell. :P -Lon On Wed, Jul 31, 2013 at 10:54 AM, Johnny Miller jlmil...@kahalawai.comwrote: Hi Lon, I suppose you could add an on scroll event to the document to recalculate the position of the calendar. Maybe add it to the onClick binding and remove it using onDateSelect? Aloha, Mr. Johnny Miller Web Development Manager Kahalawai Media Company Lahaina, HI 96761 tel: (808) 661-7962 | mobile: (808) 283-0791 website http://www.kahalawai.com/ | e-mail +jlmil...@kahalawai.com On Jul 30, 2013, at 2:21 PM, Lon Varscsak lon.varsc...@gmail.com wrote: 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 ch...@global-village.netwrote: 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 (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net This email sent to ch...@global-village.net -- 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! ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/jlmiller%40kahalawai.com This email sent to jlmil...@kahalawai.com
Re: AjaxModalDialog and AjaxDatePicker
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 (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net This email sent to ch...@global-village.net -- 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! ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: AjaxModalDialog and AjaxDatePicker
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 ch...@global-village.netwrote: 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 (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net This email sent to ch...@global-village.net -- 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! ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: AjaxModalDialog and AjaxDatePicker
Hi Joee, Can you test this out with our usage and let us know if this change works there too? Thanks Chuck On 2013-07-30, at 5:21 PM, Lon Varscsak wrote: 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 ch...@global-village.net 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 (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net This email sent to ch...@global-village.net -- 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! -- 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! ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: AjaxModalDialog and AjaxDatePicker
try this CSS: body #calendar_control { position: fixed !important; } it worked for me. Ted On Tue, 7/30/13, Lon Varscsak lon.varsc...@gmail.com wrote: Subject: Re: AjaxModalDialog and AjaxDatePicker To: Chuck Hill ch...@global-village.net Cc: webobjects-dev@lists.apple.com webobjects-dev@lists.apple.com 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 ch...@global-village.net 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 (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net This email sent to ch...@global-village.net -- 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 (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com This email sent to tedp...@yahoo.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com