Normally you don't need to call flushGlobalQueues(). This makes stuff 
generally perform less good.

You can also think about some optimization using a pooling feature for 
the list items. You can also directly use List instead of a custom 
VerticalBoxLayout.

Sebastian


Jonathan Viney schrieb:
> I just did a quick performance test and it seems like it may be alright 
> to simply create the widgets on demand. I have the luxury of targetting 
> whatever platform I choose, which in this case will likely be FF2, so 
> maybe that will help in bringing up the JS performance.
>  
> It took 500ms to create 100 widgets, add them to a VerticalBoxLayout, 
> and call flushGlobalQueues. The widgets aren't complete, but even so, 
> with a bit of caching and optimisation it might just be alright.
>  
> -Jonathan.
>  
> On 11/18/06, *Sebastian Werner* <[EMAIL PROTECTED] 
> <mailto:[EMAIL PROTECTED]>> wrote:
> 
>     Jonathan Viney schrieb:
>      > Ok, but would that mean events could not be obtained from the popup
>      > content? Mouseover, mouseout, click, keypress etc...
> 
>     You can attach them to the popup or the html embed itself, but then you
>     have to differ between the original targets. Maybe not so sexy.
> 
>     Sebastian
> 
> 
>      >
>      > Thanks,
>      > -Jonathan.
>      >
>      >
>      > On 11/18/06, *Sebastian Werner* <[EMAIL PROTECTED]
>     <mailto:[EMAIL PROTECTED]>
>      > <mailto: [EMAIL PROTECTED]
>     <mailto:[EMAIL PROTECTED]>>> wrote:
>      >
>      >     Hi!
>      >
>      >     I would suggest to combine TextField, Popup and HtmlEmbed.
>     The list
>      >     content I would provide using StringBuilder and applying it
>     using
>      >     setHtml (innerHTML) on the HtmlEmbed element.
>      >
>      >     To react on inputs simply use the "input" event on the text
>     field.
>      >
>      >     I think there is no faster way to dynamically fill the popup
>     box with
>      >     50-100 items than the combination of HtmlEmbed and
>     StringBuilder.
>      >
>      >     Hope this helps.
>      >
>      >     Sebastian
>      >
>      >
>      >     Jonathan Viney schrieb:
>      >      > Hi,
>      >      >
>      >      > As part of evaluating qooxdoo for new application, I need to
>      >     devise some
>      >      > kind of autocompleter. The current one has the following
>     features
>      >     (see
>      >      > attached picture):
>      >      >
>      >      >  - Delayed timer on text input before querying server for
>     data (saves
>      >      > unnecessary requests)
>      >      >  - Server returns HTML to put in dropdown box
>      >      >  - Selecting item stores id into form variable, not the text
>      >     content.
>      >      >  - Expansion/contraction of content below name
>      >      >  - Click events on content inside autocompleter
>      >      >
>      >      >  From my brief time with qooxdoo, it looks like I'd implement
>      >     this with
>      >      > qx.ui.form.TextField and qx.ui.popup.Popup.
>      >      >
>      >      > My main concern is the creation time for the popup
>     content. Is it
>      >     going
>      >      > to be difficult to maintain the current responsiveness? I
>     would
>      >     want to
>      >      > have between 50 and 100 entries appear without much delay.
>     It may be
>      >      > possible to only create the widgets as they become
>     visible, and also
>      >      > reuse existing widgets by repopulating the data, but that
>     could be a
>      >      > challenge.
>      >      >
>      >      > The clients are all Firefox.
>      >      >
>      >      > Any pointers appreciated,
>      >      > -Jonathan.
>      >      >
>      >      >
>      >    
>     ------------------------------------------------------------------------
>      >      >
>      >      >
>      >      >
>      >    
>     ------------------------------------------------------------------------
> 
>      >
>      >      >
>      >      >
>      >    
>     -------------------------------------------------------------------------
>      >      > Take Surveys. Earn Cash. Influence the Future of IT
>      >      > Join SourceForge.net's Techsay panel and you'll get the
>     chance to
>      >     share your
>      >      > opinions on IT & business topics through brief surveys -
>     and earn
>      >     cash
>      >      >
>      >    
>     http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>     
> <http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV>
>      >     <
>     http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>     
> <http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV>>
>      >      >
>      >      >
>      >      >
>      >    
>     ------------------------------------------------------------------------
> 
>      >      >
>      >      > _______________________________________________
>      >      > qooxdoo-devel mailing list
>      >      > [email protected]
>     <mailto:[email protected]>
>      >     <mailto: [email protected]
>     <mailto:[email protected]>>
>      >      > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>     <https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel>
>      >
>      >
>      >    
>     -------------------------------------------------------------------------
> 
>      >
>      >     Take Surveys. Earn Cash. Influence the Future of IT
>      >     Join SourceForge.net's Techsay panel and you'll get the
>     chance to
>      >     share your
>      >     opinions on IT & business topics through brief surveys - and
>     earn cash
>      >    
>     http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>     
> <http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV>
>      >     <
>     http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>     
> <http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV>>
>      >     _______________________________________________
>      >     qooxdoo-devel mailing list
>      >     [email protected]
>     <mailto:[email protected]>
>      >     <mailto:[email protected]
>     <mailto:[email protected]>>
>      >     https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>      >
>      >
>      >
>      >
>     ------------------------------------------------------------------------
>      >
>      >
>     -------------------------------------------------------------------------
> 
>      > Take Surveys. Earn Cash. Influence the Future of IT
>      > Join SourceForge.net's Techsay panel and you'll get the chance to
>     share your
>      > opinions on IT & business topics through brief surveys - and earn
>     cash
>      >
>     http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>     
> <http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV>
>      >
>      >
>      >
>     ------------------------------------------------------------------------
> 
>      >
>      > _______________________________________________
>      > qooxdoo-devel mailing list
>      > [email protected]
>     <mailto:[email protected]>
>      > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
> 
> 
>     -------------------------------------------------------------------------
>     Take Surveys. Earn Cash. Influence the Future of IT
>     Join SourceForge.net 's Techsay panel and you'll get the chance to
>     share your
>     opinions on IT & business topics through brief surveys - and earn cash
>     http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>     
> <http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV>
>     _______________________________________________
>     qooxdoo-devel mailing list
>     [email protected]
>     <mailto:[email protected]>
>     https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>     <https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel>
> 
> 
> 
> ------------------------------------------------------------------------
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to