{"id":34,"date":"2008-08-18T08:49:05","date_gmt":"2008-08-18T08:49:05","guid":{"rendered":"http:\/\/ccgi.standard8.plus.com\/blog\/archives\/34"},"modified":"2017-08-15T22:19:23","modified_gmt":"2017-08-15T21:19:23","slug":"new-address-book-popup-binding","status":"publish","type":"post","link":"https:\/\/thebanners.uk\/standard8\/2008\/08\/18\/new-address-book-popup-binding\/","title":{"rendered":"New Address Book Popup Binding"},"content":{"rendered":"<p>One of the aims of rewriting the address book interfaces, is also to remove RDF from the address book code base. Up until a few days ago, we had many menu lists of address books based around an RDF builder, these have now been <a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=449260\" title=\"The replacement bug\">replaced<\/a> by an xbl binding on the menupopup.<\/p>\n<p>This has several advantages, firstly javascript is now doing the work of building the menu, secondly it is all encapsulated in one area and useable from any dialog we want. In doing this change, we now also have proper tracking of addition\/removal\/changes of address books for all menus that use the new binding.<\/p>\n<p>There are still a few preference menus based on the old RDF method, however, we are working on replacing them, and there&#8217;s still a <a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=450581\" title=\"Improvements and fixing sorting.\">change<\/a> we&#8217;re working on to the menu binding itself.<\/p>\n<p>For extensions, this is also good news. You can pull in the new binding to your menulist\/menupopup on your own dialogs, just specify <code>class=\"addrbooksPopup\"<\/code> on your menupopup, see the <a href=\"http:\/\/mxr.mozilla.org\/comm-central\/source\/mailnews\/addrbook\/resources\/content\/abNewCardDialog.xul\" title=\"mxr link\">new card dialog xul<\/a> for an example. There are some attributes you can specify to affect what is displayed, for now its easier to look at the <a href=\"http:\/\/mxr.mozilla.org\/comm-central\/source\/mailnews\/addrbook\/resources\/content\/addrbookWidgets.xml\" title=\"mxr link\">code for the binding<\/a>; I will be putting up documentation on <a href=\"http:\/\/developer.mozilla.org\/\">devmo<\/a> when it re-opens for edits.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>One of the aims of rewriting the address book interfaces, is also to remove RDF from the address book code base. Up until a few days ago, we had many menu lists of address books based around an RDF builder, these have now been replaced by an xbl binding on the menupopup. This has several &hellip; <a href=\"https:\/\/thebanners.uk\/standard8\/2008\/08\/18\/new-address-book-popup-binding\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;New Address Book Popup Binding&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,7,8],"tags":[],"class_list":["post-34","post","type-post","status-publish","format-standard","hentry","category-mozilla","category-seamonkey","category-thunderbird"],"_links":{"self":[{"href":"https:\/\/thebanners.uk\/standard8\/wp-json\/wp\/v2\/posts\/34","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thebanners.uk\/standard8\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thebanners.uk\/standard8\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thebanners.uk\/standard8\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thebanners.uk\/standard8\/wp-json\/wp\/v2\/comments?post=34"}],"version-history":[{"count":1,"href":"https:\/\/thebanners.uk\/standard8\/wp-json\/wp\/v2\/posts\/34\/revisions"}],"predecessor-version":[{"id":677,"href":"https:\/\/thebanners.uk\/standard8\/wp-json\/wp\/v2\/posts\/34\/revisions\/677"}],"wp:attachment":[{"href":"https:\/\/thebanners.uk\/standard8\/wp-json\/wp\/v2\/media?parent=34"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thebanners.uk\/standard8\/wp-json\/wp\/v2\/categories?post=34"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thebanners.uk\/standard8\/wp-json\/wp\/v2\/tags?post=34"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}