I'm interested in seeing a good diff algorithm, possibly in Javascript, for rendering a side-by-side diff of two HTML pages. The idea would be that the diff would show the differences of the rendered HTML.  To clarify, I want to be able to see t...
I want to be able to get a list of all differences between two JavaScript object graphs, with the property names and values where the deltas occur.   For what it is worth, these objects are usually retrieved from the server as JSON and typically ar...
I have two arrays:  var a1 = [ { ID: 2, N:0 }, { ID: 1, N:0 } ]; var a2 = [ { ID: 1, N:0 }, { ID: 2, N:0 }, { ID: 3, N:0 } ];   I need to get all elements that are on a2 but not in a1. An element here is distinct of another only by the property ID, t...
I am going to be periodically pushing a set of text-based data from a web-page to a server, probably as JSON.  For every push, none, some or all of the data may have changed. To reduce the amount of data I have to send over the wire I would want to o...
I want to compare 2 text values on a web page and highlight the differences. Can I do this client-side, preferably with jQuery or Prototype?...
I have a problem I'd like to solve to not have to spend a lot of manual work to analyze as an alternative.  I have 2 JSON objects (returned from different web service API or HTTP responses). There is intersecting data between the 2 JSON objects,...
This works really well for strings: http://ejohn.org/projects/javascript-diff-algorithm/  And I used to do string diffing server side (in ruby), but It's really hard to also take into consideration forced tag structure, like in tables.   What I d...
I am using diff-match http://neil.fraser.name/software/diff_match_patch/svn/trunk/demos/demo_diff.html  To show differences between 2 pieces of html. The problem is that the script shows new line as ¶  Is there any way to set to don't show it?...
I am working on a script to grade a user response by comparing two arrays. (It is a quiz to see how well they know information word-for-word.) I already have some of the code that I need, like making the user response lowercase and splitting it. All...
My web application is similar to StackOverflow in that different users frequently edit the same blob of text.  Currently we only support plain text, and therefore it's easy to show users how the text has changed between edits.  I want to support...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.