6

Can you please name a good text viewer with frontend implemented in JavaScript which can smoothly display huge text files (Gbs and Tbs in size) by displaying text fragments provided by backend?

Upd: Unlike jQuery Log Viewer plugin it should not only show log's tail but be a full-fledged text viewer with Page Up, Page Down and some way to display file at a chosen percentage (scroller or GoTo button)

Upd2: it can be either open source or proprietary

Upd3: Unlike obvious paginated text it should be scrollable line by line

boqapt
  • 1,430
  • 2
  • 20
  • 30
  • @JoshE Any browser compatibility, any JS framework, any type of backend. I found nothing by googling so all relevant examples will be useful – boqapt Sep 07 '12 at 12:28

3 Answers3

2

Check out Node.JS - a server-side javascript framework with a huge number of plugins and modules available. You could load the text file via a file system module, then return fragments of that over an http connection via the http module.

Josh E
  • 7,209
  • 2
  • 30
  • 43
1

If you end up having to write something yourself you might find the open-source LogMonitor a useful starting point (disclaimer - I wrote it).

As-is it will just show the tail of a file, but the back-end Java code can return file fragments, and the front-end will display them with some pretty formatting, so you might be able to do something with it.

codebox
  • 18,210
  • 7
  • 54
  • 77
0

If you already have the backend parse and prepare the log fragments, as you say, maybe something as simple as a YUI editor could be used on the frontend?

YUI is highly customizable, it looks just like any editor out there + you get YUI configurations, events, hooks and stuff.

Edit: I just saw you don't have the backend parser. In that case, combine YUI with node answer Josh supplied before. In fact, YUI is node-ready, so you can probably use it on the backend too.

Zlatko
  • 16,414
  • 12
  • 60
  • 116