Thanks Chris, This is really clear to me now :o)
Jacques ----- Original Message ----- From: "Chris Howe" <[EMAIL PROTECTED]> To: <[email protected]>; "Jacques Le Roux" <[EMAIL PROTECTED]> Sent: Thursday, December 14, 2006 3:56 PM Subject: Re: json + prototype + ajax? > Also in regards to the comments in OFBIZ-510 : > > The ability to degrade doesn't solve itself simply > because you're using Dojo or any other toolkit that is > designed to degrade. You still need to have the > functionality on your page. > > Degrading essentially means that the javascript simply > increases functionality, the javascript isn't > replacing functionality. Dojo does this because the > javascript actions are identified either by css > classes or by additional attributes in the tag that > mean nothing to the browser that hasn't received any > instruction from javascript. > > There are a lot of places that utilize javascript in > OFBiz. For instance the calendar popups. The JS > degrades here because you can still enter date/time > information without the popup. On the JIRA page, the > functionality of adding a comment doesn't degrade and > I'm sure the people at Atlassian would like to know > that. This appears to be based on their custom JS > additions, not on the parts of OFBiz they are using. > > In a checkout process you would degrade the JS by > having form submits that actually go to the next step, > but have the JS disable that submit button. By doing > that if there is JS, the form doesn't get submitted in > the traditional manner but instead the JS handles the > next sequence. If JS is disabled, then there is > nothing there to disable the submit button and the > form information gets sent for processing like it > always has. > > This is a great place for an AJAX type solution > because the checkout logic is based only on updating > the ShoppingCart object and not on entering > information in the database. > > > > --- Jacques Le Roux <[EMAIL PROTECTED]> > wrote: > > > I don't know much about Ajax and Dojo and such. But > > IMHO this is a very important point. > > Chris (or anybody aware ;o) do you know how exactly > > this is achieved ? > > > > Thanks > > > > Jacques > > > > From: "Chris Howe" <[EMAIL PROTECTED]> > > > I'm not sure about the other toolkits, but when I > > > looked around for some implementation ideas, I > > like > > > the fact that one of Dojo's precepts is to degrade > > > when not JS is turned off. This may be true of > > other > > > toolkits as well, but Dojo states it specifically. > >
