Home > ns error > ns error failure setselectionrange

Ns Error Failure Setselectionrange

and setSelectionRange If this is your first visit, you may have to register before you can post. To start viewing messages, select the forum that you want to visit from the selection below. Results 1 to 1 of 1 Thread: TextField and setSelectionRange Thread Tools Show Printable Version Search Thread Advanced Search Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode 19 Dec 2007,3:43 AM #1 daviscabral View Profile View Forum Posts Private Message Visit Homepage Ext User Join Date May 2007 Location Cascavel / PR / Brazil Posts 45 Vote Rating 0 0 TextField and setSelectionRange UPDATE: I solved this problem using this plugin to Ext 2.0: http://extjs.com/forum/showthread.php?t=21040 Hi! I have an extension at TextField, named MaskFormattedTextField, and one method give the follow error at firefox: Code: uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMNSHTMLInputElement.setSelectionRange]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: http://localhost:50291/Servus.Web/Content/javascripts/componentes/MaskFormattedTextField.js?rev=13 :: anonymous :: line 152" data: no] Line 0 The method: Code: setSelection : function(leftPos, rightPos) { var left = parseInt(leftPos); var right = parseInt(rightPos) || left + 1; if (this.el.dom.createTextRange) { var range = this.el.dom.createTextRange(); range.moveStart("character", left); range.moveEnd("character", right - this.el.dom.value.length); range.select(); } else { this.el.dom.setSelectionRange(left, left); // the problem is here } } With this problem, my application crashes and the loading mask appears forever like the attachment shows. Attached Images setselectionrange.jpg (120.3 KB, 43 views) Last edited by daviscabral; 19 Dec 2007 at 5:03 AM. Reason: SOLVED Reply With Quote Quick Navigation Ext 2.x: Help & Discussion Top Site Areas Settings Private Messages Subscriptions Who's Online Search Forums Forums Home Forums Sencha Support Forums Sencha Ext JS Feature Requests Sencha GXT Feature Requests Sencha Touch Feature Requests Sencha Ext JS Q&A Sencha GXT Q&A Sencha Touch Q&A Sencha General Forums Community Discuss

or register and contact me. These are primarily notesIt won't be complete in any sense.It exists to contain fragments of useful information. Contents 1 0x80004005 (NS ERROR FAILURE) 1.1 nsIXMLHttpRequest.* 1.2 Unsorted 2 0x80040111 (NS ERROR NOT AVAILABLE) 2.1 Reason 2.2 Fix 2.3 See also 0x80004005 (NS ERROR FAILURE) ...is a very general-purpose mozilla error When scripting triggers it, then the error usually points to a specific problem. To figure out what failed, look for the origination function. For example, in: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMHTMLSelectElement.selectedIndex]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame:: ...it's nsIDOMHTMLSelectElement.selectedIndex, a good thing to google for. This particular error was caused https://www.sencha.com/forum/showthread.php?21222-TextField-and-setSelectionRange by trying to set an out-of-bounds selectedIndex on a

 

© Copyright 2019|winbytes.org.