What's new? | Help | Directory | Sign in
Google
                
Search
for
Updated Mar 04, 2007 by gugodliu
Labels: Phase-Design
AsynapseDiff  
Asynapse Diff Draft

Introduction

Asynapse Diff is a set of API to perform Diff algorithm on the server side, and show diff result on the client side.

Details

Client side usage

var diff = new Asynapse.TextDiff( $text1, $text2, $option)

$("diffarena").innerHTML = diff.to_html()

URL

POST Request:

url: /=/diff/
body: { text1 => $text1, text2 => $text2 }->to_json()

Response: Algorithm::Diff::sdiff() converted to JSON

Implementation

Perl modules:

  • Catalyst::Controller::AsynapseTextDiff
  • Jifty::Plugin::AsynapseTextDiff

Sign in to add a comment