By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,474 Members | 966 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,474 IT Pros & Developers. It's quick & easy.

Create a web-based script that allows user to edit and save a webpage

P: 2
Hello, I've been searching for a solution for this issue everywhere but I couldn't find anything that would work 100% for this.
I'm trying to create a javascript that allows the user to edit and save a simple html file. Editing should be: user can choose where a header text should be placed, place pictures whenever he wants and save this HTML to be printed later.

Does anyone know a good framework or a good javascript example that I could start developing? I really need help here, thanks in advance!
Jan 11 '10 #1
Share this Question
Share on Google+
6 Replies


Dormilich
Expert Mod 5K+
P: 8,639
Iím not sure this is a good idea. Iíd rather have the convenience of a solid IDE.
Jan 11 '10 #2

P: 2
I'm sorry, what would be a "solid IDE"? I don't know what does IDE mean. Thanks again sir.
Jan 12 '10 #3

Dormilich
Expert Mod 5K+
P: 8,639
itís this.
Jan 12 '10 #4

P: 86
Javascript is primarily a client-side scripting language. As such it is not able to save files - you'll need a server-side language such as PHP to do that. An IDE, however, could be done in javascript. Most IDEs out there are fully-fledged HTML editors, but you seem to need nothing more than the ability to move layers around (which contain pictures and text). This shouldn't be too hard to do if you use a drag and drop interface to position everything, store the positions of the layers as variables, and then generate an HTML file. Since you only want it for printing, you should be careful to position everything so that it fits on a page. That would be the framework I would use.
Jan 13 '10 #5

acoder
Expert Mod 15k+
P: 16,027
Some JavaScript editors do allow for templates, so if you want to avoid rewriting something from scratch, that's one option you could consider.

If you want something very simple, look at this (and the linked test page).
Jan 15 '10 #6

P: 86
"user can choose where a header text should be placed, place pictures whenever he wants..."

The problem with templates is that they usually fix the position of layers, and edit the content (such as in your example). In this situation, we need to fix the content and edit the layers' position. Unless I'm confused about what willnt is exactly looking for, which is likely.
Jan 16 '10 #7

Post your reply

Sign in to post your reply or Sign up for a free account.