23 Feb 2007, 3:42 AM
I just discovered Ext (from the JQuery side of things) and I'm amazed at the good overall quality of code and the amount of resources available. Congratulations to the developers!
23 Feb 2007, 4:33 AM
They are not required. They are only there to hide the content while the page is loading.
Another option is to not include the layout related CSS if JS is disabled. If it is enable, document.write the <link... in the header.
23 Feb 2007, 6:22 AM
23 Feb 2007, 10:20 AM
As another example, consider a grid that displays customer data. Using the framework, the data (only) is retrieved from the server and the layout is built clientside - all the HTML for rows, headers, footers, paging, etc. Without JS, you'd have to build that completely serverside. If you were using ASP.Net and databinding to a DataTable, it's a completely different implementation. Even if you were a magician with CSS, you'd have an almost impossible task to achieve the same rendered appearance. given the relative lack of control you have over how .Net renders a grid. Additionally any custom rendering you wanted to do in the grid, say for example making negative numbers red instead of green, would have to be done in 2 codebases. Without JS you'd end up losing a portion of the .Net grid functionality and every action would require a page submit and recreation/retransmission of the grid on the server. You get none of the benefit of Ajax. You're increasing the number of server roundtrips, increasing the amount of data transmitted because you're rebuilding entire pages, and putting more of the processing load on the server (where it's at a premium).
As a point of illustration to see what you'd be attempting to do by hand without JS, look at the HTML for one of the sample layouts. Then, using something like WebDeveloper or Firebug, look at the generated HTML after the page is built by Ext. Ask youself if you'd like to undertake building and maintaining that by hand.
Boy, that was a long-winded response :)
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.