I am using the latest nightly build of oxf. Context: ::) I have a simple textarea: <xforms:textarea id="memoContent" ref="instance('main-instance')/content" appearance="xxforms:autosize" incremental="false"> ::) I paste some text (abt. 200 lines) into my textarea Observations: ::) Under Firefox 2.0, it takes long times until I can manipulate my text in the textarea. I even get a message telling that a script is busy, and I am asked if I want to cancel it... ::) Under IE5, it is very fast Where does this behavior come from and what can (must?) be done to get equal performance under both browsers ? Thanks for your answers and kind regards -Martin -- Martin Mohnhaupt Nice Data Systems Rue de Lyon 42 - CH 1203 GENEVE Tél: +41 (0) 22 344 11 39 Mob: +41 (0) 78 636 00 75 Email: [hidden email] Web: http://www.nicedata.com Skype: martin.mohnhaupt Action Carbone: http://www.actioncarbone.org -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Tested more:
When I use <xforms:textarea id="memoContent" ref="instance('main-instance')/content" appearance="full" incremental="false"> It goes super-fast. My conclusion is that autosize computation script takes long times... Am I right ? -Martin Martin Mohnhaupt wrote:
-- Martin Mohnhaupt Nice Data Systems Rue de Lyon 42 - CH 1203 GENEVE Tél: +41 (0) 22 344 11 39 Mob: +41 (0) 78 636 00 75 Email: [hidden email] Web: http://www.nicedata.com Skype: martin.mohnhaupt Action Carbone: http://www.actioncarbone.org -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
In reply to this post by Martin Mohnhaupt
Martin,
What version of Orbeon Forms are you using? We recommend 3.5 M1 or a nightly build over 3.0.1. -Erik Martin Mohnhaupt wrote: > Hello everyone ! > > I am using the latest nightly build of oxf. > > Context: > > ::) I have a simple textarea: <xforms:textarea id="memoContent" > ref="instance('main-instance')/content" appearance="xxforms:autosize" > incremental="false"> > ::) I paste some text (abt. 200 lines) into my textarea > > Observations: > > ::) Under Firefox 2.0, it takes long times until I can manipulate my > text in the textarea. > I even get a message telling that a script is busy, and I am asked > if I want to cancel it... > ::) Under IE5, it is very fast > > Where does this behavior come from and what can (must?) be done to get > equal performance under both browsers ? > > Thanks for your answers and kind regards > > -Martin > > > -- > Martin Mohnhaupt > Nice Data Systems > Rue de Lyon 42 - CH 1203 GENEVE > Tél: +41 (0) 22 344 11 39 > Mob: +41 (0) 78 636 00 75 > Email: [hidden email] > Web: http://www.nicedata.com > Skype: martin.mohnhaupt > Action Carbone: http://www.actioncarbone.org > > > ------------------------------------------------------------------------ > > > -- > 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 > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws -- Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
In reply to this post by Martin Mohnhaupt
autosizeTextarea: function(textarea) { var scrollHeight = textarea.scrollHeight; var clientHeight = textarea.clientHeight; var rowHeight = clientHeight / textarea.rows; var linesAdded = 0; if (scrollHeight > clientHeight) { // Grow while (scrollHeight > clientHeight) { textarea.rows = textarea.rows + 1; clientHeight = textarea.clientHeight; linesAdded++; } } else if (scrollHeight < clientHeight) { // Shrink while (textarea.rows > XFORMS_WIDE_TEXTAREA_MIN_ROWS && scrollHeight < clientHeight - rowHeight) { textarea.rows = textarea.rows - 1; clientHeight = textarea.clientHeight; linesAdded--; } } }, There are probably some improvements that can be made for Firefox here. Adrian Martin Mohnhaupt wrote: Tested more: -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
Also, we haven't figured out a way (an easy way at least) of making the
box shrink on Firefox. -Erik Adrian Baker wrote: > Yes the autosize is a bit buggy on Firefox. The function in question is: > > autosizeTextarea: *function*(textarea) { > *var* scrollHeight = textarea.scrollHeight; > *var* clientHeight = textarea.clientHeight; > *var* rowHeight = clientHeight / textarea.rows; > *var* linesAdded = 0; > > *if* (scrollHeight > clientHeight) { > /// Grow > / *while* (scrollHeight > clientHeight) { > textarea.rows = textarea.rows + 1; > clientHeight = textarea.clientHeight; > linesAdded++; > > } > } *else* *if* (scrollHeight < clientHeight) { > /// Shrink > / *while* (textarea.rows > XFORMS_WIDE_TEXTAREA_MIN_ROWS && scrollHeight < clientHeight - rowHeight) { > textarea.rows = textarea.rows - 1; > clientHeight = textarea.clientHeight; > linesAdded--; > } > } > }, > > There are probably some improvements that can be made for Firefox here. > > Adrian > > > Martin Mohnhaupt wrote: >> Tested more: >> >> When I use <xforms:textarea id="memoContent" >> ref="instance('main-instance')/content" appearance="full" >> incremental="false"> >> >> It goes super-fast. My conclusion is that autosize computation script >> takes long times... >> >> Am I right ? >> >> -Martin >> >> Martin Mohnhaupt wrote: >>> Hello everyone ! >>> >>> I am using the latest nightly build of oxf. >>> >>> Context: >>> >>> ::) I have a simple textarea: <xforms:textarea id="memoContent" >>> ref="instance('main-instance')/content" appearance="xxforms:autosize" >>> incremental="false"> >>> ::) I paste some text (abt. 200 lines) into my textarea >>> >>> Observations: >>> >>> ::) Under Firefox 2.0, it takes long times until I can manipulate my >>> text in the textarea. >>> I even get a message telling that a script is busy, and I am >>> asked if I want to cancel it... >>> ::) Under IE5, it is very fast >>> >>> Where does this behavior come from and what can (must?) be done to >>> get equal performance under both browsers ? >>> >>> Thanks for your answers and kind regards >>> >>> -Martin >>> >>> >>> -- >>> Martin Mohnhaupt >>> Nice Data Systems >>> Rue de Lyon 42 - CH 1203 GENEVE >>> Tél: +41 (0) 22 344 11 39 >>> Mob: +41 (0) 78 636 00 75 >>> Email: [hidden email] >>> Web: http://www.nicedata.com >>> Skype: martin.mohnhaupt >>> Action Carbone: http://www.actioncarbone.org >>> ------------------------------------------------------------------------ >>> >>> >>> -- >>> 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 >>> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws >>> >> >> -- >> Martin Mohnhaupt >> Nice Data Systems >> Rue de Lyon 42 - CH 1203 GENEVE >> Tél: +41 (0) 22 344 11 39 >> Mob: +41 (0) 78 636 00 75 >> Email: [hidden email] >> Web: http://www.nicedata.com >> Skype: martin.mohnhaupt >> Action Carbone: http://www.actioncarbone.org >> ------------------------------------------------------------------------ >> >> >> -- >> 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 >> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws >> > > ------------------------------------------------------------------------ > > > -- > 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 > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws -- Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
In reply to this post by Martin Mohnhaupt
Martin,
That's quite possible. The alternative is to fix the autosize appearance in IE 5.x, or to just not use this feature ;-) Note that we don't really support IE 5.x, so it's in fact pretty good that some things are working! -Erik Martin Mohnhaupt wrote: > Tested more: > > When I use <xforms:textarea id="memoContent" > ref="instance('main-instance')/content" appearance="full" > incremental="false"> > > It goes super-fast. My conclusion is that autosize computation script > takes long times... > > Am I right ? > > -Martin > > Martin Mohnhaupt wrote: >> Hello everyone ! >> >> I am using the latest nightly build of oxf. >> >> Context: >> >> ::) I have a simple textarea: <xforms:textarea id="memoContent" >> ref="instance('main-instance')/content" appearance="xxforms:autosize" >> incremental="false"> >> ::) I paste some text (abt. 200 lines) into my textarea >> >> Observations: >> >> ::) Under Firefox 2.0, it takes long times until I can manipulate my >> text in the textarea. >> I even get a message telling that a script is busy, and I am >> asked if I want to cancel it... >> ::) Under IE5, it is very fast >> >> Where does this behavior come from and what can (must?) be done to get >> equal performance under both browsers ? >> >> Thanks for your answers and kind regards >> >> -Martin >> >> >> -- >> Martin Mohnhaupt >> Nice Data Systems >> Rue de Lyon 42 - CH 1203 GENEVE >> Tél: +41 (0) 22 344 11 39 >> Mob: +41 (0) 78 636 00 75 >> Email: [hidden email] >> Web: http://www.nicedata.com >> Skype: martin.mohnhaupt >> Action Carbone: http://www.actioncarbone.org >> ------------------------------------------------------------------------ >> >> >> -- >> 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 >> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws >> > > -- > Martin Mohnhaupt > Nice Data Systems > Rue de Lyon 42 - CH 1203 GENEVE > Tél: +41 (0) 22 344 11 39 > Mob: +41 (0) 78 636 00 75 > Email: [hidden email] > Web: http://www.nicedata.com > Skype: martin.mohnhaupt > Action Carbone: http://www.actioncarbone.org > > > ------------------------------------------------------------------------ > > > -- > 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 > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws -- Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
In reply to this post by Erik Bruchez
I develop using the latest nightly build 35M1... -Martin Erik Bruchez wrote: Martin, -- Martin Mohnhaupt Nice Data Systems Rue de Lyon 42 - CH 1203 GENEVE Tél: +41 (0) 22 344 11 39 Mob: +41 (0) 78 636 00 75 Email: [hidden email] Web: http://www.nicedata.com Skype: martin.mohnhaupt Action Carbone: http://www.actioncarbone.org -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
Martin,
Sorry, I missed that in your original email. The code that would be a target for optimization is in xforms.js. -Erik Martin Mohnhaupt wrote: > Erik, > > I develop using the latest nightly build 35M1... > > -Martin > > Erik Bruchez wrote: >> Martin, >> >> What version of Orbeon Forms are you using? We recommend 3.5 M1 or a >> nightly build over 3.0.1. >> >> -Erik >> >> Martin Mohnhaupt wrote: >>> Hello everyone ! >>> >>> I am using the latest nightly build of oxf. >>> >>> Context: >>> >>> ::) I have a simple textarea: <xforms:textarea id="memoContent" >>> ref="instance('main-instance')/content" appearance="xxforms:autosize" >>> incremental="false"> >>> ::) I paste some text (abt. 200 lines) into my textarea >>> >>> Observations: >>> >>> ::) Under Firefox 2.0, it takes long times until I can manipulate my >>> text in the textarea. >>> I even get a message telling that a script is busy, and I am >>> asked if I want to cancel it... >>> ::) Under IE5, it is very fast >>> >>> Where does this behavior come from and what can (must?) be done to >>> get equal performance under both browsers ? >>> >>> Thanks for your answers and kind regards >>> >>> -Martin >>> >>> >>> -- >>> Martin Mohnhaupt >>> Nice Data Systems >>> Rue de Lyon 42 - CH 1203 GENEVE >>> Tél: +41 (0) 22 344 11 39 >>> Mob: +41 (0) 78 636 00 75 >>> Email: [hidden email] >>> Web: http://www.nicedata.com >>> Skype: martin.mohnhaupt >>> Action Carbone: http://www.actioncarbone.org >>> >>> >>> ------------------------------------------------------------------------ >>> >>> >>> -- >>> 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 >>> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws >> >> >> ------------------------------------------------------------------------ >> >> >> -- >> 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 >> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws >> > > -- > Martin Mohnhaupt > Nice Data Systems > Rue de Lyon 42 - CH 1203 GENEVE > Tél: +41 (0) 22 344 11 39 > Mob: +41 (0) 78 636 00 75 > Email: [hidden email] > Web: http://www.nicedata.com > Skype: martin.mohnhaupt > Action Carbone: http://www.actioncarbone.org > > > ------------------------------------------------------------------------ > > > -- > 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 > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws -- Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Free forum by Nabble | Edit this page |