Results 1 to 4 of 4

Thread: Beginner having trouble creating a DwtListView

  1. #1
    duncanIdaho is offline Starter Member
    Join Date
    Dec 2005
    Posts
    2
    Rep Power
    9

    Default Beginner having trouble creating a DwtListView

    Hello

    I'm fairly new to javascript and I'm having a tough time putting a DwtListView on a shell in an HTML tag. If someone could explain the steps involved, or perhaps answer the following questions I'd be eternally grateful.

    I'm currently playing with the dataViewer example. DvController makes a shell and a tabView and manages the layouts. Where is the table being added to the tabView?

    In the following snippet:
    Code:
    function DvListView(parent, attrs, app) {
            ...
    	DwtListView.call(this, parent, "DwtListView", null, headerList, true);
            ...
    }
    DvListView.prototype = new DwtListView;
    DvListView.prototype.constructor = DvListView;
    
    DvListView.prototype.toString =
    function() {
    	return "DvListView";
    }
    DvListView is "extending" DwtListView, correct? What's the correct terminology for this technique? Can any function be extended/overridden? Where is call() defined?

    I'm currently debugging with alerts and the javascript console. Can anyone reccomend an editor/debugger that makes life with Zimbra's code base easier?

    Thanks. This seems to be a fairly serious forum and I won't clutter it with syntax questions and the like, but for all the code I've read and been able to follow I can't get a "hello world" table together

  2. #2
    KevinH's Avatar
    KevinH is offline Expert Member
    Join Date
    Aug 2005
    Location
    San Mateo, CA
    Posts
    4,789
    Rep Power
    19

    Default

    Eclpise+JSEclipse for editing.

    Firefox as your browser.
    Venkman for a debugger.
    http://www.mozilla.org/projects/venkman/
    https://addons.mozilla.org/extension...nfo.php?id=216
    http://getahead.ltd.uk/ajax/venkman (FF 1.5 build)

    Console2 is also nice for better error reporting/filtering.
    http://forums.mozillazine.org/viewtopic.php?t=318102
    Looking for new beta users -> Co-Founder of Acompli. Previously worked at Zimbra (and Yahoo! & VMware) since 2005.

  3. #3
    Heladito is offline Project Contributor
    Join Date
    Oct 2005
    Location
    Switzerland
    Posts
    54
    Rep Power
    9

    Default

    If you want a simple example of how to extend DwtListView, you could download my zip file posted here

  4. #4
    duncanIdaho is offline Starter Member
    Join Date
    Dec 2005
    Posts
    2
    Rep Power
    9

    Default

    Thanks very much! I actually found your code a couple hours ago and I've since loaded it up in JSEclipse.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. having some trouble in install to FC6 X 64
    By Max Ma in forum Installation
    Replies: 2
    Last Post: 07-13-2007, 09:46 PM
  2. Trouble Ticket System ?
    By cyberkoa in forum Developers
    Replies: 3
    Last Post: 04-09-2007, 09:57 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
  •