DocumentReady Listener not firing

  1. #1

    DocumentReady Listener not firing

    My document ready function is not firing -

    here is the ScriptManager

    <ext:ScriptManager ID="ScriptManager1" Theme="Gray" runat="server">
        <Listeners>
            <DocumentReady Handler="Ext.onReady(function(){viewTest}) " />
        </Listeners>
    </ext:ScriptManager>
    And here is the function:

    <script type="text/javascript">
        function viewTest() {
            alert('Test 0');
            var core = top.&#100;ocument.getElementByID('ctl00_ContentPlaceHolder1_tc_tpFilters_tab');
            alert(core);
            var CheckTest = core.&#100;ocument.getElementById("rbDetail");
            var CheckTest2 = core.&#100;ocument.getElementById("rbSummary");
            
            if (CheckTest.checked) {
                alert('Detail Clicked');
            }
            else if (CheckTest2.checked) {
                alert('Summary Clicked');
            }
        }
    </script>
  2. #2

    RE: DocumentReady Listener not firing

    Hi,

    You don't need Ext.onReady for because it is called inside onReady handler.

    <DocumentReady Handler="viewTest();" />
    Vladimir Shcheglov
    Sr. Developer

Similar Threads

  1. Replies: 3
    Last Post: Jul 20, 2012, 5:50 PM
  2. [CLOSED] image listener not firing
    By nhg_itd in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Apr 10, 2012, 3:51 AM
  3. Replies: 2
    Last Post: Oct 27, 2011, 1:35 PM
  4. How to expand the DropDownField on DocumentReady?
    By phinoppix in forum 1.x Help
    Replies: 1
    Last Post: Aug 02, 2011, 4:35 PM
  5. Ajax method firing twice from listener?
    By Tbaseflug in forum 1.x Help
    Replies: 1
    Last Post: Nov 18, 2009, 5:28 PM

Posting Permissions