Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Developers

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-02-2005, 09:51 AM
Starter Member
 
Posts: 2
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
Reply With Quote
  #2 (permalink)  
Old 12-02-2005, 10:07 AM
Zimbra Employee
 
Posts: 4,792
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
__________________
Bugzilla - Wiki - Downloads - Offline Client
Reply With Quote
  #3 (permalink)  
Old 12-02-2005, 01:54 PM
Project Contributor
 
Posts: 54
Default

If you want a simple example of how to extend DwtListView, you could download my zip file posted here
Reply With Quote
  #4 (permalink)  
Old 12-02-2005, 02:12 PM
Starter Member
 
Posts: 2
Default

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.