Error: 'oStr' is undefined

4 posts, 1 answers
  1. Sypher
    Sypher avatar
    79 posts
    Member since:
    Aug 2006

    Posted 22 Jan 2008 Link to this post

    First off, I'd normally send this in as a support ticket, but it is only happening in our complex application and I really can't spend the time trying to replicate it in a simple project to send in... but I thought maybe, just maybe, someone else has seen this.

    And this is really weird...

    We have a master page with a RadWindowManager with 20 RadWindows set up that are called from all over the application:

    <Telerik:RadWindowManager runat="server" ID="rwm" Skin="Vista" VisibleStatusbar="false" VisibleTitlebar="true" Modal="true" Width="800" Height="500" ReloadOnShow="true" BackColor="#ffffff" ShowContentDuringLoad="false" Animation="FlyIn" PreserveClientState="true" Behavior="Close,Resize,Move,Maximize">
    <Telerik:RadWindow ID="MyTask" runat="server" Title="Task" />
    <Telerik:RadWindow ID="Metric" runat="server" Title="Metric" />
    <Telerik:RadWindow ID="Project" runat="server" Title="Project" Height="500" />
    <Telerik:RadWindow ID="Dialog" runat="server" Title="Dialog" />
    <Telerik:RadWindow ID="Focus" runat="server" Title="Focus" Height="500" />
    <Telerik:RadWindow ID="Values" runat="server" Title="Values" />
    <Telerik:RadWindow ID="BasicRole" runat="server" Title="Basic Role" />
    <Telerik:RadWindow ID="PI" runat="server" Title="Performance Indicator" Width="520" Height="425" />
    <Telerik:RadWindow ID="Individual" runat="server" Title="Edit Individual" Height="500" />
    <Telerik:RadWindow ID="Org" runat="server" Title="Organization/Department" Height="480" />
    <Telerik:RadWindow ID="Site" runat="server" Title="Site" Width="700" Height="350" />
    <Telerik:RadWindow ID="Comments" runat="server" Title="Comment" Width="420" Height="300" />
    <Telerik:RadWindow ID="Link" runat="server" Title="Related Link" Width="520" Height="425" />
    <Telerik:RadWindow ID="List" runat="server" Title="List" Width="520" Height="425" />
    <Telerik:RadWindow ID="MemberEdit" runat="server" Title="Team Member" Width="350" Height="300" VisibleStatusbar="false" />
    <Telerik:RadWindow ID="MemberAdd" runat="server" Title="Team Member" Width="600" Height="500" />
    <Telerik:RadWindow ID="Available" runat="server" Title="Member" Width="350" Height="450" />
    <Telerik:RadWindow ID="OrgInd" runat="server" Title="Individual" Width="520" Height="350" />
    <Telerik:RadWindow ID="ViewAnother" runat="server" Title="View Another" Width="350" Height="250" />
    <Telerik:RadWindow ID="User" runat="server" Title="User Account" NavigateUrl="~/edit/user.aspx" Width="350" Height="250" />

    When we load a page in IE7 using this master page, we get a script error:  'oStr' is undefined.  We don't have 'oStr' anywhere in our code... I'm guessing it is in one of the WebResource script files.  When we remove all of the RadWindows from the RadWindowManager and reload the page, it doesn't have the error.

    Now, the really odd stuff.  If we change the ID of the "MyTask" RadWindow to "SomethingElse", the error also goes away.  Actually, that's why it is called MyTask instead of Task.  It was originally Task, but it was erroring, we changed it to MyTask, and the error went away.  It just started coming back, though.

    This is all happening on a page that doesn't have any other references to the RadWindows.  It doesn't use any of them.  It just has them in the page because they are part of the site's master.  It also happens on the pages that open the RadWindows...

    We are also having other issues with using the RadWindowManager with windows that open other windows, but we can't replicate those issues in a simpler new project, either.  That's another fun one.  It doesn't work when the Animation is set to None, but it works with all other animations.  Of course, we'd like to use the None option. ;-)

    These objects are great, and we love the Telerik controls, especially the Prometheus stuff, but this just shows how much of a PITA debugging can be sometimes when you use third-party controls.

  2. Georgi Tunev
    Georgi Tunev avatar
    7207 posts

    Posted 23 Jan 2008 Link to this post

    Hi sypher,

    I am afraid that you are the first to report such problem and at this point we cannot tell what the reason for the problem might be. Of course if you manage to isolate the problem in a small sample - a master / content page scenario where the problem can be observed - and send it to us, we will check it right away and do our best to help.

    Sincerely yours,
    Georgi Tunev
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. DevCraft R3 2016 release webinar banner
  4. Sypher
    Sypher avatar
    79 posts
    Member since:
    Aug 2006

    Posted 23 Jan 2008 Link to this post

    I finally got a little further on this.  This is the script code that is messing up:

    function restoreWindow(_4b){
    var _4c=oStr.split("@");

    It is coming out of the ScriptResource file used by the WindowManager.  I'll send you guys the full script file.

  5. Answer
    Georgi Tunev
    Georgi Tunev avatar
    7207 posts

    Posted 24 Jan 2008 Link to this post

    Hello sypher,

    I have just answered your support ticket. For convenience I am pasting part of my reply below:

    Thank you for the additional information - we were able to reproduce the problem and pinpoint the reason for it.

    It comes from the PreserveClientState being set to true. It seems that the tool that we are using for compressing our Javascript code introduced a problem in this specific scenario because the uncompressed code on our side is working as expected.
    We fixed the problem internally and the fix will be present in the next update of the RadWindow Prometheus control. For now I suggest to set this property to false - you actually do not needed, because it works only for RadWindows that are created from the server and not opened by client code.

    Best wishes,
    Georgi Tunev
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top