On 02/08/2012 01:53 PM, Tino Butz wrote:
NS_ERROR_FAILURE
I guess you are using Firefox?
Do you set a focus on an input element? This error will occur, when
you set a focus on a hidden input field.
Tino
Am 08.02.2012 um 12:12 schrieb alexandr:
Hi, Qooxdoo Team!
I have strange exception, when I try to set selection in tabView to first
page. I can't to get exception in playground, but in my application it
occurs... Exception:
[Exception... "Component returned failure code: 0x80004005
(NS_ERROR_FAILURE) [nsIDOMHTMLInputElement.*setSelectionRange*]"
nsresult:
"0x80004005 (NS_ERROR_FAILURE)" location: "JS frame ::
http://localhost:8080/app_qx/script/com.colvir.js :: <TOP_LEVEL> :: line
6599" data: no]
The code in which exception occurs:
this.__tabView.setSelection([this.__tabPage1]);
Wait - you know that the exception occurs here. But when you wrap it
into a try-catch you're not catching the exception?! How can that be?!
Like Tino wrote, it is likely that the error involves a text field. The
only place in the framework where we use setSelectionRange() is in
connection with text fields. Is your __tabPage1 including a text field?
Maybe it's a timing issue, and can be resolved using setTimeout(). If
you're setting a text selection or focus on the tab pane, try to do it
in a timeout.
T.
"this" is instance of qx.ui.window.Window.
1. Maybe anyone knows reasons of this exception?
2. How can I catch this exception in code, for not to show it to
user? I try
to use try-catch block, but it didn't caught the exception...
Will be glad for any help...
-----
Best regards,
Alexandr
--
View this message in context:
http://qooxdoo.678.n2.nabble.com/Component-returned-failure-code-0x80004005-NS-ERROR-FAILURE-tp7265346p7265346.html
Sent from the qooxdoo mailing list archive at Nabble.com
<http://Nabble.com>.
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel