I have enormous nomenclature of items (package types). On my form there is a list of goods, each good has a select, which determines package type. For each good's select, entire nomenclature is filled as a list of <option>'s. This causes network traffic issues, when transfering form to browser.
Is there a way to send nomenclature only once to the browser and after that to populate selects? Each time a new good is added, entire nomenclature is sent to the browser in XML response. Is there a way to avoid repeating sending of the same nomenclature? |
Administrator
|
Nikolay,
On Feb 16, 2008, at 8:46 AM, Nikolay Chillev wrote: > I have enormous nomenclature of items (package types). On my form > there is a > list of goods, each good has a select, which determines package > type. For > each good's select, entire nomenclature is filled as a list of > <option>'s. > This causes network traffic issues, when transfering form to browser. > Is there a way to send nomenclature only once to the browser and > after that > to populate selects? > > Each time a new good is added, entire nomenclature is sent to the > browser in > XML response. > Is there a way to avoid repeating sending of the same nomenclature? is to send HTML to the client that can initially displayed as-is without requiring any JavaScript processing on the client. But we could optimize this in Ajax responses. And if this optimization is done, then you could leverage it as well to speed up the initial page load, as you could sent the page with empty selects, and on xforms- ready run an xxforms:script action, which triggers an event, which populates the lists. Do you have a situation right now where you are sending an updated itemset during an Ajax request, i.e. after the page is loaded? If you do, I am wondering how fast this is. Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.com/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Alessandro Vernet a écrit :
> Nikolay, > > On Feb 16, 2008, at 8:46 AM, Nikolay Chillev wrote: >> I have enormous nomenclature of items (package types). On my form >> there is a >> list of goods, each good has a select, which determines package >> type. For >> each good's select, entire nomenclature is filled as a list of >> <option>'s. >> This causes network traffic issues, when transfering form to browser. >> Is there a way to send nomenclature only once to the browser and >> after that >> to populate selects? >> >> Each time a new good is added, entire nomenclature is sent to the >> browser in >> XML response. >> Is there a way to avoid repeating sending of the same nomenclature? > > We can't really optimize this when the page first loads, as the idea > is to send HTML to the client that can initially displayed as-is > without requiring any JavaScript processing on the client. But we > could optimize this in Ajax responses. And if this optimization is > done, then you could leverage it as well to speed up the initial page > load, as you could sent the page with empty selects, and on > xforms-ready run an xxforms:script action, which triggers an event, > which populates the lists. > > Do you have a situation right now where you are sending an updated > itemset during an Ajax request, i.e. after the page is loaded? If you > do, I am wondering how fast this is. > I jumped into this thread because I have tried this "feature". On xforms-ready I fire some "fast" submission and run an xxforms:script action for the "slower" one. It seems to be faster but this has to be more tested. The most important benefit is on the "feeling". The page is loaded in several times so the screen is no longer blank... Marc -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Free forum by Nabble | Edit this page |