Hi,
Workaround for solving this:
I have changed
cmp.selectAll()
to
window.setTimeout(function() {cmp.selectAll()}, 1);
Clearly, the problem has to do with timing problems.
dperez wrote:
>
> Hi
>
> Here is some code that shows how QxFieldText.selectAll() doesn't work
> under Firefox 1.5 and works under IE6.
> Surely, it will be due to the order of events, because in other
> situations it works.
> Has anybody else observed this behaviour? Is there any known workaround?
>
>
> window.application.main = function() {
> function pon(e, func) {
> e.add(func());
> }
>
> var but = new QxButton('Click me');
> with (but) {
> setTop(100);
> setLeft(100);
> addEventListener("execute", function() {
> var vnt = new QxWindow('Demo of QxFieldText.selectAll()');
> var cmp;
> with (vnt) {
> setShowClose(true);
> setModal(true);
> }
> pon(vnt, function() {
> var e = new QxVerticalBoxLayout;
> with (e) {
> setWidth('100%');
> setHeight('100%');
> setMarginTop(4);
> setMarginBottom(4);
> }
> pon(e, function() {
> var e = new QxTextArea;
> cmp = e;
> with (e) {
> setValue('Some text');
> setWidth('100%');
> setMinHeight(50);
> setHeight('5*');
> setMarginBottom(10);
> }
> return e;
> });
> pon(e, function() {
> var e = new QxBoxLayout();
> with (e) {
> setHorizontalChildrenAlign('center');
> setSpacing(5);
> setWidth('100%');
> setHeight('auto');
> setMarginBottom(20);
> }
> pon(e, function() {
> var e = new QxButton('OK');
> with (e) {
> addEventListener("execute", function() {
> vnt.close();
> });
> }
> return e;
> });
> return e;
> });
> return e;
> });
> window.application.add(vnt);
> vnt.open();
> vnt.addEventListener('appear', function() {
> vnt.centerToBrowser();
> cmp.focus();
> cmp.selectAll();
> }, vnt);
> });
> }
> this.add(but)
> }
>
> David Perez schrieb:
>> Hi,
>>
>> I think I have found a bug.
>> QxTextField.selectAll() selects all the text inside the field under IE6,
>> but does nothing under Firefox 1.5.
>>
>> I will try to fix it.
>> Has anyone else observed this bug?
>>
>> Cheers,
>> David
>>
>
>
>
>
>
> ______________________________________________
> LLama Gratis a cualquier PC del Mundo.
> Llamadas a fijos y móviles desde 1 céntimo por minuto.
> http://es.voice.yahoo.com
>
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
--
View this message in context:
http://www.nabble.com/QxTextField.selectAll%28%29-bug-tf2072630.html#a5827735
Sent from the qooxdoo-devel forum at Nabble.com.
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel