Results 1 to 2 of 2

Thread: Failed to execute the Ajax examples

Hybrid View

  1. #1
    Join Date
    Sep 2005
    Posts
    1
    Rep Power
    10

    Default Failed to execute the Ajax examples

    I failed to execute the Ajax examples given in the source distribution.

    I got the following errors in IE:-
    LsCode is undefined
    AjxMsg is undefined
    AjxUtil is undefined
    AjxVector is undefined
    AjxEventMgr is undefined
    AjxException is undefined
    AjxEnv is undefined

    I noticed that file like /ajax/js/core/LsCore.js is not available in the distribution.

    Below is the code generated for http://127.0.0.1:8080/ajax/examples/...reeExample.jsp.

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <title>Tree Example</title>
    <style type="text/css">
    <!--
    @import url(../common/img/hiRes/dwtimgs.css);
    @import url(img/hiRes/imgs.css);
    @import url(TreeExample.css);
    -->
    </style>
    <script language="JavaScript">
    DwtConfigPath = "/ajax/js/dwt/config";
    </script>

    <!--
    ***** BEGIN LICENSE BLOCK *****
    Version: ZAPL 1.1



    Software distributed under the License is distributed on an "AS IS"
    basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
    the License for the specific language governing rights and limitations
    under the License.

    The Original Code is: Zimbra AJAX Toolkit.

    The Initial Developer of the Original Code is Zimbra, Inc.
    Portions created by Zimbra are Copyright (C) 2005 Zimbra, Inc.
    All Rights Reserved.

    Contributor(s):

    ***** END LICENSE BLOCK *****
    -->

    <script type="text/javascript" src="/ajax/js/dwt/config/msgs/DwtMsg_en.js"></script>
    <script type="text/javascript" src="???LsMsg???"></script>


    <!--
    ***** BEGIN LICENSE BLOCK *****
    Version: ZAPL 1.1

    The contents of this file are subject to the Zimbra AJAX Public
    License Version 1.1 ("License"); you may not use this file except in
    compliance with the License. You may obtain a copy of the License at
    http://www.zimbra.com/license

    Software distributed under the License is distributed on an "AS IS"
    basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
    the License for the specific language governing rights and limitations
    under the License.

    The Original Code is: Zimbra AJAX Toolkit.

    The Initial Developer of the Original Code is Zimbra, Inc.
    Portions created by Zimbra are Copyright (C) 2005 Zimbra, Inc.
    All Rights Reserved.

    Contributor(s):

    ***** END LICENSE BLOCK *****
    -->




    <!-- BEGIN SCRIPT BLOCK -->
    <script type="text/javascript" src="/ajax/js/config/data/LsConfig.js"></script>

    <script type="text/javascript" src="/ajax/js/core/LsCore.js"></script>
    <script type="text/javascript" src="/ajax/js/core/LsEnv.js"></script>
    <script type="text/javascript" src="/ajax/js/core/LsException.js"></script>
    <script type="text/javascript" src="/ajax/js/core/LsImg.js"></script>

    <script type="text/javascript" src="/ajax/js/util/LsCallback.js"></script>
    <script type="text/javascript" src="/ajax/js/util/LsCookie.js"></script>
    <script type="text/javascript" src="/ajax/js/util/LsDateUtil.js"></script>
    <script type="text/javascript" src="/ajax/js/util/LsTimedAction.js"></script>
    <script type="text/javascript" src="/ajax/js/util/LsSelectionManager.js"></script>
    <script type="text/javascript" src="/ajax/js/util/LsStringUtil.js"></script>
    <script type="text/javascript" src="/ajax/js/util/LsUtil.js"></script>
    <script type="text/javascript" src="/ajax/js/util/LsVector.js"></script>
    <script type="text/javascript" src="/ajax/js/util/LsWindowOpener.js"></script>

    <script type="text/javascript" src="/ajax/js/debug/LsDebug.js"></script>
    <script type="text/javascript" src="/ajax/js/debug/LsDebugXmlDocument.js"></script>

    <script type="text/javascript" src="/ajax/js/events/LsEvent.js"></script>
    <script type="text/javascript" src="/ajax/js/events/LsEventMgr.js"></script>
    <script type="text/javascript" src="/ajax/js/events/LsListener.js"></script>

    <script type="text/javascript" src="/ajax/js/xml/LsXmlDoc.js"></script>

    <script type="text/javascript" src="/ajax/js/net/LsPost.js"></script>
    <script type="text/javascript" src="/ajax/js/net/LsRpcRequest.js"></script>
    <script type="text/javascript" src="/ajax/js/net/LsRpc.js"></script>

    <script type="text/javascript" src="/ajax/js/soap/LsSoapException.js"></script>
    <script type="text/javascript" src="/ajax/js/soap/LsSoapFault.js"></script>
    <script type="text/javascript" src="/ajax/js/soap/LsSoapDoc.js"></script>

    <script type="text/javascript" src="/ajax/js/dwt/core/DwtImg.js"></script>

    <script type="text/javascript" src="/ajax/js/dwt/core/Dwt.js"></script>
    <script type="text/javascript" src="/ajax/js/dwt/core/DwtException.js"></script>
    <script type="text/javascript" src="/ajax/js/dwt/core/DwtDraggable.js"></script>

    <script type="text/javascript" src="/ajax/js/dwt/graphics/DwtBorder.js"></script>
    <script type="text/javascript" src="/ajax/js/dwt/graphics/DwtCssStyle.js"></script>
    <script type="text/javascript" src="/ajax/js/dwt/graphics/DwtPoint.js"></script>
    <script type="text/javascript" src="/ajax/js/dwt/graphics/DwtRectangle.js"></script>
    <script type="text/javascript" src="/ajax/js/dwt/graphics/DwtUnits.js"></script>

    <script type="text/javascript" src="/ajax/js/dwt/events/DwtEvent.js"></script>
    <script type="text/javascript" src="/ajax/js/dwt/events/DwtEventManager.js"></script>
    <script type="text/javascript" src="/ajax/js/dwt/events/DwtDateRangeEvent.js"></script>
    <script type="text/javascript" src="/ajax/js/dwt/events/DwtDisposeEvent.js"></script>
    <script type="text/javascript" src="/ajax/js/dwt/events/DwtUiEvent.js"></script>
    <script type="text/javascript" src="/ajax/js/dwt/events/DwtControlEvent.js"></script>
    <script type="text/javascript" src="/ajax/js/dwt/events/DwtKeyEvent.js"></script>
    <script type="text/javascript" src="/ajax/js/dwt/events/DwtMouseEvent.js"></script>
    <script type="text/javascript" src="/ajax/js/dwt/events/DwtMouseEventCapture.js"></script>
    <script type="text/javascript" src="/ajax/js/dwt/events/DwtListViewActionEvent.js"></script>
    <script type="text/javascript" src="/ajax/js/dwt/events/DwtSelectionEvent.js"></script>
    <script type="text/javascript" src="/ajax/js/dwt/events/DwtHtmlEditorStateEvent.js"></script>
    <script type="text/javascript" src="/ajax/js/dwt/events/DwtTreeEvent.js"></script>

    <script type="text/javascript" src="/ajax/js/dwt/dnd/DwtDragEvent.js"></script>
    <script type="text/javascript" src="/ajax/js/dwt/dnd/DwtDragSource.js"></script>
    <script type="text/javascript" src="/ajax/js/dwt/dnd/DwtDropEvent.js"></script>
    <script type="text/javascript" src="/ajax/js/dwt/dnd/DwtDropTarget.js"></script>

    <script type="text/javascript" src="/ajax/js/dwt/widgets/DwtControl.js"></script>
    <script type="text/javascript" src="/ajax/js/dwt/widgets/DwtComposite.js"></script>
    <script type="text/javascript" src="/ajax/js/dwt/widgets/DwtShell.js"></script>
    <script type="text/javascript" src="/ajax/js/dwt/widgets/DwtColorPicker.js"></script>
    <script type="text/javascript" src="/ajax/js/dwt/widgets/DwtBaseDialog.js"></script>
    <script type="text/javascript" src="/ajax/js/dwt/widgets/DwtDialog.js"></script>
    <script type="text/javascript" src="/ajax/js/dwt/widgets/DwtLabel.js"></script>
    <script type="text/javascript" src="/ajax/js/dwt/widgets/DwtListView.js"></script>
    <script type="text/javascript" src="/ajax/js/dwt/widgets/DwtButton.js"></script>
    <script type="text/javascript" src="/ajax/js/dwt/widgets/DwtMenuItem.js"></script>
    <script type="text/javascript" src="/ajax/js/dwt/widgets/DwtMenu.js"></script>
    <script type="text/javascript" src="/ajax/js/dwt/widgets/DwtMessageDialog.js"></script>
    <script type="text/javascript" src="/ajax/js/dwt/widgets/DwtHtmlEditor.js"></script>
    <script type="text/javascript" src="/ajax/js/dwt/widgets/DwtSash.js"></script>
    <script type="text/javascript" src="/ajax/js/dwt/widgets/DwtToolBar.js"></script>
    <script type="text/javascript" src="/ajax/js/dwt/widgets/DwtToolTip.js"></script>
    <script type="text/javascript" src="/ajax/js/dwt/widgets/DwtTreeItem.js"></script>
    <script type="text/javascript" src="/ajax/js/dwt/widgets/DwtTree.js"></script>
    <script type="text/javascript" src="/ajax/js/dwt/widgets/DwtCalendar.js"></script>
    <script type="text/javascript" src="/ajax/js/dwt/widgets/DwtPropertyPage.js"></script>
    <script type="text/javascript" src="/ajax/js/dwt/widgets/DwtTabView.js"></script>
    <script type="text/javascript" src="/ajax/js/dwt/widgets/DwtWizardDialog.js"></script>
    <script type="text/javascript" src="/ajax/js/dwt/widgets/DwtSelect.js"></script>

    <script type="text/javascript" src="/ajax/js/dwt/events/DwtXFormsEvent.js"></script>
    <script type="text/javascript" src="/ajax/js/dwt/xforms/XFormGlobal.js"></script>
    <script type="text/javascript" src="/ajax/js/dwt/xforms/ButtonGrid.js"></script>
    <script type="text/javascript" src="/ajax/js/dwt/xforms/XModel.js"></script>
    <script type="text/javascript" src="/ajax/js/dwt/xforms/XModelItem.js"></script>
    <script type="text/javascript" src="/ajax/js/dwt/xforms/XForm.js"></script>
    <script type="text/javascript" src="/ajax/js/dwt/xforms/XFormItem.js"></script>
    <script type="text/javascript" src="/ajax/js/dwt/xforms/OSelect_XFormItem.js"></script>

    <!-- END SCRIPT BLOCK -->

    <script type="text/javascript" src="ExMsg.js"></script>
    <script type="text/javascript" src="ExImg.js"></script>
    <script type="text/javascript" src="TreeExample.js"></script>
    </head>
    <body>
    <noscript><p><b>Javascript must be enabled to use this.</b></p></noscript>
    <script language="JavaScript">
    function launch() {
    DBG = new LsDebug(LsDebug.DBG1, null, false);
    LsImg.setMode(LsImg.SINGLE_IMG);
    TreeExample.run();
    }
    LsCore.addOnloadListener(launch);
    </script>
    </body>
    </html>

  2. #2
    Join Date
    Aug 2005
    Location
    San Mateo, CA
    Posts
    4,789
    Rep Power
    19

    Default

    See: http://www.zimbra.com/forums/showthread.php?t=4

    They will be fixed in our next milestone build.

Similar Threads

  1. Upgrade: 4.5.5 -> 4.5.6 failed, LDAP/slapd issues
    By Daimyo in forum Installation
    Replies: 7
    Last Post: 08-04-2007, 10:23 PM
  2. DBD::mysql::st execute failed
    By padraig in forum Administrators
    Replies: 3
    Last Post: 07-18-2007, 04:46 AM
  3. Lotus migration
    By babou in forum Migration
    Replies: 15
    Last Post: 03-05-2007, 10:33 PM
  4. Replies: 18
    Last Post: 03-20-2006, 02:22 PM
  5. Insallation failed (Debian server)
    By popui007 in forum Installation
    Replies: 5
    Last Post: 09-29-2005, 03:27 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •