Re: Date - time picker
Dear Mark YES, it works fine! Many thanks for all your efforts, have a nice week end Stavros ___ 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: Date - time picker
Hi, I found that bootstrap (with jQuery) and the Ajax framework (prototype.js) would tend to clash a bit. Try these 3 things in order: 1) Try putting this just before jQuery.noConflict(); And when you access jQuery in your page, don’t use the ‘$.someThing()’ notation, use the full ‘jQuery.someThing()’ instead. 2) The order in which you put the is also significant (but this can be tricky to control because Ajax injects its own ones at runtime). 3) If things start randomly disappearing from the browser. I found that the prototype.js has a hide(element) function that causes issues with Bootstrap v3. My comment: (in my /js/ajax_prototype_fix.js file) * Contains a minor update to help with an issue with Twitter Bootstrap v3, where certain elements (pop-ups, etc) would disappear after a roll-over. * See the 'hide(element)' function below. * To use, add 'noProtoJs' to your element's class (if you find they disappear for no obvious reason). * E.g. Tab 1 * * TODO: There is certainly a better way to fix this issue, but this works for now. I replaced the hide function with: function hide(element) { /* MG - See intro text at top. This helps with Twitter BootStrap 3 */ if(!hasClassName(element, 'noProtoJs')){ element = $(element); element.style.display = 'none'; } return element; } You can tell Wonder to load a different prototype.js using config: # Replace the default Ajax:prototype.js with my own one (to fix a bootstrap issue) er.extensions.ERXResponseRewriter.resource.Ajax.prototype.js=MGUtilities.mg/js/ajax_prototype_fix.js Good luck. Mark > On 13 Oct 2017, at 15:43, Stavros Panidis wrote: > > Dear Theodore, > > sure you are not. Sure it is my problem to explain due also to my pure > english. > > > In my application I use bootstrap css framework for styling (getbootstrap.com > <http://getbootstrap.com/>) . This framework has also a nice date/time picker > component. This works fine inside my WOComponent but when I add a > AjaxUpdateContainer at the same component does not work anymore. > > Then I tried the AjaxDate picker from Ajax examples. This works fine but it > is not conforms in style with other elements like text fields, check boxes > etc. > > I hope that I explained a little bit. > > Stavros > >> On 13 Oct 2017, at 16:30, Stavros Panidis > <mailto:stavros.pani...@gmail.com>> wrote: >> >> Dear, >> >> I try to implement Bootstrap date time picker style in a WOComponent. >> Javascript and css works fine except the case that in this component the is >> also a AjaxUpdateContainer (which I certainly need for other controls). >> >> I tried also with AjaxDatePicker which works fine but I don’t know if it is >> possible to apply bootstrap styling on this. >> >> Any suggestions? >> >> Stavros > > ___ > 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/mark%40gowdy.co.uk > > This email sent to m...@gowdy.co.uk _ Mark Gowdy Gowdy Associates Ltd M: +44 7808 400 941 Skype: markgowdy ___ 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: Date - time picker
Dear Theodore, sure you are not. Sure it is my problem to explain due also to my pure english. In my application I use bootstrap css framework for styling (getbootstrap.com <http://getbootstrap.com/>) . This framework has also a nice date/time picker component. This works fine inside my WOComponent but when I add a AjaxUpdateContainer at the same component does not work anymore. Then I tried the AjaxDate picker from Ajax examples. This works fine but it is not conforms in style with other elements like text fields, check boxes etc. I hope that I explained a little bit. Stavros > On 13 Oct 2017, at 16:30, Stavros Panidis wrote: > > Dear, > > I try to implement Bootstrap date time picker style in a WOComponent. > Javascript and css works fine except the case that in this component the is > also a AjaxUpdateContainer (which I certainly need for other controls). > > I tried also with AjaxDatePicker which works fine but I don’t know if it is > possible to apply bootstrap styling on this. > > Any suggestions? > > Stavros ___ 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: Date - time picker
I am sure that everyone here understands this and I am just ignorant, but what do you mean, “Bootstrap date time picker”? Ted > On Oct 13, 2017, at 9:30 AM, Stavros Panidis > wrote: > > Dear, > > I try to implement Bootstrap date time picker style in a WOComponent. > Javascript and css works fine except the case that in this component the is > also a AjaxUpdateContainer (which I certainly need for other controls). > > I tried also with AjaxDatePicker which works fine but I don’t know if it is > possible to apply bootstrap styling on this. > > Any suggestions? > > Stavros > ___ > 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
Date - time picker
Dear, I try to implement Bootstrap date time picker style in a WOComponent. Javascript and css works fine except the case that in this component the is also a AjaxUpdateContainer (which I certainly need for other controls). I tried also with AjaxDatePicker which works fine but I don’t know if it is possible to apply bootstrap styling on this. Any suggestions? Stavros ___ 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: D2W and date/time picker
Hi Theodore, You could have a look at ERDEditDatePopup and its superclass ERDEditDatePopupCommon. The date is set on the object during takeValuesFromRequest. Fabian Am 13.01.2013 um 13:51 schrieb Theodore Petrosky: > That would be the easiest solution. force them to type in the whole thing. > > But, I want to learn more D2W at the same time so, I created my own component > by copying ERMDDatePicker and added a popup wrapped in an AJAX observe field. > > My idea is that if you click on the textfield for the date part, the user > gets the normal date picker. Then they choose the time from the popup. As > these are normal business hour meetings, I can limit the list to half hours > from 9 am to 6 pm. > > I am stuck. At what point does the component know about the bound attribute? > Not in the constructor :( What I thought I would do is update the time > portion of the dateTime when the action if fired in the ObserverField. > > If this works, this component would only be usable in this project as it > would refer to entities and attributes that only live here. > > So knowing that there is a two part goal: > > 1. create the interface that limits the user's ability to put in bad data and > 2. Learn more about D2W. > > will this work? where in the life of the component can I get a handle on the > 'object' that is being displayed (objectPropertyValue) so I can munge > together my date and time? > > Ted > > > > > --- On Sun, 1/13/13, Paul Hoadley wrote: > >> From: Paul Hoadley >> Subject: Re: D2W and date/time picker >> To: "Theodore Petrosky" >> Cc: "WebObjects Development" >> Date: Sunday, January 13, 2013, 3:36 AM >> On >> 12/01/2013, at 2:25 AM, Theodore Petrosky >> wrote: >> How are youse guys creating a date picker that >> allows the user to then type in the time? I was thinking of >> two textfields. one for the date picker and a second where >> the user types in the time. >> >> If I put two copies of the date time attribute with >> displayPropertyKeys, how do I target them so the first is >> for the date and the second is for the time. Or do I need to >> create a new component? Does one exist? >> >> I've never found a satisfactory solution to >> this. I tend to just use a text field and require the >> whole timestamp to be typed out in full: '2013-01-13 >> 19:05'. >> >> >> -- >> Paul Hoadley >> http://logicsquad.net/ >> >> >> >> >> >> > > ___ > 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/lists.fabian%40e-lumo.com > > This email sent to lists.fab...@e-lumo.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: D2W and date/time picker
That would be the easiest solution. force them to type in the whole thing. But, I want to learn more D2W at the same time so, I created my own component by copying ERMDDatePicker and added a popup wrapped in an AJAX observe field. My idea is that if you click on the textfield for the date part, the user gets the normal date picker. Then they choose the time from the popup. As these are normal business hour meetings, I can limit the list to half hours from 9 am to 6 pm. I am stuck. At what point does the component know about the bound attribute? Not in the constructor :( What I thought I would do is update the time portion of the dateTime when the action if fired in the ObserverField. If this works, this component would only be usable in this project as it would refer to entities and attributes that only live here. So knowing that there is a two part goal: 1. create the interface that limits the user's ability to put in bad data and 2. Learn more about D2W. will this work? where in the life of the component can I get a handle on the 'object' that is being displayed (objectPropertyValue) so I can munge together my date and time? Ted --- On Sun, 1/13/13, Paul Hoadley wrote: > From: Paul Hoadley > Subject: Re: D2W and date/time picker > To: "Theodore Petrosky" > Cc: "WebObjects Development" > Date: Sunday, January 13, 2013, 3:36 AM > On > 12/01/2013, at 2:25 AM, Theodore Petrosky > wrote: > How are youse guys creating a date picker that > allows the user to then type in the time? I was thinking of > two textfields. one for the date picker and a second where > the user types in the time. > > If I put two copies of the date time attribute with > displayPropertyKeys, how do I target them so the first is > for the date and the second is for the time. Or do I need to > create a new component? Does one exist? > > I've never found a satisfactory solution to > this. I tend to just use a text field and require the > whole timestamp to be typed out in full: '2013-01-13 > 19:05'. > > > -- > Paul Hoadley > http://logicsquad.net/ > > > > > > ___ 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: D2W and date/time picker
On 12/01/2013, at 2:25 AM, Theodore Petrosky wrote: > How are youse guys creating a date picker that allows the user to then type > in the time? I was thinking of two textfields. one for the date picker and a > second where the user types in the time. > > If I put two copies of the date time attribute with displayPropertyKeys, how > do I target them so the first is for the date and the second is for the time. > Or do I need to create a new component? Does one exist? I've never found a satisfactory solution to this. I tend to just use a text field and require the whole timestamp to be typed out in full: '2013-01-13 19:05'. -- Paul Hoadley http://logicsquad.net/ ___ 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
D2W and date/time picker
How are youse guys creating a date picker that allows the user to then type in the time? I was thinking of two textfields. one for the date picker and a second where the user types in the time. If I put two copies of the date time attribute with displayPropertyKeys, how do I target them so the first is for the date and the second is for the time. Or do I need to create a new component? Does one exist? Ted ___ 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