문제

Does it require development of two almost separate front-ends for the app, one using Ext JS and the other one with no JS at all?

도움이 되었습니까?

해결책

Well, pretty much. If you really want a NO-JS version of your site, you will need to stick to very basic HTML, and a trip back to the server and a full reload with any click. If you want your real site to be ajaxy, then this would require two different front ends to the site.

May I ask, why are you worried about people with no JavaScript? There are very few people out there with no JavaScript, even mobile phones have decent JavaScript performance.

다른 팁

Your application should be built to allow users without js to access the same content. All form posts and action on the app must have server side handling. This is to allow for non-js browsers as well for security reasons as the js can be edited on the fly by hackers.

Once you have this basic functionality you can start adding your css to make it look good and add the js to add additional functionality with postbacks done by ajax. You should use feature detection instead of browser detection with your css and javascript as browsers are updated with new support all the time.

Therefore you only need one frontend which includes both solutions.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top