This is a migrated thread and some comments may be shown as answers.

[Solved] Find Replace inconsistent behavior

1 Answer 136 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Roberto Plascencia
Top achievements
Rank 1
Roberto Plascencia asked on 28 Aug 2009, 01:45 AM
Hello:

We have an application that uses the rad Editor in two different pages of the app, each page resides in a different server, the control works great for the most part (justification, spell check bold, italic, etc), however, when it comes to the Find button, we are observing different behaviors in the to pages, in both we see the iframe with the find and replace options, but while on one it works with no issues, on the other it does not work at all, after further debbuging on the error page, we see  that the find/replace frame is erroring out when loading, it appears that ScriptResource.axd is trying to set f with a value but f s null, here is the code that breaks (highlighted)

if($telerik.isIE){d=f.children
}for(var b=0,e=d.length;
b<e;
b++){var c=d[b];
if(c.nodeType==1&&c.tagName.toLowerCase()==g){Array.add(a,c)
}}return a
},getChildrenByClassName:function(f,d){var a=new Array();
var g=f.childNodes;
if($telerik.isIE){g=f.children
}
 ....

Needless to say, this worked perfectly on dev environment (currently in QA environment) I Believe this has to be a configuration issue, however after looking at the Web.Config we could not find any differences, then we proceed to verify that DLL version's and dates with no luck. would you mind looking at the console error output

Exception ``(null)'' thrown from function (null)() in <http://alb.staging.printable.com/PrintOne/ScriptResource.axd?d=y7lxHhxkkIjXnUJqkOG7XUv8NDtB8tDYQ0ry73tcqZopgW75RwFHupnT9kze884z0&t=6cba1637> line 1.
Exception ``TypeError: this.dateTimeFormat is undefined'' thrown from function Sys$CultureInfo$_getAbbrMonthIndex(value=string:"") in <http://alb.staging.printable.com/PrintOne/ScriptResource.axd?d=Te-zCM2lRqZNou1X8NycHiTWBIYGHWK0p4vewKUS6xkUOlvnMGHwaZlhyx-npIzNCrAMYg9SmaKfqjjhsLZVT2Tekj2regHidNBiJ7Hl6z81&t=ffffffffb73355ea> line 6391.
[e] message = [string] "this.dateTimeFormat is undefined"
Exception ``TypeError: this.dateTimeFormat is undefined'' thrown from function (null)() in <http://alb.staging.printable.com/PrintOne/ScriptResource.axd?d=y7lxHhxkkIjXnUJqkOG7XUv8NDtB8tDYQ0ry73tcqZopgW75RwFHupnT9kze884z0&t=6cba1637> line 620.
[e] message = [string] "this.dateTimeFormat is undefined"
Exception ``(null)'' thrown from function anonymous(e=XPCCrossOriginWrapper:{0}) in <http://alb.staging.printable.com/PrintOne/ScriptResource.axd?d=y7lxHhxkkIjXnUJqkOG7Xc3guXkB-LfVrgjKswTaCWKgo_6Wrs_o4FtuYwjnbZTA2E782Cw_9Ct6nsf2uIkI6Q2&t=6cba1637> line 423.
Exception ``(null)'' thrown from function anonymous(e=XPCCrossOriginWrapper:{0}) in <http://alb.staging.printable.com/PrintOne/ScriptResource.axd?d=y7lxHhxkkIjXnUJqkOG7Xc3guXkB-LfVrgjKswTaCWKgo_6Wrs_o4FtuYwjnbZTA2E782Cw_9Ct6nsf2uIkI6Q2&t=6cba1637> line 428.
Exception ``2147500034'' thrown from function XPCOMUtils_QueryInterface(iid=XPComponent:{7}) in <file:/C:/Program%20Files/Mozilla%20Firefox/modules/XPCOMUtils.jsm> line 265.
Exception ``(null)'' thrown from function anonymous(e=XPCCrossOriginWrapper:{0}) in <http://QA_Environment.com/qa/ScriptResource.axd?d=y7lxHhxkkIjXnUJqkOG7Xc3guXkB-LfVrgjKswTaCWKgo_6Wrs_o4FtuYwjnbZTA2E782Cw_9Ct6nsf2uIkI6Q2&t=6cba1637> line 428.
Exception ``(null)'' thrown from function anonymous(e=XPCCrossOriginWrapper:{0}) in <http://QA_Environment.com/qa/ScriptResource.axd?d=y7lxHhxkkIjXnUJqkOG7Xc3guXkB-LfVrgjKswTaCWKgo_6Wrs_o4FtuYwjnbZTA2E782Cw_9Ct6nsf2uIkI6Q2&t=6cba1637> line 428.
Exception ``(null)'' thrown from function (null)() in <http://QA_Environment.com/qa/ScriptResource.axd?d=y7lxHhxkkIjXnUJqkOG7XUv8NDtB8tDYQ0ry73tcqZopgW75RwFHupnT9kze884z0&t=6cba1637> line 1.
Exception ``TypeError: this.dateTimeFormat is undefined'' thrown from function Sys$CultureInfo$_getAbbrMonthIndex(value=string:"") in <http://QA_Environment.com/qa/ScriptResource.axd?d=Te-zCM2lRqZNou1X8NycHiTWBIYGHWK0p4vewKUS6xkUOlvnMGHwaZlhyx-npIzNCrAMYg9SmaKfqjjhsLZVT2Tekj2regHidNBiJ7Hl6z81&t=ffffffffb73355ea> line 6391.
[e] message = [string] "this.dateTimeFormat is undefined"
Exception ``TypeError: this.dateTimeFormat is undefined'' thrown from function (null)() in <http://QA_Environment.com/qa/ScriptResource.axd?d=y7lxHhxkkIjXnUJqkOG7XUv8NDtB8tDYQ0ry73tcqZopgW75RwFHupnT9kze884z0&t=6cba1637> line 620.
[e] message = [string] "this.dateTimeFormat is undefined"
Exception ``TypeError: f is null'' thrown from function anonymous(d=string:"rtsLI", f=null:null) in <http://QA_Environment.com/qa/ScriptResource.axd?d=y7lxHhxkkIjXnUJqkOG7XUv8NDtB8tDYQ0ry73tcqZopgW75RwFHupnT9kze884z0&t=6cba1637> line 491.
[e] message = [string] "f is null"
Exception ``TypeError: f is null'' thrown from function anonymous(b=Object:{3}, a=Object:{33}) in <http://QA_Environment.com/qa/ScriptResource.axd?d=y7lxHhxkkIjXnUJqkOG7XZAh4G12s2fz7leusT5wiF-pxb_P1W-x2d_h2gnxNI0_ILGOE6LuxfFMZFIzK4SCsg2&t=6cba1637> line 483.
[e] message = [string] "f is null"
Exception ``TypeError: f is null'' thrown from function anonymous() in <http://QA_Environment.com/qa/ScriptResource.axd?d=y7lxHhxkkIjXnUJqkOG7XZAh4G12s2fz7leusT5wiF-pxb_P1W-x2d_h2gnxNI0_ILGOE6LuxfFMZFIzK4SCsg2&t=6cba1637> line 530.
[e] message = [string] "f is null"
Exception ``TypeError: f is null'' thrown from function anonymous() in <http://QA_Environment.com/qa/ScriptResource.axd?d=y7lxHhxkkIjXnUJqkOG7XUv8NDtB8tDYQ0ry73tcqZrH-FQ8SvDaMe7l546ew9z75BR8R41pBLQzoV8599q7nljZ3OzS1KKKDAepqV2f1eM1&t=6cba1637> line 363.
[e] message = [string] "f is null"
Exception ``TypeError: f is null'' thrown from function anonymous() in <http://QA_Environment.com/qa/ScriptResource.axd?d=y7lxHhxkkIjXnUJqkOG7XUv8NDtB8tDYQ0ry73tcqZrH-FQ8SvDaMe7l546ew9z75BR8R41pBLQzoV8599q7nljZ3OzS1KKKDAepqV2f1eM1&t=6cba1637> line 313.
[e] message = [string] "f is null"
Exception ``TypeError: f is null'' thrown from function Type$callBaseMethod(baseArguments=void:void, name=string:"initialize", instance=Object:{33}) in <http://QA_Environment.com/qa/ScriptResource.axd?d=Te-zCM2lRqZNou1X8NycHiTWBIYGHWK0p4vewKUS6xkUOlvnMGHwaZlhyx-npIzNCrAMYg9SmaKfqjjhsLZVT2Tekj2regHidNBiJ7Hl6z81&t=ffffffffb73355ea> line 1543.
[e] message = [string] "f is null"
Exception ``TypeError: f is null'' thrown from function anonymous() in <http://QA_Environment.com/qa/ScriptResource.axd?d=y7lxHhxkkIjXnUJqkOG7XZAh4G12s2fz7leusT5wiF-pxb_P1W-x2d_h2gnxNI0_ILGOE6LuxfFMZFIzK4SCsg2&t=6cba1637> line 639.
[e] message = [string] "f is null"
Exception ``TypeError: f is null'' thrown from function Sys$Component$endUpdate() in <http://QA_Environment.com/qa/ScriptResource.axd?d=Te-zCM2lRqZNou1X8NycHiTWBIYGHWK0p4vewKUS6xkUOlvnMGHwaZlhyx-npIzNCrAMYg9SmaKfqjjhsLZVT2Tekj2regHidNBiJ7Hl6z81&t=ffffffffb73355ea> line 2587.
[e] message = [string] "f is null"
Exception ``TypeError: f is null'' thrown from function Sys$Component$create(element=HTMLTableElement:{1}, references=null:null, events=null:null, properties=Object:{6}, type=function:anonymous) in <http://QA_Environment.com/qa/ScriptResource.axd?d=Te-zCM2lRqZNou1X8NycHiTWBIYGHWK0p4vewKUS6xkUOlvnMGHwaZlhyx-npIzNCrAMYg9SmaKfqjjhsLZVT2Tekj2regHidNBiJ7Hl6z81&t=ffffffffb73355ea> line 2736.
[e] message = [string] "f is null"
Exception ``TypeError: f is null'' thrown from function anonymous() in <http://QA_Environment.com/qa/Telerik.Web.UI.DialogHandler.aspx?DialogName=FindAndReplace&Skin=Default&Title=Find%20And%20Replace&doid=26acc147-571c-4586-84bc-c4d04d4889c5&dpptn=&dp=CgEDR3VOHiAzE3wFETwcNXwCfiYVcH9NYHlpGyQ3ZABFYX4vXiQpFhciEyMyNURfFBBkVkh0M3s1AwsZEVgYNnxneRYeRXdSVnhuXQszShtyXHpzbAsLHx4hHx8KC3VMOhFgaU50LCA7Ax8AES0ALEcCGR8AbWtJVwJ1Qgo0fwlybmJyYDMlBBQiEzULC19XFD1kX3V0Hjo7dB8AEQYiK0cNfhUuGgVUZw1XRiQ3CxRybkQ0YDJkOSwiPio6C3VWO2RjXGFgHhszdRcWHAcmFUUSalACfllAY3pXHxAcZAhAcGIbbwkTOhwPB2w8IUd2OxBad0lrPC0sAXheEgZ7DUMCZRwpYEFsVHtLWR8dAyl1S2I3bwsfMBkwISM%2FMFdqOhB8Z05kDiUzPiEZHy4AHXADXD0pb0lLVx1DVxI3ShFGYEQzdDELBRtGDzc%2BCwJyPQF7Vk5rPCUALg9ZHz4cHGgAVBQfcGduUCF9GhI3QjBAFlAHawwDOhhGDC4yIFtuOhB0d2J0Hic2AgdZHD0qbUVlQCIdQnd7VxJTWREkcEpGYX4UbwkLOQMZMWg9IGFjPQMHd3tODi03AwBcHz0cBGsDQBEecEFAZwx%2BFwlAZE5AYX46WAoXIhwyBzEKIQpLO2d0R0hkAT8zKQsfKFkbLWsWW1IYbwhLbB1DXiMddEpFcRE2byAXYS82Ex4xMUtfAgVBWGBiW3E%3D> line 707.
[e] message = [string] "f is null"
Exception ``TypeError: f is null'' thrown from function anonymous(args=Object:{0}, source=Object:{29}) in <http://QA_Environment.com/qa/ScriptResource.axd?d=Te-zCM2lRqZNou1X8NycHiTWBIYGHWK0p4vewKUS6xkUOlvnMGHwaZlhyx-npIzNCrAMYg9SmaKfqjjhsLZVT2Tekj2regHidNBiJ7Hl6z81&t=ffffffffb73355ea> line 2399.
[e] message = [string] "f is null"
Exception ``TypeError: f is null'' thrown from function Sys$_Application$_doInitialize() in <http://QA_Environment.com/qa/ScriptResource.axd?d=Te-zCM2lRqZNou1X8NycHiTWBIYGHWK0p4vewKUS6xkUOlvnMGHwaZlhyx-npIzNCrAMYg9SmaKfqjjhsLZVT2Tekj2regHidNBiJ7Hl6z81&t=ffffffffb73355ea> line 4280.
[e] message = [string] "f is null"
Exception ``TypeError: f is null'' thrown from function anonymous() in <http://QA_Environment.com/qa/ScriptResource.axd?d=Te-zCM2lRqZNou1X8NycHiTWBIYGHWK0p4vewKUS6xkUOlvnMGHwaZlhyx-npIzNCrAMYg9SmaKfqjjhsLZVT2Tekj2regHidNBiJ7Hl6z81&t=ffffffffb73355ea> line 47.
[e] message = [string] "f is null"
Exception ``2147500034'' thrown from function XPCOMUtils_QueryInterface(iid=XPComponent:{7}) in <file:/C:/Program%20Files/Mozilla%20Firefox/modules/XPCOMUtils.jsm> line 265.

1 Answer, 1 is accepted

Sort by
0
Lini
Telerik team
answered on 31 Aug 2009, 11:13 AM
Hi,

The getChildrenByClassName method is used by the tabstrip component in the find & replace dialog. The problem might happen if you are using external dialogs with the editor and the version of FindAndReplace.ascx is older than the version of the Telerik.Web.UI.dll assembly. You should also check the App_GlobalResources folder, which holds the editor localization files (if you are using them) - try switching to English or deleting the editor resource (RadEditor*.resx) files to see if the problem is not caused by a localization string.

If your QA/staging environment is visible from the internet, please open a formal support ticket and send us a test URL where we can see the problem. Thank you in advance for your cooperation.

All the best,
Lini
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Editor
Asked by
Roberto Plascencia
Top achievements
Rank 1
Answers by
Lini
Telerik team
Share this question
or