Zeetix, LLCtagline
 minorNavbarVerticalSpacerWhy hire TomExecutive consultingAnalysisDesignDevelopmentExamplesservices.examples.tech_transfer Highlight ImageConsulting engagementservices.examples.data_export Highlight ImageAnalysis engagementservices.examples.site_design Highlight ImageWebsite designservices.examples.code_design Highlight ImageSoftware designservices.examples.development Highlight ImageSoftware development

Contact Zeetix

Email:click to reveal

Zeetix LLC
66 Boston Avenue
Somerville, MA 02144
Phone: (617) 776-8934

Dynamic ZeeWindow HTML thumb

Custom map marker opening to dynamic content

Tom developed all code for “ZeeGuide™”, an application of the “Hex™” platform that provides a “Facebook for neighborhoods”. The location of the owner of a specific ZeeGuide is displayed as a branded marker on an interactive Google map that opens to a “ZeeWindow” in response to a mouse click on the custom marker. The development challenge was to provide end-to-end code that determines and supplies the html content of the ZeeWindow dynamically, based on merchant profile information stored in the database, so that the user sees the most recent custom content supplied and frequently updated by the owner.

In the browser, the “openZeeWindow” method of an instance of ZeeMarker (a Javascript class provided by the browser binding of the Hex framework) is invoked in response to the click handler of the Google marker. The receiver contains an instance of ZeeCommand (another Hex framework class), created during initialization of the receiver, that reifies the AJAX interaction with the server that will ultimately supply the html. This ZeeCommand instance (an application of the “Command Object” software design pattern) holds a reference to the ZeeMarker, the intended method selector for the server operation (“homeWindowHTML” in this example), and a URL for the server that will handle the request (http://red.dev.zeetix.net/zorb/17125/homeWindowHtml?isDirect=true). After validating that the receiver is enabled, the openZeeWindow method invokes the “get” method of the command object. This, in turn, invokes an AJAX exchange with the server and calls the “openInfoWindowHtml” Google Map api method with the result.

On the server, an object broker (supplied by the server binding of Hex and coded in Python) handles the browser request. That request includes the persistent object ID of a receiver (“17125”), a method selector to be invoked (“homeWindowHTML”), and any arguments (“isDirect=true”).

The request is ultimately dispatched by the server object broker to the server-side instance of the same object (in this case, a ZeeMarker with objectID of 17125). The object broker retrieves the contents of this object from the persistent object store (implemented in MySql), caching records as needed, and invokes its homeWindowHtml method (written in Python).

Since ZeeMarker is a presentation object, the homeWindowHtml method is delegated to a descendant of ZeePage through presentation logic that identifies the owner of the ZeeMarker, queries a user profile associated with that party, and returns a ZeeWindow descendant (in this case, an instance of PremiumZeeWindow) that displays a ZeeView that ultimately references (through a ZeePage instance kept as an instance variable of the ZeeView) the business data associated with the owner of the ZeeMarker.

Having been dynamically bound to the appropriate ZeePage instance (supplied with the owner of the original ZeeMarker), the homeWindowHtml method is ultimately implemented by an instance of ZeeWindowRenderer (an application of the “Strategy” software design pattern). The ZeeWindowRenderer expands template objects provided by the Hex presentation framework with business data associated with the owner and kept in the persistent object store, and constructs the requested HTML. The careful separation of presentation and business logic maximizes the ability of each to be independently varied, a foundation of mature software design.

The resulting html is then serialized, using a Python implementation of JSON (with a C-language accelerator added to eliminate a major bottleneck identified during earlier benchmarking), and wrapped in an object for delivery to the browser.

This response, received asynchronously by the browser in its AJAX handler, is unwrapped in Javascript and the resulting html is then passed to the openInfoWindowHtml method of the Google API. The desired window then pops up in the interactive map of the user—s browser

Tom is eager to share more information about this example. We are still preparing that information for publication. Please use the form below to request our pre-publication material.

 I want to hire Tom

Yes, I’m interested in hiring Tom. Please contact me with information about rates and availability.

 I want to learn more

I’d like to learn more about this software development example.

 What about ...

Please ask about aspects of this software development example that don't seem to be addressed here.


Portfolio

ZeeLife

Tom created these two "pre-construction" demos, a GenomeBrowser and a PathwayBrowser. When complete, each will allow the user to browse, annotate, and publish arbitrary data at arbitrary detail—all the way from the karyotype or organism to the sequence or molecular level.

Genome Browser Demo

Genome Browser:  Use the Google Map API to browse a full human genome.

Pathway Browser Demo

Pathways Browser:  Use the Google Map API to browse the human metabolic pathways.

ZeeGuide

ZeeGuide™ is a "Facebook for neighborhoods", a social network comprised of businesses, organizations, and individuals related by physical geography and "affinity".

Partners and resources

Mcvinney & CompanyMcVinney & Company is a Massachusetts-based organizational development and executive consulting company.

WingwareWingware is a Cambridge-based company dedicated to the development and sale of software development tools for the Python programming language.

ApacheZeetix sites are hosted on Apache web servers.

Valid XHTML 1.0 StrictZeetix sites are validated as "XHTML 1.0 Strict" for maximum browser interoperability.

Privacy policy | Terms of use | Contact
©2013 Zeetix, LLC. All rights reserved. Patents pending