From: webERP D. <web...@li...> - 2013-05-30 02:40:01
|
Hi Exson, Well, I only have little experience with jQuery - but to my mind it lends itself well to writing progressive apps that have a nice fall back to php. The jQuery script can sit at the beginning of the script almost independent of the rest of the code and we just need to worry about naming the various html tags and perhaps some more css to make it sing. I probably have quite a bit of learning to do Exson, so happy to take on board any pointers on why you say that progressive php => jQuery is not compatible with each other? The work I have done allows the script to run fine without javascript and with fall back error checks back on the server - but with javascript available takes advantage of the jQuery traps. Neither has the work I've done been very labour intensive - although debugging jQuery really does need firebug. It seems pretty straightforward to me - I will write up a script with what I am proposing.. so we can throw around some ideas on how we can use it. (AJAX with jQuery is a breeze too - with my cart I do searches via AJAX - but the fall back remains to go back to the server also) I am NOT keen to reinvent webERP with any other coding style - this would be for some other project/fork - IMHO the reason why webERP is so special IS the coding structure - but I realise I am a lone voice on that one!! I understand that what we have is contrary to the accepted wisdom separating the logic and display... but this introduces abstraction and bugs - with webERP it is all laid bare with the context provided by the display code illustrating what the code/logic is doing. Even a cursor examination of the code of any of the plethora of other projects that use "model view controller" structure (you propose) illustrates quite clearly that the code of webERP is so much easier to understand. It would be heresy for a computer scientist to admit it .... but abundantly obvious I think? To alter the interface enough to work with phones would need quite an extensive re-write of many scripts. However, a lot of it currently works just fine on tablets - but phone use is not the best for older eyes :-( Phil On 30 May 2013 at 13:28 webERP Developers <web...@li...> wrote: > *Hi, Phil:* > > I think it'll be great to let the application run without > javascript. But it'll a big challenge to mix javascript php together. Ajax > is the mark of web2.0, if we introduce ajax, the style of coding will be big > difference. I believe you've already experienced that. > A feasible way maybe we set a configuration choice for users and > code same feature with two different code style. The coding for php only is > very concise, but the user experience will be poor. It's time consuming to > code with javascript+php, but it'll improve user experience and improve the > performance. > As html5 become popular, Javascripts will be a used widely. And with > more mobile device introduced in office, lots of apps will be available in > MID. I believe it's time to change the code style to separate the view > (user's interface) with business logic. Then the application will be easily > to be adjusted to mobile device, such as compile it with PhoneGap. > > Just my2cent about the coding style. > > Thanks and best regards! > > Exson > > > > > > -- > View this message in context: > http://weberp-accounting.1478800.n4.nabble.com/Install-interface-internationalize-tp4656407p4656432.html > Sent from the web-ERP-developers mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET > Get 100% visibility into your production application - at no cost. > Code-level diagnostics for performance bottlenecks with <2% overhead > Download for free and get started troubleshooting in minutes. > http://p.sf.net/sfu/appdyn_d2d_ap1 > _______________________________________________ > Web-erp-developers mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-erp-developers Phil Ph: +64 (0)275 567890 Skype: daintree http://www.logicworks.co.nz |