javascript error on open

4 posts, 0 answers
  1. Andy
    Andy avatar
    25 posts
    Member since:
    Aug 2011

    Posted 09 Jan 2013 Link to this post

    If I have the following controls.

            <telerik:RadCodeBlock ID="codeBlock" runat="server">
            <script type="text/javascript">
               function OnClientSeriesClicked(sender, args)
               {
                  if (args.get_seriesName() != "Months")
                   $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest(args.get_category());
                  
               }
               function openWinNavigateUrl()
               {
                  $find("<%=RadWindow_NavigateUrl.ClientID %>").show();
               }
            </script>
        </telerik:RadCodeBlock>
     
    <telerik:RadHtmlChart ID="RadHtmlMainBar" Transitions="true"   runat="server"   
            Height="450px" Width="550px" OnClientSeriesClicked="OnClientSeriesClicked">
                   </telerik:RadHtmlChart>
     
        <telerik:RadWindow runat="server" ID="RadWindow_NavigateUrl" NavigateUrl="/pagesModules/ComplienceDetail.aspx?Category=19791978"
            Modal="true" InitialBehaviors="Maximize" RestrictionZoneID="NavigateUrlZone">
        </telerik:RadWindow>
     
                <asp:Button ID="Button4" Text="open the window" runat="server" 
                OnClientClick="openWinNavigateUrl(); return false;" />

     

  2. Andy
    Andy avatar
    25 posts
    Member since:
    Aug 2011

    Posted 09 Jan 2013 Link to this post



    Clicking on the chart series does an ajax callback as expected and clicking on the button
    opens the radwindow as expected.

    However...

    If I make this change:

    }

    function OnClientSeriesClicked(sender, args)
    {
    $find("<%=RadWindow_NavigateUrl.ClientID %>").show();
    }

    Then I get the following error when I click the chart series:

    Microsoft JScript runtime error: Object doesn't support property or method 'blur'
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. cwk
    cwk avatar
    31 posts
    Member since:
    Apr 2007

    Posted 10 Jan 2013 Link to this post

    Hi, I uses the following code.

      function OnClientSeriesClicked(sender, eventArgs) {
             var oWnd = $find("<%= RadWindow_NavigateUrl.ClientID %>");
             //set its NavigateUrl
             oWnd.setUrl("acctpage.aspx");
             //add the name of the function to be executed when RadWindow is closed
             oWnd.add_close(OnClientClose);
             //show the window
             oWnd.show();

         }

    Strange thing is that Microsoft JScript runtime error: Object doesn't support property or method 'blur' appears when I am debugging in vs2010. When I deployed to production, no error appear. Any advice appreciated.


    Regards
    cwk
  5. Andy
    Andy avatar
    25 posts
    Member since:
    Aug 2011

    Posted 10 Jan 2013 Link to this post

    When I use RadOpen like in this demo: http://demos.telerik.com/aspnet-ajax/window/examples/radopen/defaultcs.aspx
    the error goes away
Back to Top