Jan
6
First of all: I'm truly impressed by Extjs since I discovered it some weeks ago... So a big "thank you" and credits for the develop team are appropriate.
So, here's the short version of my question:
1) I'd like to use Extjs for some big maintenance sites with a lot of screens. Say 100+ tables, with standard CRUD browse/update screens makes 200+ screens.
2) I'd like to use the standard submit form (if possible).
And the real question: Is there a way/can I design my pages to prevent the client from loading/(re)interpreting the complete extjs lib every time I open a new page?
And for completeliness; the long version:
Right now I'm using Struts, and I'd like to make use of the "old-school" form-submit for several reasons.
1) You can bookmark an url
2) You can easily implement role-based authorisation per url (-path)
3) My fellow developers understand this and it will be less pain in the maintenance sphere.
But submitting a form a la "old-school", and then redirecting to another page will reload and re-interpret all the javascript libs, which costs some time. On my laptop (AMD64 Athlon 3000+), a single (dynamic) form with 5 text fields takes more than 2 seconds before I can select a textfield. (Yes, firebug is disabled). Firefox with IE tab seems a little faster.
So, I'm wondering if this one of these options is the way to go:
1) A single page with a menu (and all javascript libs), and an IFrame in which the content is loaded every time with some specific javascript for that page.
A 'link to this page' link should create a specific url for that page, and the main page should be intelligent enough to display a specific page for a given (specific) url.
That should make sure the javascript libs are not loaded and interpreted for every page.
2) Same as 1), except for the IFrame. Instead, fetch the pages with a javascript function and replace the innerHTML property of a content div with the page source fetched.
The page source should include
I don't like JSON solution here. if so, I have to combine error message in somewhere of the JSON object. With above code, the server side is using usual Struts Best practice to do validation and execute.
#If you have any other info about this subject , Please add it free.# |