6 Replies Latest reply on Apr 12, 2013 3:35 AM by sachin_solutions

    Need help in Exjs

    anderson.nt Level 1

      Hi Team,

       

      I am very new to ExtJs. I have tried to display one alert box in my page. So I' ve created one component to test my extjs code. But that alert box has not come in adobe cq5.

       

      Here is my code.

       

      <%-- Test component. Test--%>

      <%@include file="/libs/foundation/global.jsp"%>

      <%@page session="false" %>

      <html>

        <head>

              <script>

                  Ext.onReady(function(){

                      Ext.MessageBox.alert('Hello', 'Welcome to ExtJS');

                  });

               </script>

        </head>

        <body>

        testing...

        </body>

      </html>

       

      Do i need to include ext-base.js and ext-all-debug.js in my header part? Is there any cq releated extjs methods are there in cq?

       

      Regards,

      Anderson