Parallel scroll textarea and webpage with jquery

Posted by Roger Rogers on Stack Overflow See other posts from Stack Overflow or by Roger Rogers
Published on 2010-05-08T05:50:53Z Indexed on 2010/05/08 5:58 UTC
Read the original article Hit count: 375

Filed under:
|
|
|
|

This is both a conceptual and how-to question:

In wiki formatting, or non WYSIWYG editor scenarios, you typically have a textarea for content entry and then an ancillary preview pane to show results, just like StackOverflow. This works fairly well, except with larger amounts of text, such as full page wikis, etc.

I have a concept that I'd like critical feedback/advice on: Envision a two pane layout, with the preview content on the left side, taking up ~ 2/3 of the page, and the textarea on the right side, taking up ~ 1/3 of the page. The textarea would float, to remain in view, even if the user scrolls the browser window. Furthermore, if the user scrolls the textarea content, supposing it has exceeded the textarea's frame size, the page would scroll so that the content presently showing in the textarea syncs/is parallel with the content showing in the browser window.

I'm imagining a wiki scenario, where going back and forth between markup and preview is frustrating. I'm curious what others think; is there anything out there like this? Any suggestions on how to attack this functionality (ideally using jquery)?

Thanks

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about JavaScript