• Home
  • New Entries
  • Popular Entries
  • Submit a Story
  • About

Dojo and Zend Framework Integration Released ...

The Zend Framework aims to be a top notch framework for building next generation Web applications in PHP. Dojo has similar aims on the front-end side, so they decided to join forces to provide an integration layer. If you like the combination you will have a better, tighter, way to build your applications.

The Zend Framework aims to be a top notch framework for building next generation Web applications in PHP. Dojo has similar aims on the front-end side, so they decided to join forces to provide an integration layer. If you like the combination you will have a better, tighter, way to build your applications.

What we see in the initial release is:

    *

      JSON-RPC Server: We are re-working the Zend_Json_Server that has
      been in our incubator since, oh, what? 0.2.0? and never released to
      actually follow a specification:
      JSON-RPC. This
      will allow it to work seamlessly with Dojo, as well as other toolkits
      that have JSON-RPC client implementations. I have actually completed
      work on this, though the proposal is waiting to be approved; if you want
      to check it out, you can find it in the
      ZF svn.

      The original Zend_Json_Server implementation will be abandoned. It was
      never fully tested nor fully documented, which has prevented its
      release. Additionally, since it implemented its own ad-hoc standard, it
      did not provide the type of interoperability that a true JSON-RPC server
      implementation will provide. I am excited that we will finally be able
      to provide a standards-compliant solution for general availability.

      One final note: there are currently two different JSON-RPC
      specifications, 1.0 and 2.0. My goal is to support each, though for the
      time being, only version 1.0 will be supported, as that is the version
      Dojo currently targets.
    * dojo() View Helper: Enabling Dojo for a page is not typically as
      trivial as just loading the dojo.js script -- you have a
      choice of loading it from the AOL CDN or a local path, and also may want
      or need to load additional dojo, dijit, or dojox modules, specify custom
      modules and paths, specify code to run at onLoad(), and
      specify stylesheets for decorating dijits. On top of this, this
      information may change from page to page, and may only be needed for
      a subset of pages. The dojo() view helper will act as a
      placeholder
      implementation, and facilitate all of the above tasks, as well as take
      care of rendering the necessary style and
      script elements in your page.
    * Form Element implementations: One area that developers really
      leverage javascript and ajax toolkits is forms. In particular, many
      types of form input can benefit from advanced and rich user interfaces
      that only javascript can provide: calendar choosers, time selectors,
      etc. Additionally, many like to use client-side validation in order to
      provide instantaneous validation feedback to users (instead of requiring
      a round-trip to the server). We will be identifying a small group of
      form elements that we feel solve the most relevant use cases, and write
      Dojo-specific versions that can be utilized with Zend_Form.
      (One thing to note: Zend_Form is design already works very
      well with Dojo, allowing many widgets and client-side validations to be
      created by simply setting the appropriate element attributes.)
    * dojo.data Compatibility: dojo.data defines a
      standard storage interface; services providing data in this format can
      then be consumed by a variety of Dojo facilities to provide highly
      flexible and dynamic content for your user interfaces. We will be
      building a component that will create dojo.data compatible payloads with
      which to respond to XmlHttpRequests; you will simply need to pass in the
      data, and provide metadata regarding it.

Of course, you can continue to any Ajax library in conjunction with the Zend Framework, and ditto for Dojo.... but why did this match happen?

    There are many synergies and similarities between the two projects and their communities, including:

        * Licensing and IP: Both projects are very business friendly.
        * Design affinity: Similar philosophies, including a strong emphasis on use-at-will architecture.
        * JSON format used strongly in both
        * Comprehensive Ajax Solution: Dojo has it all
        * Standards: "Dojo not only implements published standards, but also drives them"
        * Communities and support: Strong communities, with support offerings behind them

And, here is some code from a JSON-RPC demo:
PLAIN TEXT
PHP:

   1.
      
   2.
      <h2>Dojo JSON-RPC Demo</h2>
   3.
      <input name="foo" type="button" value="Demo" onClick="demoRpc()"/>
   4.
      <?
   5.
      $this->dojo()->setLocalPath(/js/dojo/dojo.js)
   6.
                   ->addStyleSheetModule( wouldijit.themes.tundra)
   7.
                   ->requireModule( wouldojo.rpc.JsonService);
   8.
      $this->headScript()->captureStart(); ?>
   9.
      function demoRpc()
  10.
      {
  11.
          var myObject = new dojo.rpc.JsonService(/json-rpc.php);
  12.
          console.log(myObject.bar());
  13.
      }
  14.
      <? $this->headScript()->captureEnd() ?>
  15.
      
source: ajaxian

 View Full Story.
Posted at 12:11:24 pm | Permalink | Posted in PHP  

Related Stuff

  • MooV: Using cutting edge Video phones and Software Video Phones - coupling all that with VoIP and empowering the disabled.

  • Moo Telecom: VoIP communications made easy - Ring anyway with the fun and ease of using a normal phone

  • TagR:Mobile Social Network with Real Time Locations Based services, and Ambience Intelligence, VoiP, IM, Skype, Googletalk, Mapping, Flickr, Events, Calendaring, Scheduling, SecondLife Support

  • ClearSMS : ClearSMS is a Web-based application that lets you send bulk SMS messages to your customers, contacts, or just about anyone.

  • Jajah:jah is a VoIP (Voice over IP) provider, founded by Austrians Roman Scharf and Daniel Mattes in 2005[1]. The Jajah headquarters are located in Mountain View, CA, USA, and Luxembourg. Jajah maintains a development centre in Israel.

  • Skype: It’s free to download and free to call other people on Skype. Skype the number one voice over ip software

  • PrivatePhone: a free local phone number with voicemail and messages you can check online or from any phone.

Be the first ... |Add your comment.

Your Comment ...

  Name (required)

  Email (required, hidden)

  Website


Top Stuff

e-messenger

MessengerFX

eBuddy

ILoveIM

AIM Express

Top 20 Ruby CMS


Our Partners

Facebook Applications

Ajax Projects

Web 2.0 Sites

Webloglines

Human Development Handbook

Software Development Company

Ajaxlines

Stock Exchange Chat


About Ajaxlines

Ajaxlines is a project focused on providing its audience with a database of most of Ajax related articles, resources, tutorials and services from around the world.

Its purpose is to showcase the power of Ajax and to act as a portal to the Ajax development community.


Search


Topics

  • .Net (114)
  • Articles (87)
  • Bookmarking (35)
  • Calendar (19)
  • Chat (40)
  • ColdFusion (3)
  • CSS (45)
  • Email (23)
  • Facebook (31)
  • Flash (16)
  • Games (6)
  • Google (29)
  • Html (14)
  • Image (11)
  • International Calls & VOIP (7)
  • Java (36)
  • Javascript (179)
  • JSON (21)
  • Perl (2)
  • PHP (91)
  • Presentation (19)
  • Python (3)
  • Resources (2)
  • RSS (1)
  • Ruby (11)
  • Storage (4)
  • Toolkits (90)
  • Tutorials (201)
  • UI (12)
  • Utilities (171)
  • Web2.0 (15)
  • XmlHttpRequest (22)
  • YUI (4)

© 2006 www.ajaxlines.com. All Rights Reserved. Powered by IRange